New lua versions
[ryzomcore.git] / studio / src / plugins / landscape_editor / snapshot_dialog.cpp
blobb13ba791dc1acdb269d53e8b750845fbd90cff98
1 // Object Viewer Qt - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2011 Dzmitry KAMIAHIN (dnk-88) <dnk-88@tut.by>
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // Project includes
18 #include "snapshot_dialog.h"
19 #include "landscape_editor_constants.h"
21 #include "../core/icore.h"
22 #include "../core/core_constants.h"
24 // NeL includes
25 #include <nel/misc/debug.h>
27 // Qt includes
28 #include <QtCore/QSettings>
29 #include <QtGui/QFileDialog>
31 namespace LandscapeEditor
34 SnapshotDialog::SnapshotDialog(QWidget *parent)
35 : QDialog(parent)
37 m_ui.setupUi(this);
38 setFixedHeight(sizeHint().height());
41 SnapshotDialog::~SnapshotDialog()
45 bool SnapshotDialog::isCustomSize() const
47 return m_ui.customSizeRadioButton->isChecked();
50 bool SnapshotDialog::isKeepRatio() const
52 return m_ui.keepRatioCheckBox->isChecked();
55 int SnapshotDialog::resolutionZone() const
57 return m_ui.resSpinBox->value();
60 int SnapshotDialog::widthSnapshot() const
62 return m_ui.widthSpinBox->value();
65 int SnapshotDialog::heightSnapshot() const
67 return m_ui.heightSpinBox->value();
70 } /* namespace LandscapeEditor */