|
1 #pragma once |
|
2 |
|
3 class QString; |
|
4 class QLabel; |
|
5 class QTableWidgetItem; |
|
6 struct ZandronumVersion; |
|
7 |
|
8 // |
|
9 // ------------------------------------------------------------------------------------------------- |
|
10 // |
|
11 // A ZandronumVersion represented in the config window. |
|
12 // |
|
13 |
|
14 class VersionGuiEntry |
|
15 { |
|
16 public: |
|
17 VersionGuiEntry (const QString& name, bool isRelease, |
|
18 QLabel* label, QTableWidgetItem* pathItem); |
|
19 ZandronumVersion toNonGuiVersion() const; |
|
20 QLabel* label(); |
|
21 QTableWidgetItem* pathItem(); |
|
22 const QString& name(); |
|
23 void updateStyleSheet(); |
|
24 bool isRelease(); |
|
25 void setRelease (bool a); |
|
26 void setName (const QString& a); |
|
27 |
|
28 private: |
|
29 QLabel* m_label; |
|
30 QTableWidgetItem* m_pathItem; |
|
31 QString m_name; |
|
32 bool m_isRelease; |
|
33 }; |