tools/templates/mainform.h
author sheepluva
Thu, 16 Jan 2014 19:50:18 +0100
changeset 9994 8455993a7a1b
parent 8442 535a00ca0d35
permissions -rw-r--r--
* allow telling cmake where to find required fonts in system when user supplies the paths, as suggested by unC0Rr, e.g. -DFONTS_DIRS='/usr/share/fonts/truetype/wqy;/usr/share/fonts/truetype/dejavu' * the build system will use the paths to lookup fonts and install those not found * the engine will load the paths into physfs (mountpoint /Fonts) to make the fonts available at runtime * overriding fonts in packages should be possible again now
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
{
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    10
    Q_OBJECT
359
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
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    14
    MyWindow(QWidget * parent = 0, Qt::WFlags flags = 0);
359
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
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    18
    QScrollArea * sa_xy;
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    19
    PixLabel * xy;
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    20
    QPushButton * buttAdd;
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    21
    QPushButton * buttCode;
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    22
    QPushButton * buttSave;
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    23
    QPushButton * buttLoad;
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    24
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    25
private slots:
8442
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    26
    void Code();
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    27
    void Save();
535a00ca0d35 whitespaces and tabs again
koda
parents: 359
diff changeset
    28
    void Load();
359
59fbfc65fbda - New land templates
unc0rr
parents:
diff changeset
    29
};