Michaël Lemaire
a5bc77e798
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@217 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
40 lines
803 B
C++
40 lines
803 B
C++
#include "formrender.h"
|
|
|
|
#include "dialogrender.h"
|
|
|
|
/**************** Form ****************/
|
|
FormRender::FormRender(QWidget *parent) :
|
|
BaseForm(parent),
|
|
_quality(5)
|
|
{
|
|
QPushButton* button;
|
|
|
|
addInputInt("Quality", &_quality, 1, 10, 1, 1);
|
|
|
|
button = addButton("Start new render");
|
|
connect(button, SIGNAL(clicked()), this, SLOT(startRender()));
|
|
button = addButton("Show last render");
|
|
connect(button, SIGNAL(clicked()), this, SLOT(showRender()));
|
|
button = addButton("Save last render");
|
|
connect(button, SIGNAL(clicked()), this, SLOT(saveRender()));
|
|
|
|
revertConfig();
|
|
}
|
|
|
|
void FormRender::startRender()
|
|
{
|
|
DialogRender* dialog = new DialogRender();
|
|
dialog->exec();
|
|
|
|
delete dialog;
|
|
}
|
|
|
|
void FormRender::showRender()
|
|
{
|
|
|
|
}
|
|
|
|
void FormRender::saveRender()
|
|
{
|
|
|
|
}
|