config/versionguientry.h

Mon, 22 Jun 2015 01:44:30 +0300

author
Teemu Piippo <tsapii@utu.fi>
date
Mon, 22 Jun 2015 01:44:30 +0300
changeset 56
bdbbde5f754e
parent 54
0b3a5bc4e8a8
permissions
-rw-r--r--

Added the ability to automatically look up wad paths from other sources (for now just Doomseeker's configuration). By default, ZCinema will automatically do such a lookup if it fails to find a WAD needed for demo playback. This can also be invoked manually in the config prompt.

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

mercurial