Debian Codegraph @

src/CommandDialog.h

raw symbols SCIP
1 #ifndef CONTROLDIALOG_OPENMSX_H
2 #define CONTROLDIALOG_OPENMSX_H
3
4 #include "ui_CommandDialog.h"
5 #include <QDialog>
6
7
8 struct CommandRef
9 {
10 QString name;
11 QString description;
12 QString source;
13 QString icon;
14 int index;
15 };
16
17
18 class CommandDialog : public QDialog, private Ui::CommandDialog
19 {
20 Q_OBJECT
21 public:
22 CommandDialog(QList<CommandRef>& commands, QWidget* parent = nullptr);
23 void refresh();
24
25 private:
26 int createItem();
27 void createCommand();
28 void writeCommand(const CommandRef& command);
29
30 // void onSelectedCommandChanged(int currentRow, int currentCol, int previousRow, int previousCol);
31 void onAddButtonClicked();
32 void onRemoveButtonClicked();
33 void accept() override;
34 void reject() override;
35
36 int counter = 0;
37 bool userMode = true;
38 QList<CommandRef>& commands;
39 };
40
41 #endif // CONTROLDIALOG_OPENMSX_H