config/configwindow.h

changeset 54
0b3a5bc4e8a8
parent 46
07578e081ae8
child 55
cf43a8610b07
equal deleted inserted replaced
53:a5b53cc10436 54:0b3a5bc4e8a8
21 #include "commonlib/types.h" 21 #include "commonlib/types.h"
22 22
23 // 23 //
24 // ------------------------------------------------------------------------------------------------- 24 // -------------------------------------------------------------------------------------------------
25 // 25 //
26 // A ZandronumVersion represented in the config window.
27 //
28
29 struct VersionGuiEntry
30 {
31 class QTableWidgetItem* labelItem;
32 class QTableWidgetItem* pathItem;
33 QString name;
34 bool isRelease;
35
36 ZandronumVersion toNonGuiVersion() const;
37 };
38
39 //
40 // -------------------------------------------------------------------------------------------------
41 //
42 26
43 class ConfigWindow : public QDialog 27 class ConfigWindow : public QDialog
44 { 28 {
45 Q_OBJECT 29 Q_OBJECT
46 30
49 { 33 {
50 LabelColumn, 34 LabelColumn,
51 PathColumn, 35 PathColumn,
52 }; 36 };
53 37
54 typedef QMap<class QTableWidgetItem*, VersionGuiEntry*> VersionEntryMap; 38 typedef QMap<class QTableWidgetItem*, class VersionGuiEntry*> VersionEntryMap;
55 39
56 ConfigWindow (QWidget* parent = NULL, Qt::WindowFlags f = 0); 40 ConfigWindow (QWidget* parent = NULL, Qt::WindowFlags f = 0);
57 virtual ~ConfigWindow(); 41 virtual ~ConfigWindow();
58 42
59 public slots: 43 public slots:

mercurial