tools/templates/mainform.h
author dag10 <gottlieb.drew@gmail.com>
Wed, 16 Jan 2013 18:34:43 -0500
changeset 8393 85bd6c7b2641
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
Can now change theme for static and mission maps. Fixed mission map descriptions that had commas which broke them. Now, you must escape commas in map descriptions. Made bgwidget repaint on animation tick to avoid buffer-not-clearing issue with widgets that change overtop the background leaving a ghost image of the widget's previous state. Generated map is now the default map in the mapconfig widget.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     1
#include <QScrollArea>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     2
#include <QMainWindow>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     3
#include <QLabel>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     4
#include <QListWidget>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     5
#include <QPushButton>
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     6
#include "pixlabel.h"
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     7
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     8
class MyWindow : public QMainWindow
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
     9
{
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    10
	Q_OBJECT
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    11
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    12
public:
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    13
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    14
	MyWindow(QWidget * parent = 0, Qt::WFlags flags = 0);
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    15
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    16
private:
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    17
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    18
	QScrollArea * sa_xy;
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    19
	PixLabel * xy;
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    20
	QPushButton * buttAdd;
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    21
	QPushButton * buttCode;
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    22
	QPushButton * buttSave;
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    23
	QPushButton * buttLoad;
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    24
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    25
private slots:
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    26
	void Code();
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    27
	void Save();
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    28
	void Load();
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    29
};