config/versionguientry.h

Mon, 22 Jun 2015 02:29:15 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 22 Jun 2015 02:29:15 +0300
changeset 58
6a70b2390f75
parent 54
0b3a5bc4e8a8
permissions
-rw-r--r--

Uncomment RELEASE for version 1.0.

#pragma once

class QString;
class QLabel;
class QTableWidgetItem;
struct ZandronumVersion;

//
// -------------------------------------------------------------------------------------------------
//
// A ZandronumVersion represented in the config window.
//

class VersionGuiEntry
{
public:
	VersionGuiEntry (const QString& name, bool isRelease,
					 QLabel* label, QTableWidgetItem* pathItem);
	ZandronumVersion toNonGuiVersion() const;
	QLabel* label();
	QTableWidgetItem* pathItem();
	const QString& name();
	void updateStyleSheet();
	bool isRelease();
	void setRelease (bool a);
	void setName (const QString& a);

private:
	QLabel* m_label;
	QTableWidgetItem* m_pathItem;
	QString m_name;
	bool m_isRelease;
};

mercurial