Michaël Lemaire
db453d6fa9
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@218 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
35 lines
696 B
C++
35 lines
696 B
C++
#include <QApplication>
|
|
#include "mainwindow.h"
|
|
#include "formwater.h"
|
|
#include "formsky.h"
|
|
#include "formrender.h"
|
|
|
|
#include "../lib_paysages/shared/functions.h"
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
paysagesInit();
|
|
|
|
QApplication app(argc, argv);
|
|
MainWindow window;
|
|
|
|
window.show();
|
|
|
|
Preview::startUpdater();
|
|
|
|
return app.exec();
|
|
}
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
QMainWindow(parent)
|
|
{
|
|
QTabWidget* tabs;
|
|
|
|
tabs = new QTabWidget(this);
|
|
tabs->addTab(new BaseForm(tabs), "Temp");
|
|
tabs->addTab(new FormWater(tabs), "Water");
|
|
tabs->addTab(new FormSky(tabs), "Sky");
|
|
tabs->addTab(new FormRender(tabs), "Render");
|
|
|
|
setCentralWidget(tabs);
|
|
}
|