2012-01-05 18:39:17 +00:00
|
|
|
#include <QApplication>
|
2011-12-25 21:19:32 +00:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "formwater.h"
|
2012-01-06 16:09:03 +00:00
|
|
|
#include "formrender.h"
|
2011-12-25 21:19:32 +00:00
|
|
|
|
2012-01-05 18:39:17 +00:00
|
|
|
#include "../lib_paysages/shared/functions.h"
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
2011-12-25 21:19:32 +00:00
|
|
|
{
|
2012-01-05 18:39:17 +00:00
|
|
|
paysagesInit();
|
2011-12-25 21:19:32 +00:00
|
|
|
|
2012-01-05 18:39:17 +00:00
|
|
|
QApplication app(argc, argv);
|
|
|
|
MainWindow window;
|
2011-12-25 21:19:32 +00:00
|
|
|
|
2012-01-05 18:39:17 +00:00
|
|
|
window.show();
|
|
|
|
|
|
|
|
Preview::startUpdater();
|
|
|
|
|
|
|
|
return app.exec();
|
2011-12-25 21:19:32 +00:00
|
|
|
}
|
|
|
|
|
2012-01-05 18:39:17 +00:00
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
QMainWindow(parent)
|
2011-12-25 21:19:32 +00:00
|
|
|
{
|
2012-01-05 18:39:17 +00:00
|
|
|
QTabWidget* tabs;
|
|
|
|
|
|
|
|
tabs = new QTabWidget(this);
|
2012-01-06 16:09:03 +00:00
|
|
|
tabs->addTab(new BaseForm(tabs), "Temp");
|
2012-01-05 18:39:17 +00:00
|
|
|
tabs->addTab(new FormWater(tabs), "Water");
|
2012-01-06 16:09:03 +00:00
|
|
|
tabs->addTab(new FormRender(tabs), "Render");
|
2012-01-05 18:39:17 +00:00
|
|
|
|
|
|
|
setCentralWidget(tabs);
|
2011-12-25 21:19:32 +00:00
|
|
|
}
|