Limo
A simple mod manager
Loading...
Searching...
No Matches
addtodeployerdialog.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QDialog>
9
10
11namespace Ui
12{
13class AddToDeployerDialog;
14}
15
19class AddToDeployerDialog : public QDialog
20{
21 Q_OBJECT
22
23public:
28 explicit AddToDeployerDialog(QWidget* parent = nullptr);
31
32private:
34 Ui::AddToDeployerDialog* ui;
36 std::vector<int> mod_ids_;
38 bool dialog_completed_ = false;
39
40public:
48 void setupDialog(const QStringList& deployer_names,
49 const QString& mod_name,
50 std::vector<int>& mod_ids,
51 const std::vector<int>& mod_deployers,
52 const std::vector<bool>& auto_deployers);
53
54signals:
61 void modDeployersUpdated(std::vector<int>& mod_id, std::vector<bool> deployers);
62
63private slots:
66};
bool dialog_completed_
Indicates whether the dialog has been completed.
Definition addtodeployerdialog.h:38
~AddToDeployerDialog()
Deletes the UI.
Definition addtodeployerdialog.cpp:11
void on_buttonBox_accepted()
Closes the dialog and emits a signal for completion.
Definition addtodeployerdialog.cpp:42
void setupDialog(const QStringList &deployer_names, const QString &mod_name, std::vector< int > &mod_ids, const std::vector< int > &mod_deployers, const std::vector< bool > &auto_deployers)
Initializes the dialog.
Definition addtodeployerdialog.cpp:16
AddToDeployerDialog(QWidget *parent=nullptr)
Initializes the UI.
Definition addtodeployerdialog.cpp:5
Ui::AddToDeployerDialog * ui
Contains auto-generated UI elements.
Definition addtodeployerdialog.h:34
void modDeployersUpdated(std::vector< int > &mod_id, std::vector< bool > deployers)
Signals completion of the dialog.
std::vector< int > mod_ids_
Target mod ids.
Definition addtodeployerdialog.h:36