# HG changeset patch # User Teemu Piippo # Date 1374010264 -10800 # Node ID 1d544788a8b37d6604a368fb072923bdca494569 # Parent c9b22c06307cb25350a9eacab64c6b2f0737ad7b argh diff -r c9b22c06307c -r 1d544788a8b3 src/config.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/config.cpp Wed Jul 17 00:31:04 2013 +0300 @@ -0,0 +1,11 @@ +#include "config.h" +#include "ui_configbox.h" + +ConfigBox::ConfigBox( QWidget* parent, Qt::WindowFlags f ) : QDialog( parent, f ) { + ui = new Ui_ConfigBox; + ui->setupUi( this ); +} + +ConfigBox::~ConfigBox() { + delete ui; +} \ No newline at end of file diff -r c9b22c06307c -r 1d544788a8b3 src/config.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/config.h Wed Jul 17 00:31:04 2013 +0300 @@ -0,0 +1,17 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#include + +class Ui_ConfigBox; + +class ConfigBox : public QDialog { +public: + explicit ConfigBox( QWidget* parent = 0, Qt::WindowFlags f = 0 ); + virtual ~ConfigBox(); + +private: + Ui_ConfigBox* ui; +}; + +#endif // CONFIG_H \ No newline at end of file diff -r c9b22c06307c -r 1d544788a8b3 src/main.cpp --- a/src/main.cpp Wed Jul 17 00:30:03 2013 +0300 +++ b/src/main.cpp Wed Jul 17 00:31:04 2013 +0300 @@ -16,7 +16,7 @@ } } - print ("Hello world! This is " APPNAME " %1\n", versionString() ); + print( "Hello world! This is " APPNAME " %1\n", versionString() ); return app.exec(); } diff -r c9b22c06307c -r 1d544788a8b3 src/ui/configbox.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ui/configbox.ui Wed Jul 17 00:31:04 2013 +0300 @@ -0,0 +1,180 @@ + + + ConfigBox + + + + 0 + 0 + 480 + 320 + + + + + 320 + 256 + + + + Dialog + + + + + + 0 + + + + WAD Paths + + + + + + + + Add + + + + + + + + + + + + ... + + + + + + + + + + + + + + Move Up + + + + + + + Move Down + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Delete + + + + + + + Clear + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + Zandronum Binaries + + + + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + ConfigBox + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + ConfigBox + reject() + + + 316 + 260 + + + 286 + 274 + + + + +