tools/templates/mainform.h
author Medo <smaxein@googlemail.com>
Sun, 03 Jun 2012 01:24:18 +0200
changeset 7171 906e72caea7b
parent 359 59fbfc65fbda
child 8442 535a00ca0d35
permissions -rw-r--r--
frontlib refactoring socket.h now completely wraps all the lowlevel neworking, so it would be easy to switch away from SDL_net if needed. Also reduced global state by making an IPC connection an object-like thing.

#include <QScrollArea>
#include <QMainWindow>
#include <QLabel>
#include <QListWidget>
#include <QPushButton>
#include "pixlabel.h"

class MyWindow : public QMainWindow
{
	Q_OBJECT

public:

	MyWindow(QWidget * parent = 0, Qt::WFlags flags = 0);

private:

	QScrollArea * sa_xy;
	PixLabel * xy;
	QPushButton * buttAdd;
	QPushButton * buttCode;
	QPushButton * buttSave;
	QPushButton * buttLoad;

private slots:
	void Code();
	void Save();
	void Load();
};