15class AddToGroupDialog;
42 const std::vector<int>& mod_ids,
43 const QString& mod_name,
48 Ui::AddToGroupDialog*
ui;
int mod_id_
Id of the mod which is to be added to a group.
Definition addtogroupdialog.h:50
void on_group_field_textChanged(const QString &text)
Ensures Ok button is only available when a valid group has been selected.
Definition addtogroupdialog.cpp:49
QStringList groups_
Contains names of all available groups.
Definition addtogroupdialog.h:56
void on_buttonBox_accepted()
Closes the dialog and emits a signal for completion.
Definition addtogroupdialog.cpp:38
bool dialog_completed_
Indicates whether the dialog has been completed.
Definition addtogroupdialog.h:58
std::vector< int > mod_ids_
Ids of all installed mods except the target mod.
Definition addtogroupdialog.h:52
void modAddedToGroup(int mod_id, int target_id)
Signals completion of the dialog.
Ui::AddToGroupDialog * ui
Contains auto-generated UI elements.
Definition addtogroupdialog.h:48
std::unique_ptr< QCompleter > completer_
Completer used for group names.
Definition addtogroupdialog.h:54
void setupDialog(const QStringList &groups, const std::vector< int > &mod_ids, const QString &mod_name, int mod_id)
Initializes the dialog.
Definition addtogroupdialog.cpp:20
AddToGroupDialog(QWidget *parent=nullptr)
Initializes the UI.
Definition addtogroupdialog.cpp:7
~AddToGroupDialog()
Deletes the UI.
Definition addtogroupdialog.cpp:15