|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "preferencespopup.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// Tnz6 includes
|
|
Toshihiro Shimizu |
890ddd |
#include "menubarcommandids.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "versioncontrol.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "levelsettingspopup.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tapp.h"
|
|
Jeremy Bullock |
3eeb02 |
#include "cleanupsettingsmodel.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// TnzQt includes
|
|
Toshihiro Shimizu |
890ddd |
#include "toonzqt/tabbar.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonzqt/menubarcommand.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonzqt/checkbox.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonzqt/gutil.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonzqt/doublefield.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonzqt/dvdialog.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonzqt/filefield.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// TnzLib includes
|
|
Jeremy Bullock |
15fcba |
#include "toonz/txsheethandle.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonz/tscenehandle.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonz/txshlevelhandle.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonz/txshleveltypes.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonz/tscenehandle.h"
|
|
Jeremy Bullock |
7c096e |
#include "toonz/toonzscene.h"
|
|
Jeremy Bullock |
7c096e |
#include "toonz/tcamera.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonz/levelproperties.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "toonz/tonionskinmaskhandle.h"
|
|
shun_iwasawa |
d6df3f |
#include "toonz/stage.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// TnzCore includes
|
|
Toshihiro Shimizu |
890ddd |
#include "tsystem.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// Qt includes
|
|
Toshihiro Shimizu |
890ddd |
#include <qhboxlayout></qhboxlayout>
|
|
Toshihiro Shimizu |
890ddd |
#include <qcombobox></qcombobox>
|
|
Toshihiro Shimizu |
890ddd |
#include <qlabel></qlabel>
|
|
Toshihiro Shimizu |
890ddd |
#include <qstackedwidget></qstackedwidget>
|
|
Toshihiro Shimizu |
890ddd |
#include <qlineedit></qlineedit>
|
|
Toshihiro Shimizu |
890ddd |
#include <qfiledialog></qfiledialog>
|
|
Toshihiro Shimizu |
890ddd |
#include <qfile></qfile>
|
|
Toshihiro Shimizu |
890ddd |
#include <qpushbutton></qpushbutton>
|
|
Toshihiro Shimizu |
890ddd |
#include <qapplication></qapplication>
|
|
Toshihiro Shimizu |
890ddd |
#include <qmainwindow></qmainwindow>
|
|
Toshihiro Shimizu |
890ddd |
#include <qstringlist></qstringlist>
|
|
Toshihiro Shimizu |
890ddd |
#include <qlistwidget></qlistwidget>
|
|
Jeremy Bullock |
e59b1f |
#include <qgroupbox></qgroupbox>
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
using namespace DVGui;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//*******************************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
// Local namespace
|
|
Toshihiro Shimizu |
890ddd |
//*******************************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
namespace {
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
static const int unitsCount = 5, inchIdx = 2;
|
|
Toshihiro Shimizu |
890ddd |
static const QString units[unitsCount] = {"cm", "mm", "inch", "field", "pixel"};
|
|
Shinya Kitaoka |
120a6e |
static const QString rooms[2] = {"standard", "studioGhibli"};
|
|
Shinya Kitaoka |
120a6e |
enum DpiPolicy { DP_ImageDpi, DP_CustomDpi };
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
} // namespace
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//**********************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
// PreferencesPopup::FormatProperties implementation
|
|
Toshihiro Shimizu |
890ddd |
//**********************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
PreferencesPopup::FormatProperties::FormatProperties(PreferencesPopup *parent)
|
|
Shinya Kitaoka |
120a6e |
: DVGui::Dialog(parent, false, true) {
|
|
Shinya Kitaoka |
120a6e |
setWindowTitle(tr("Level Settings by File Format"));
|
|
Shinya Kitaoka |
120a6e |
setModal(true); // The underlying selected format should not
|
|
Shinya Kitaoka |
120a6e |
// be changed by the user
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// Main layout
|
|
Shinya Kitaoka |
120a6e |
beginVLayout();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *gridLayout = new QGridLayout;
|
|
Shinya Kitaoka |
120a6e |
int row = 0;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// Key values
|
|
Shinya Kitaoka |
120a6e |
QLabel *nameLabel = new QLabel(tr("Name:"));
|
|
Shinya Kitaoka |
120a6e |
nameLabel->setFixedHeight(20); // Due to DVGui::Dialog's quirky behavior
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(nameLabel, row, 0, Qt::AlignRight);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_name = new DVGui::LineEdit;
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_name, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
QLabel *regExpLabel = new QLabel(tr("Regular Expression:"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(regExpLabel, row, 0, Qt::AlignRight);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_regExp = new DVGui::LineEdit;
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_regExp, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
QLabel *priorityLabel = new QLabel(tr("Priority"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(priorityLabel, row, 0, Qt::AlignRight);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_priority = new DVGui::IntLineEdit;
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_priority, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
gridLayout->setRowMinimumHeight(row++, 20);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// LevelProperties
|
|
Shinya Kitaoka |
120a6e |
m_dpiPolicy = new QComboBox;
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_dpiPolicy, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_dpiPolicy->addItem(QObject::tr("Image DPI"));
|
|
Shinya Kitaoka |
120a6e |
m_dpiPolicy->addItem(QObject::tr("Custom DPI"));
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
QLabel *dpiLabel = new QLabel(LevelSettingsPopup::tr("DPI:"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(dpiLabel, row, 0, Qt::AlignRight);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_dpi = new DVGui::DoubleLineEdit;
|
|
Shinya Kitaoka |
120a6e |
m_dpi->setRange(1, (std::numeric_limits<double>::max)()); // Tried</double>
|
|
Shinya Kitaoka |
120a6e |
// limits::min(),
|
|
Shinya Kitaoka |
120a6e |
// but input 0 was
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_dpi, row++,
|
|
Shinya Kitaoka |
120a6e |
1); // then replaced with something * e^-128
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_premultiply = new DVGui::CheckBox(LevelSettingsPopup::tr("Premultiply"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_premultiply, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_whiteTransp =
|
|
Shinya Kitaoka |
120a6e |
new DVGui::CheckBox(LevelSettingsPopup::tr("White As Transparent"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_whiteTransp, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_doAntialias =
|
|
Shinya Kitaoka |
120a6e |
new DVGui::CheckBox(LevelSettingsPopup::tr("Add Antialiasing"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_doAntialias, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
QLabel *antialiasLabel =
|
|
Shinya Kitaoka |
120a6e |
new QLabel(LevelSettingsPopup::tr("Antialias Softness:"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(antialiasLabel, row, 0, Qt::AlignRight);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_antialias = new DVGui::IntLineEdit(
|
|
Shinya Kitaoka |
120a6e |
this, 10, 0, 100); // Tried 1, but then m_doAntialias was forcedly
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_antialias, row++, 1); // initialized to true
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
QLabel *subsamplingLabel = new QLabel(LevelSettingsPopup::tr("Subsampling:"));
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(subsamplingLabel, row, 0, Qt::AlignRight);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_subsampling = new DVGui::IntLineEdit(this, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
gridLayout->addWidget(m_subsampling, row++, 1);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
addLayout(gridLayout);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
endVLayout();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// Establish connections
|
|
Shinya Kitaoka |
120a6e |
bool ret = true;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
ret = connect(m_dpiPolicy, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(updateEnabledStatus())) &&
|
|
Shinya Kitaoka |
120a6e |
ret;
|
|
Shinya Kitaoka |
120a6e |
ret =
|
|
Shinya Kitaoka |
120a6e |
connect(m_doAntialias, SIGNAL(clicked()), SLOT(updateEnabledStatus())) &&
|
|
Shinya Kitaoka |
120a6e |
ret;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
assert(ret);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::FormatProperties::updateEnabledStatus() {
|
|
Shinya Kitaoka |
120a6e |
m_dpi->setEnabled(m_dpiPolicy->currentIndex() == DP_CustomDpi);
|
|
Shinya Kitaoka |
120a6e |
m_antialias->setEnabled(m_doAntialias->isChecked());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
void PreferencesPopup::FormatProperties::setLevelFormat(
|
|
Shinya Kitaoka |
120a6e |
const Preferences::LevelFormat &lf) {
|
|
Shinya Kitaoka |
120a6e |
const LevelOptions &lo = lf.m_options;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_name->setText(lf.m_name);
|
|
Shinya Kitaoka |
120a6e |
m_regExp->setText(lf.m_pathFormat.pattern());
|
|
Shinya Kitaoka |
120a6e |
m_priority->setValue(lf.m_priority);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_dpiPolicy->setCurrentIndex(
|
|
Shinya Kitaoka |
120a6e |
lo.m_dpiPolicy == LevelOptions::DP_ImageDpi ? DP_ImageDpi : DP_CustomDpi);
|
|
Shinya Kitaoka |
120a6e |
m_dpi->setValue(lo.m_dpi);
|
|
Shinya Kitaoka |
120a6e |
m_premultiply->setChecked(lo.m_premultiply);
|
|
Shinya Kitaoka |
120a6e |
m_whiteTransp->setChecked(lo.m_whiteTransp);
|
|
Shinya Kitaoka |
120a6e |
m_doAntialias->setChecked(lo.m_antialias > 0);
|
|
Shinya Kitaoka |
120a6e |
m_antialias->setValue(lo.m_antialias);
|
|
Shinya Kitaoka |
120a6e |
m_subsampling->setValue(lo.m_subsampling);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
updateEnabledStatus();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
Preferences::LevelFormat PreferencesPopup::FormatProperties::levelFormat()
|
|
Shinya Kitaoka |
120a6e |
const {
|
|
Shinya Kitaoka |
120a6e |
Preferences::LevelFormat lf(m_name->text());
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// Assign key values
|
|
Shinya Kitaoka |
120a6e |
lf.m_pathFormat.setPattern(m_regExp->text());
|
|
Shinya Kitaoka |
120a6e |
lf.m_priority = m_priority->getValue();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
// Assign level format values
|
|
Shinya Kitaoka |
120a6e |
lf.m_options.m_dpiPolicy = (m_dpiPolicy->currentIndex() == DP_ImageDpi)
|
|
Shinya Kitaoka |
120a6e |
? LevelOptions::DP_ImageDpi
|
|
Shinya Kitaoka |
120a6e |
: LevelOptions::DP_CustomDpi;
|
|
Shinya Kitaoka |
120a6e |
lf.m_options.m_dpi = m_dpi->getValue();
|
|
Shinya Kitaoka |
120a6e |
lf.m_options.m_subsampling = m_subsampling->getValue();
|
|
Shinya Kitaoka |
120a6e |
lf.m_options.m_antialias =
|
|
Shinya Kitaoka |
120a6e |
m_doAntialias->isChecked() ? m_antialias->getValue() : 0;
|
|
Shinya Kitaoka |
120a6e |
lf.m_options.m_premultiply = m_premultiply->isChecked();
|
|
Shinya Kitaoka |
120a6e |
lf.m_options.m_whiteTransp = m_whiteTransp->isChecked();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
return lf;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//**********************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
// PreferencesPopup implementation
|
|
Toshihiro Shimizu |
890ddd |
//**********************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
|
|
Jeremy Bullock |
7c096e |
void PreferencesPopup::onPixelsOnlyChanged(int index) {
|
|
Jeremy Bullock |
59dbbf |
bool enabled = index == Qt::Checked;
|
|
Jeremy Bullock |
59dbbf |
if (enabled) {
|
|
shun_iwasawa |
d6df3f |
m_pref->setDefLevelDpi(Stage::standardDpi);
|
|
Jeremy Bullock |
59dbbf |
m_pref->setPixelsOnly(true);
|
|
Jeremy Bullock |
59dbbf |
TCamera *camera;
|
|
Jeremy Bullock |
59dbbf |
camera =
|
|
Jeremy Bullock |
59dbbf |
TApp::instance()->getCurrentScene()->getScene()->getCurrentCamera();
|
|
Jeremy Bullock |
59dbbf |
TDimension camRes = camera->getRes();
|
|
Jeremy Bullock |
59dbbf |
TDimensionD camSize;
|
|
shun_iwasawa |
d6df3f |
camSize.lx = camRes.lx / Stage::standardDpi;
|
|
shun_iwasawa |
d6df3f |
camSize.ly = camRes.ly / Stage::standardDpi;
|
|
Jeremy Bullock |
59dbbf |
camera->setSize(camSize);
|
|
turtletooth |
04d8fd |
TDimension cleanupRes = CleanupSettingsModel::instance()
|
|
turtletooth |
04d8fd |
->getCurrentParameters()
|
|
turtletooth |
04d8fd |
->m_camera.getRes();
|
|
Jeremy Bullock |
3eeb02 |
TDimensionD cleanupSize;
|
|
shun_iwasawa |
d6df3f |
cleanupSize.lx = cleanupRes.lx / Stage::standardDpi;
|
|
shun_iwasawa |
d6df3f |
cleanupSize.ly = cleanupRes.ly / Stage::standardDpi;
|
|
turtletooth |
04d8fd |
CleanupSettingsModel::instance()->getCurrentParameters()->m_camera.setSize(
|
|
turtletooth |
04d8fd |
cleanupSize);
|
|
turtletooth |
04d8fd |
m_pref->storeOldUnits();
|
|
Jeremy Bullock |
59dbbf |
if (m_unitOm->currentIndex() != 4) m_unitOm->setCurrentIndex(4);
|
|
Jeremy Bullock |
59dbbf |
if (m_cameraUnitOm->currentIndex() != 4) m_cameraUnitOm->setCurrentIndex(4);
|
|
Jeremy Bullock |
59dbbf |
m_unitOm->setDisabled(true);
|
|
Jeremy Bullock |
59dbbf |
m_cameraUnitOm->setDisabled(true);
|
|
Jeremy Bullock |
59dbbf |
m_defLevelDpi->setDisabled(true);
|
|
shun_iwasawa |
d6df3f |
m_defLevelDpi->setValue(Stage::standardDpi);
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setMeasure("camera.lx");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setMeasure("camera.ly");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setValue(m_pref->getDefLevelWidth());
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setValue(m_pref->getDefLevelHeight());
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setDecimals(0);
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setDecimals(0);
|
|
Jeremy Bullock |
59dbbf |
|
|
Jeremy Bullock |
59dbbf |
} else {
|
|
Jeremy Bullock |
59dbbf |
QString tempUnit;
|
|
Jeremy Bullock |
59dbbf |
int unitIndex;
|
|
Jeremy Bullock |
59dbbf |
tempUnit = m_pref->getOldUnits();
|
|
Jeremy Bullock |
59dbbf |
unitIndex = m_unitOm->findText(tempUnit);
|
|
Jeremy Bullock |
59dbbf |
m_unitOm->setCurrentIndex(unitIndex);
|
|
Jeremy Bullock |
59dbbf |
tempUnit = m_pref->getOldCameraUnits();
|
|
Jeremy Bullock |
59dbbf |
unitIndex = m_cameraUnitOm->findText(tempUnit);
|
|
Jeremy Bullock |
59dbbf |
m_cameraUnitOm->setCurrentIndex(unitIndex);
|
|
Jeremy Bullock |
59dbbf |
m_unitOm->setDisabled(false);
|
|
Jeremy Bullock |
59dbbf |
m_cameraUnitOm->setDisabled(false);
|
|
Jeremy Bullock |
59dbbf |
m_pref->setPixelsOnly(false);
|
|
Jeremy Bullock |
59dbbf |
int levelType = m_pref->getDefLevelType();
|
|
Jeremy Bullock |
59dbbf |
bool isRaster = levelType != PLI_XSHLEVEL;
|
|
Jeremy Bullock |
59dbbf |
if (isRaster) {
|
|
Jeremy Bullock |
59dbbf |
m_defLevelDpi->setDisabled(false);
|
|
Jeremy Bullock |
59dbbf |
}
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setMeasure("level.ly");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setMeasure("level.lx");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setValue(m_pref->getDefLevelWidth());
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setValue(m_pref->getDefLevelHeight());
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setDecimals(4);
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setDecimals(4);
|
|
Jeremy Bullock |
59dbbf |
}
|
|
Jeremy Bullock |
7c096e |
}
|
|
Jeremy Bullock |
7c096e |
|
|
shun_iwasawa |
bb0d83 |
//-----------------------------------------------------------------------------
|
|
shun_iwasawa |
bb0d83 |
|
|
Jeremy Bullock |
e59b1f |
void PreferencesPopup::onProjectRootChanged() {
|
|
Jeremy Bullock |
e59b1f |
int index = 0;
|
|
Jeremy Bullock |
e59b1f |
if (m_projectRootStuff->isChecked()) index |= 0x08;
|
|
Jeremy Bullock |
e59b1f |
if (m_projectRootDocuments->isChecked()) index |= 0x04;
|
|
Jeremy Bullock |
e59b1f |
if (m_projectRootDesktop->isChecked()) index |= 0x02;
|
|
Jeremy Bullock |
e59b1f |
if (m_projectRootCustom->isChecked()) index |= 0x01;
|
|
Jeremy Bullock |
e59b1f |
m_pref->setProjectRoot(index);
|
|
Jeremy Bullock |
e59b1f |
if (index & 0x01) {
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootFileField->show();
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootLabel->show();
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDirections->show();
|
|
Jeremy Bullock |
e59b1f |
} else {
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootFileField->hide();
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootLabel->hide();
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDirections->hide();
|
|
Jeremy Bullock |
e59b1f |
}
|
|
Jeremy Bullock |
e59b1f |
}
|
|
Jeremy Bullock |
e59b1f |
|
|
Jeremy Bullock |
e59b1f |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
e59b1f |
|
|
Jeremy Bullock |
e59b1f |
void PreferencesPopup::onCustomProjectRootChanged() {
|
|
Jeremy Bullock |
e59b1f |
QString text = m_customProjectRootFileField->getPath();
|
|
Jeremy Bullock |
e59b1f |
m_pref->setCustomProjectRoot(text.toStdWString());
|
|
Jeremy Bullock |
e59b1f |
}
|
|
Jeremy Bullock |
e59b1f |
|
|
Jeremy Bullock |
e59b1f |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
e59b1f |
|
|
shun_iwasawa |
bb0d83 |
void PreferencesPopup::onPixelUnitExternallySelected(bool on) {
|
|
shun_iwasawa |
bb0d83 |
// call slot function onPixelsOnlyChanged() accordingly
|
|
shun_iwasawa |
bb0d83 |
m_pixelsOnlyCB->setCheckState((on) ? Qt::Checked : Qt::Unchecked);
|
|
shun_iwasawa |
bb0d83 |
}
|
|
shun_iwasawa |
bb0d83 |
|
|
shun_iwasawa |
bb0d83 |
//-----------------------------------------------------------------------------
|
|
shun_iwasawa |
bb0d83 |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onUnitChanged(int index) {
|
|
Jeremy Bullock |
59dbbf |
if (index == 4 && m_pixelsOnlyCB->isChecked() == false) {
|
|
Jeremy Bullock |
59dbbf |
m_pixelsOnlyCB->setCheckState(Qt::Checked);
|
|
Jeremy Bullock |
59dbbf |
}
|
|
Jeremy Bullock |
59dbbf |
m_pref->setUnits(::units[index].toStdString());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onCameraUnitChanged(int index) {
|
|
Jeremy Bullock |
59dbbf |
if (index == 4 && m_pixelsOnlyCB->isChecked() == false) {
|
|
Jeremy Bullock |
59dbbf |
m_pixelsOnlyCB->setChecked(true);
|
|
Jeremy Bullock |
59dbbf |
}
|
|
Jeremy Bullock |
59dbbf |
m_pref->setCameraUnits(::units[index].toStdString());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onRoomChoiceChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->writeSettings();
|
|
Shinya Kitaoka |
120a6e |
m_pref->setCurrentRoomChoice(index);
|
|
turtletooth |
8d9ba3 |
}
|
|
turtletooth |
8d9ba3 |
|
|
turtletooth |
8d9ba3 |
//-----------------------------------------------------------------------------
|
|
turtletooth |
8d9ba3 |
|
|
Jeremy Bullock |
b53dba |
void PreferencesPopup::onImportPolicyChanged(int index) {
|
|
Jeremy Bullock |
b53dba |
m_pref->setDefaultImportPolicy(index);
|
|
Jeremy Bullock |
b53dba |
}
|
|
Jeremy Bullock |
b53dba |
|
|
Jeremy Bullock |
b53dba |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
b53dba |
|
|
Jeremy Bullock |
b53dba |
void PreferencesPopup::onImportPolicyExternallyChanged(int policy) {
|
|
Jeremy Bullock |
b53dba |
// call slot function onImportPolicyChanged() accordingly
|
|
Jeremy Bullock |
b53dba |
m_importPolicy->setCurrentIndex(policy);
|
|
Jeremy Bullock |
b53dba |
}
|
|
Jeremy Bullock |
b53dba |
|
|
Jeremy Bullock |
b53dba |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
b53dba |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onScanLevelTypeChanged(const QString &text) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setScanLevelType(text.toStdString());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onMinuteChanged() {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setAutosavePeriod(m_minuteFld->getValue());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onChunkSizeChanged() {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setDefaultTaskChunkSize(m_chunkSizeFld->getValue());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onBlankCountChanged() {
|
|
Shinya Kitaoka |
120a6e |
if (m_blanksCount && m_blankColor)
|
|
Shinya Kitaoka |
120a6e |
m_pref->setBlankValues(m_blanksCount->getValue(), m_blankColor->getColor());
|
|
shun_iwasawa |
4635d8 |
TApp::instance()->getCurrentScene()->notifyPreferenceChanged("BlankCount");
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onOnionPaperThicknessChanged() {
|
|
Shinya Kitaoka |
120a6e |
if (m_onionPaperThickness) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setOnionPaperThickness(m_onionPaperThickness->getValue());
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onBlankColorChanged(const TPixel32 &, bool isDragging) {
|
|
Shinya Kitaoka |
120a6e |
if (isDragging) return;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
if (m_blanksCount && m_blankColor)
|
|
Shinya Kitaoka |
120a6e |
m_pref->setBlankValues(m_blanksCount->getValue(), m_blankColor->getColor());
|
|
shun_iwasawa |
4635d8 |
TApp::instance()->getCurrentScene()->notifyPreferenceChanged("BlankColor");
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onAutomaticSVNRefreshChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableAutomaticSVNFolderRefresh(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onSVNEnabledChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
bool enabled = index == Qt::Checked;
|
|
Shinya Kitaoka |
120a6e |
if (enabled) {
|
|
Shinya Kitaoka |
120a6e |
if (VersionControl::instance()->testSetup())
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableSVN(true);
|
|
Shinya Kitaoka |
120a6e |
else {
|
|
Shinya Kitaoka |
120a6e |
if (m_enableVersionControl) m_enableVersionControl->setChecked(false);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
} else
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableSVN(false);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void invalidateIcons(); // implemented in sceneviewer.cpp; in which fucking
|
|
Shinya Kitaoka |
120a6e |
// header I can put this declaration?!
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onTranspCheckDataChanged(const TPixel32 &,
|
|
Shinya Kitaoka |
120a6e |
bool isDragging) {
|
|
Shinya Kitaoka |
120a6e |
if (isDragging) return;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_pref->setTranspCheckData(m_transpCheckBgColor->getColor(),
|
|
Shinya Kitaoka |
120a6e |
m_transpCheckInkColor->getColor(),
|
|
Shinya Kitaoka |
120a6e |
m_transpCheckPaintColor->getColor());
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
invalidateIcons();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//---------------------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onOnionDataChanged(const TPixel32 &, bool isDragging) {
|
|
Shinya Kitaoka |
120a6e |
if (isDragging) return;
|
|
Shinya Kitaoka |
120a6e |
bool inksOnly = false;
|
|
Shinya Kitaoka |
120a6e |
if (m_inksOnly) inksOnly = m_inksOnly->isChecked();
|
|
Shinya Kitaoka |
120a6e |
m_pref->setOnionData(m_frontOnionColor->getColor(),
|
|
Shinya Kitaoka |
120a6e |
m_backOnionColor->getColor(), inksOnly);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentLevel()->notifyLevelViewChange();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onOnionDataChanged(int) {
|
|
Shinya Kitaoka |
120a6e |
bool inksOnly = false;
|
|
Shinya Kitaoka |
120a6e |
if (m_inksOnly) inksOnly = m_inksOnly->isChecked();
|
|
Shinya Kitaoka |
120a6e |
m_pref->setOnionData(m_frontOnionColor->getColor(),
|
|
Shinya Kitaoka |
120a6e |
m_backOnionColor->getColor(), inksOnly);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onViewValuesChanged() {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setViewValues(m_viewShrink->getValue(), m_viewStep->getValue());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onIconSizeChanged() {
|
|
Shinya Kitaoka |
120a6e |
TDimension size(m_iconSizeLx->getValue(), m_iconSizeLy->getValue());
|
|
Shinya Kitaoka |
120a6e |
if (m_pref->getIconSize() == size) return;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_pref->setIconSize(size);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onAutoExposeChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableAutoExpose(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Jeremy Bullock |
8c5007 |
void PreferencesPopup::onIgnoreImageDpiChanged(int index) {
|
|
Jeremy Bullock |
8c5007 |
m_pref->setIgnoreImageDpi(index == Qt::Checked);
|
|
Jeremy Bullock |
8c5007 |
}
|
|
Jeremy Bullock |
8c5007 |
|
|
Jeremy Bullock |
8c5007 |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
8c5007 |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onSubsceneFolderChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableSubsceneFolder(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onViewGeneratedMovieChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableGeneratedMovieView(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onXsheetStepChanged() {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setXsheetStep(m_xsheetStep->getValue());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onXsheetAutopanChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableXsheetAutopan(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onIgnoreAlphaonColumn1Changed(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableIgnoreAlphaonColumn1(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onRewindAfterPlayback(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableRewindAfterPlayback(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onFitToFlipbook(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableFitToFlipbook(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onPreviewAlwaysOpenNewFlip(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enablePreviewAlwaysOpenNewFlip(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onAskForOverrideRender(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setAskForOverrideRender(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onRasterOptimizedMemoryChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
if (m_pref->isRasterOptimizedMemory() == (index == Qt::Checked)) return;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableRasterOptimizedMemory(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onGetFillOnlySavebox(int index) {
|
|
Shinya Kitaoka |
120a6e |
if (m_pref->getFillOnlySavebox() == (index == Qt::Checked)) return;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_pref->setFillOnlySavebox(index == Qt::Checked);
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onSaveUnpaintedInCleanupChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
if (m_pref->isSaveUnpaintedInCleanupEnable() == (index == Qt::Checked))
|
|
Shinya Kitaoka |
120a6e |
return;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableSaveUnpaintedInCleanup(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onMinimizeSaveboxAfterEditing(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableMinimizeSaveboxAfterEditing(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onDefaultViewerChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableDefaultViewer(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Jeremy Bullock |
33e7d1 |
void PreferencesPopup::onAutoSaveChanged(bool on) {
|
|
Jeremy Bullock |
33e7d1 |
m_pref->enableAutosave(on);
|
|
Jeremy Bullock |
33e7d1 |
if (on && !m_autoSaveSceneCB->isChecked() &&
|
|
Jeremy Bullock |
33e7d1 |
!m_autoSaveOtherFilesCB->isChecked()) {
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveSceneCB->setChecked(true);
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveOtherFilesCB->setChecked(true);
|
|
Jeremy Bullock |
33e7d1 |
}
|
|
Jeremy Bullock |
33e7d1 |
}
|
|
Jeremy Bullock |
33e7d1 |
|
|
Jeremy Bullock |
33e7d1 |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
33e7d1 |
|
|
Jeremy Bullock |
33e7d1 |
void PreferencesPopup::onAutoSaveSceneChanged(int index) {
|
|
Jeremy Bullock |
33e7d1 |
m_pref->enableAutosaveScene(index == Qt::Checked);
|
|
Jeremy Bullock |
33e7d1 |
if (!m_autoSaveOtherFilesCB->isChecked() && index == Qt::Unchecked) {
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveGroup->setChecked(false);
|
|
Jeremy Bullock |
33e7d1 |
}
|
|
Jeremy Bullock |
33e7d1 |
}
|
|
Jeremy Bullock |
33e7d1 |
|
|
Jeremy Bullock |
33e7d1 |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
33e7d1 |
|
|
Jeremy Bullock |
33e7d1 |
void PreferencesPopup::onAutoSaveOtherFilesChanged(int index) {
|
|
Jeremy Bullock |
33e7d1 |
m_pref->enableAutosaveOtherFiles(index == Qt::Checked);
|
|
Jeremy Bullock |
33e7d1 |
if (!m_autoSaveSceneCB->isChecked() && index == Qt::Unchecked) {
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveGroup->setChecked(false);
|
|
Jeremy Bullock |
33e7d1 |
}
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Jeremy Bullock |
bfe861 |
void PreferencesPopup::onStartupPopupChanged(int index) {
|
|
Jeremy Bullock |
bfe861 |
m_pref->enableStartupPopup(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onKeyframeTypeChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setKeyframeType(index + 2);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onAutocreationTypeChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setAutocreationType(index);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onAnimationStepChanged() {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setAnimationStep(m_animationStepField->getValue());
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onLanguageTypeChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setCurrentLanguage(index);
|
|
Shinya Kitaoka |
120a6e |
QString currentLanguage = m_pref->getCurrentLanguage();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onMoveCurrentFrameChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableMoveCurrent(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onReplaceAfterSaveLevelAsChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableReplaceAfterSaveLevelAs(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::setViewerBgColor(const TPixel32 &color,
|
|
Shinya Kitaoka |
120a6e |
bool isDragging) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setViewerBGColor(color, isDragging);
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::setPreviewBgColor(const TPixel32 &color,
|
|
Shinya Kitaoka |
120a6e |
bool isDragging) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setPreviewBGColor(color, isDragging);
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::setChessboardColor1(const TPixel32 &color,
|
|
Shinya Kitaoka |
120a6e |
bool isDragging) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setChessboardColor1(color, isDragging);
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::setChessboardColor2(const TPixel32 &color,
|
|
Shinya Kitaoka |
120a6e |
bool isDragging) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setChessboardColor2(color, isDragging);
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentScene()->notifySceneChanged();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onColumnIconChange(const QString &value) {
|
|
shun_iwasawa |
0ac421 |
m_pref->setColumnIconLoadingPolicy(value == tr("At Once")
|
|
Shinya Kitaoka |
120a6e |
? Preferences::LoadAtOnce
|
|
Shinya Kitaoka |
120a6e |
: Preferences::LoadOnDemand);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onOnionSkinVisibilityChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableOnionSkin(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_frontOnionColor->setEnabled(index == Qt::Checked);
|
|
Shinya Kitaoka |
120a6e |
m_backOnionColor->setEnabled(index == Qt::Checked);
|
|
Shinya Kitaoka |
120a6e |
m_inksOnly->setEnabled(index == Qt::Checked);
|
|
Shinya Kitaoka |
120a6e |
m_onionPaperThickness->setEnabled(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
OnionSkinMask osm =
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentOnionSkin()->getOnionSkinMask();
|
|
Shinya Kitaoka |
120a6e |
osm.enable(index == Qt::Checked);
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentOnionSkin()->setOnionSkinMask(osm);
|
|
Shinya Kitaoka |
120a6e |
TApp::instance()->getCurrentOnionSkin()->notifyOnionSkinMaskChanged();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Jeremy Bullock |
17d8f9 |
void PreferencesPopup::onOnionSkinDuringPlaybackChanged(int index) {
|
|
Jeremy Bullock |
17d8f9 |
m_pref->setOnionSkinDuringPlayback(index == Qt::Checked);
|
|
Jeremy Bullock |
17d8f9 |
}
|
|
Jeremy Bullock |
17d8f9 |
|
|
Jeremy Bullock |
17d8f9 |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
17d8f9 |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onActualPixelOnSceneModeChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableActualPixelViewOnSceneEditingMode(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onMultiLayerStylePickerChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableMultiLayerStylePicker(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onLevelNameOnEachMarkerChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableLevelNameOnEachMarker(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onInitialLoadTlvCachingBehaviorChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setInitialLoadTlvCachingBehavior(index);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onViewerZoomCenterChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setViewerZoomCenter(index);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onRemoveSceneNumberFromLoadedLevelNameChanged(
|
|
Shinya Kitaoka |
120a6e |
int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableRemoveSceneNumberFromLoadedLevelName(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onShowRasterImageDarkenBlendedInViewerChanged(
|
|
Shinya Kitaoka |
120a6e |
int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableShowRasterImagesDarkenBlendedInViewer(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onShowFrameNumberWithLettersChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableShowFrameNumberWithLetters(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onPaletteTypeForRasterColorModelChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setPaletteTypeOnLoadRasterImageAsColorModel(index);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onShowKeyframesOnCellAreaChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableShowKeyframesOnXsheetCellArea(index == Qt::Checked);
|
|
shun_iwasawa |
9f6fb4 |
}
|
|
shun_iwasawa |
9f6fb4 |
|
|
shun_iwasawa |
9f6fb4 |
//-----------------------------------------------------------------------------
|
|
shun_iwasawa |
9f6fb4 |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onStyleSheetTypeChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setCurrentStyleSheet(index);
|
|
Shinya Kitaoka |
120a6e |
QApplication::setOverrideCursor(Qt::WaitCursor);
|
|
Shinya Kitaoka |
120a6e |
QString currentStyle = m_pref->getCurrentStyleSheet();
|
|
Shinya Kitaoka |
120a6e |
qApp->setStyleSheet(currentStyle);
|
|
Shinya Kitaoka |
120a6e |
QApplication::restoreOverrideCursor();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
/*
|
|
Toshihiro Shimizu |
890ddd |
QWidget* PreferencesPopup::create(const QString &lbl, bool def, const char*slot)
|
|
Toshihiro Shimizu |
890ddd |
{
|
|
Toshihiro Shimizu |
890ddd |
DVGui::CheckBox* cb = new DVGui::CheckBox(lbl);
|
|
Toshihiro Shimizu |
890ddd |
cb->setMaximumHeight(WidgetHeight);
|
|
Toshihiro Shimizu |
890ddd |
cb->setChecked(def);
|
|
Toshihiro Shimizu |
890ddd |
bool ret = connect(cb, SIGNAL(stateChanged (int)), slot);
|
|
Toshihiro Shimizu |
890ddd |
assert(ret);
|
|
Toshihiro Shimizu |
890ddd |
return cb;
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
*/
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onUndoMemorySizeChanged() {
|
|
Shinya Kitaoka |
120a6e |
int value = m_undoMemorySize->getValue();
|
|
Shinya Kitaoka |
120a6e |
m_pref->setUndoMemorySize(value);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onDragCellsBehaviourChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setDragCellsBehaviour(index);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifdef LINETEST
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onLineTestFpsCapture(int index) {
|
|
Shinya Kitaoka |
120a6e |
if (index == 0) m_pref->setLineTestFpsCapture(0);
|
|
Shinya Kitaoka |
120a6e |
if (index == 1)
|
|
Shinya Kitaoka |
120a6e |
m_pref->setLineTestFpsCapture(25);
|
|
Shinya Kitaoka |
120a6e |
else if (index == 2)
|
|
Shinya Kitaoka |
120a6e |
m_pref->setLineTestFpsCapture(30);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onLevelsBackupChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableLevelsBackup(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onSceneNumberingChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->enableSceneNumbering(index == Qt::Checked);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onDefLevelTypeChanged(int index) {
|
|
Shinya Kitaoka |
120a6e |
if (0 <= index && index < m_defLevelType->count()) {
|
|
Shinya Kitaoka |
120a6e |
int levelType = m_defLevelType->itemData(index).toInt();
|
|
Shinya Kitaoka |
120a6e |
m_pref->setDefLevelType(levelType);
|
|
Shinya Kitaoka |
120a6e |
bool isRaster = levelType != PLI_XSHLEVEL;
|
|
Shinya Kitaoka |
120a6e |
m_defLevelWidth->setEnabled(isRaster);
|
|
Shinya Kitaoka |
120a6e |
m_defLevelHeight->setEnabled(isRaster);
|
|
Jeremy Bullock |
59dbbf |
if (!m_pixelsOnlyCB->isChecked()) m_defLevelDpi->setEnabled(isRaster);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onDefLevelParameterChanged() {
|
|
Shinya Kitaoka |
120a6e |
double w = m_defLevelWidth->getValue();
|
|
Shinya Kitaoka |
120a6e |
double h = m_defLevelHeight->getValue();
|
|
Shinya Kitaoka |
120a6e |
double dpi = m_defLevelDpi->getValue();
|
|
Shinya Kitaoka |
120a6e |
m_pref->setDefLevelWidth(w);
|
|
Shinya Kitaoka |
120a6e |
m_pref->setDefLevelHeight(h);
|
|
Shinya Kitaoka |
120a6e |
m_pref->setDefLevelDpi(dpi);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Jeremy Bullock |
cd00fd |
void PreferencesPopup::onVectorSnappingTargetChanged(int index) {
|
|
Jeremy Bullock |
cd00fd |
m_vectorSnappingTargetCB->setCurrentIndex(index);
|
|
Jeremy Bullock |
cd00fd |
m_pref->setVectorSnappingTarget(index);
|
|
Jeremy Bullock |
cd00fd |
}
|
|
Jeremy Bullock |
cd00fd |
|
|
Jeremy Bullock |
cd00fd |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
cd00fd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::rebuildFormatsList() {
|
|
Shinya Kitaoka |
120a6e |
const Preferences &prefs = *Preferences::instance();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_levelFormatNames->clear();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
int lf, lfCount = prefs.levelFormatsCount();
|
|
Shinya Kitaoka |
120a6e |
for (lf = 0; lf != lfCount; ++lf)
|
|
Shinya Kitaoka |
120a6e |
m_levelFormatNames->addItem(prefs.levelFormat(lf).m_name);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_editLevelFormat->setEnabled(m_levelFormatNames->count() > 0);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onAddLevelFormat() {
|
|
Shinya Kitaoka |
120a6e |
bool ok = true;
|
|
Shinya Kitaoka |
120a6e |
QString formatName = DVGui::getText(tr("New Level Format"),
|
|
Shinya Kitaoka |
120a6e |
tr("Assign the new level format name:"),
|
|
Shinya Kitaoka |
120a6e |
tr("New Format"), &ok);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
if (ok) {
|
|
Shinya Kitaoka |
120a6e |
int formatIdx = Preferences::instance()->addLevelFormat(formatName);
|
|
Shinya Kitaoka |
120a6e |
rebuildFormatsList();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_levelFormatNames->setCurrentIndex(formatIdx);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onRemoveLevelFormat() {
|
|
Shinya Kitaoka |
120a6e |
Preferences::instance()->removeLevelFormat(
|
|
Shinya Kitaoka |
120a6e |
m_levelFormatNames->currentIndex());
|
|
Shinya Kitaoka |
120a6e |
rebuildFormatsList();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onEditLevelFormat() {
|
|
Shinya Kitaoka |
120a6e |
if (!m_formatProperties) {
|
|
Shinya Kitaoka |
120a6e |
m_formatProperties = new FormatProperties(this);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
bool ret = connect(m_formatProperties, SIGNAL(dialogClosed()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onLevelFormatEdited()));
|
|
Shinya Kitaoka |
120a6e |
assert(ret);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
const Preferences::LevelFormat &lf =
|
|
Shinya Kitaoka |
120a6e |
Preferences::instance()->levelFormat(m_levelFormatNames->currentIndex());
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_formatProperties->setLevelFormat(lf);
|
|
Shinya Kitaoka |
120a6e |
m_formatProperties->show();
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onLevelFormatEdited() {
|
|
Shinya Kitaoka |
120a6e |
assert(m_formatProperties);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
Preferences &prefs = *Preferences::instance();
|
|
Shinya Kitaoka |
120a6e |
int formatIdx = m_levelFormatNames->currentIndex();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
prefs.removeLevelFormat(formatIdx);
|
|
Shinya Kitaoka |
120a6e |
formatIdx = prefs.addLevelFormat(m_formatProperties->levelFormat());
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
rebuildFormatsList();
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
m_levelFormatNames->setCurrentIndex(formatIdx);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onShow0ThickLinesChanged(int on) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setShow0ThickLines(on);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void PreferencesPopup::onRegionAntialiasChanged(int on) {
|
|
Shinya Kitaoka |
120a6e |
m_pref->setRegionAntialias(on);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
turtletooth |
04d8fd |
//-----------------------------------------------------------------------------
|
|
turtletooth |
04d8fd |
|
|
turtletooth |
04d8fd |
void PreferencesPopup::onFfmpegPathChanged() {
|
|
turtletooth |
04d8fd |
QString text = m_ffmpegPathFileFld->getPath();
|
|
turtletooth |
04d8fd |
m_pref->setFfmpegPath(text.toStdString());
|
|
turtletooth |
04d8fd |
}
|
|
turtletooth |
04d8fd |
|
|
turtletooth |
04d8fd |
//-----------------------------------------------------------------------------
|
|
turtletooth |
04d8fd |
|
|
Jeremy Bullock |
3bb5ef |
void PreferencesPopup::onFastRenderPathChanged() {
|
|
Jeremy Bullock |
3bb5ef |
QString text = m_fastRenderPathFileField->getPath();
|
|
Jeremy Bullock |
3bb5ef |
m_pref->setFastRenderPath(text.toStdString());
|
|
Jeremy Bullock |
3bb5ef |
}
|
|
Jeremy Bullock |
3bb5ef |
|
|
Jeremy Bullock |
3bb5ef |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
3bb5ef |
|
|
turtletooth |
04d8fd |
void PreferencesPopup::onFfmpegTimeoutChanged() {
|
|
shun-iwasawa |
27b0cf |
m_pref->setFfmpegTimeout(m_ffmpegTimeout->getValue());
|
|
turtletooth |
04d8fd |
}
|
|
turtletooth |
04d8fd |
|
|
shun_iwasawa |
4635d8 |
//-----------------------------------------------------------------------------
|
|
shun_iwasawa |
4635d8 |
|
|
shun_iwasawa |
4635d8 |
void PreferencesPopup::onUseNumpadForSwitchingStylesClicked(bool checked) {
|
|
shun_iwasawa |
4635d8 |
if (checked) {
|
|
shun_iwasawa |
4635d8 |
// check if there are any commands with numpadkey shortcuts
|
|
shun_iwasawa |
4635d8 |
CommandManager *cm = CommandManager::instance();
|
|
shun_iwasawa |
4635d8 |
QList<qaction *=""> actionsList;</qaction>
|
|
shun_iwasawa |
4635d8 |
for (int key = Qt::Key_0; key <= Qt::Key_9; key++) {
|
|
shun_iwasawa |
4635d8 |
std::string str = QKeySequence(key).toString().toStdString();
|
|
shun_iwasawa |
4635d8 |
QAction *action = cm->getActionFromShortcut(str);
|
|
shun_iwasawa |
4635d8 |
if (action) actionsList.append(action);
|
|
shun_iwasawa |
4635d8 |
}
|
|
shun_iwasawa |
4635d8 |
QAction *tabAction = cm->getActionFromShortcut("Tab");
|
|
shun_iwasawa |
4635d8 |
if (tabAction) actionsList.append(tabAction);
|
|
shun_iwasawa |
beb305 |
tabAction = cm->getActionFromShortcut("Shift+Tab");
|
|
shun_iwasawa |
beb305 |
if (tabAction) actionsList.append(tabAction);
|
|
shun_iwasawa |
4635d8 |
// if there are actions using numpad shortcuts, notify to release them.
|
|
shun_iwasawa |
4635d8 |
if (!actionsList.isEmpty()) {
|
|
shun_iwasawa |
4635d8 |
QString msgStr =
|
|
shun_iwasawa |
4635d8 |
tr("Numpad keys are assigned to the following commands.\nIs it OK to "
|
|
shun_iwasawa |
4635d8 |
"release these shortcuts?");
|
|
shun_iwasawa |
4635d8 |
for (int a = 0; a < actionsList.size(); a++) {
|
|
shun_iwasawa |
4635d8 |
msgStr += "\n" + actionsList.at(a)->iconText() + " (" +
|
|
shun_iwasawa |
4635d8 |
actionsList.at(a)->shortcut().toString() + ")";
|
|
shun_iwasawa |
4635d8 |
}
|
|
shun_iwasawa |
4635d8 |
int ret = DVGui::MsgBox(msgStr, tr("OK"), tr("Cancel"), 1);
|
|
shun_iwasawa |
4635d8 |
if (ret == 2 || ret == 0) { // canceled
|
|
shun_iwasawa |
4635d8 |
m_useNumpadForSwitchingStyles->setChecked(false);
|
|
shun_iwasawa |
4635d8 |
return;
|
|
shun_iwasawa |
4635d8 |
} else { // accepted, then release shortcuts
|
|
shun_iwasawa |
4635d8 |
for (int a = 0; a < actionsList.size(); a++)
|
|
shun_iwasawa |
4635d8 |
cm->setShortcut(actionsList[a], "");
|
|
shun_iwasawa |
4635d8 |
}
|
|
shun_iwasawa |
4635d8 |
}
|
|
shun_iwasawa |
4635d8 |
}
|
|
shun_iwasawa |
4635d8 |
m_pref->enableUseNumpadForSwitchingStyles(checked);
|
|
shun_iwasawa |
4635d8 |
// emit signal to update Palette and Viewer
|
|
shun_iwasawa |
4635d8 |
TApp::instance()->getCurrentScene()->notifyPreferenceChanged(
|
|
shun_iwasawa |
4635d8 |
"NumpadForSwitchingStyles");
|
|
shun_iwasawa |
4635d8 |
}
|
|
shun_iwasawa |
4635d8 |
|
|
shun_iwasawa |
3639da |
//-----------------------------------------------------------------------------
|
|
shun_iwasawa |
3639da |
|
|
Jeremy Bullock |
15fcba |
void PreferencesPopup::onShowXSheetToolbarClicked(bool checked) {
|
|
Jeremy Bullock |
15fcba |
m_pref->enableShowXSheetToolbar(checked);
|
|
Jeremy Bullock |
15fcba |
TApp::instance()->getCurrentScene()->notifyPreferenceChanged("XSheetToolbar");
|
|
Jeremy Bullock |
15fcba |
}
|
|
Jeremy Bullock |
15fcba |
|
|
Jeremy Bullock |
15fcba |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
15fcba |
|
|
Jeremy Bullock |
15fcba |
void PreferencesPopup::onExpandFunctionHeaderClicked(bool checked) {
|
|
Jeremy Bullock |
15fcba |
m_pref->enableExpandFunctionHeader(checked);
|
|
Jeremy Bullock |
15fcba |
}
|
|
Jeremy Bullock |
15fcba |
|
|
Jaroslav |
203cc8 |
void PreferencesPopup::onShowColumnNumbersChanged(int index) {
|
|
shun_iwasawa |
0cae24 |
m_pref->enableShowColumnNumbers(index == Qt::Checked);
|
|
Jaroslav |
203cc8 |
}
|
|
Jaroslav |
203cc8 |
|
|
Jeremy Bullock |
15fcba |
//-----------------------------------------------------------------------------
|
|
Jeremy Bullock |
15fcba |
|
|
shun_iwasawa |
3639da |
void PreferencesPopup::onUseArrowKeyToShiftCellSelectionClicked(int on) {
|
|
shun_iwasawa |
3639da |
m_pref->enableUseArrowKeyToShiftCellSelection(on);
|
|
shun_iwasawa |
3639da |
}
|
|
shun_iwasawa |
3639da |
|
|
shun_iwasawa |
3639da |
//-----------------------------------------------------------------------------
|
|
shun_iwasawa |
3639da |
|
|
shun_iwasawa |
3639da |
void PreferencesPopup::onInputCellsWithoutDoubleClickingClicked(int on) {
|
|
shun_iwasawa |
3639da |
m_pref->enableInputCellsWithoutDoubleClicking(on);
|
|
shun_iwasawa |
3639da |
}
|
|
shun_iwasawa |
3639da |
|
|
shun-iwasawa |
57bc09 |
//-----------------------------------------------------------------------------
|
|
shun-iwasawa |
57bc09 |
|
|
shun-iwasawa |
57bc09 |
void PreferencesPopup::onWatchFileSystemClicked(int on) {
|
|
shun-iwasawa |
57bc09 |
m_pref->enableWatchFileSystem(on);
|
|
shun-iwasawa |
57bc09 |
// emit signal to update behavior of the File browser
|
|
shun-iwasawa |
57bc09 |
TApp::instance()->getCurrentScene()->notifyPreferenceChanged(
|
|
shun-iwasawa |
57bc09 |
"WatchFileSystem");
|
|
shun-iwasawa |
57bc09 |
}
|
|
shun-iwasawa |
57bc09 |
|
|
Toshihiro Shimizu |
890ddd |
//**********************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
// PrefencesPopup's constructor
|
|
Toshihiro Shimizu |
890ddd |
//**********************************************************************************
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
PreferencesPopup::PreferencesPopup()
|
|
Shinya Kitaoka |
120a6e |
: QDialog(TApp::instance()->getMainWindow())
|
|
Shinya Kitaoka |
120a6e |
, m_formatProperties()
|
|
Shinya Kitaoka |
120a6e |
, m_inksOnly(0)
|
|
Shinya Kitaoka |
120a6e |
, m_blanksCount(0)
|
|
Shinya Kitaoka |
120a6e |
, m_blankColor(0) {
|
|
Shinya Kitaoka |
120a6e |
setWindowTitle(tr("Preferences"));
|
|
Shinya Kitaoka |
120a6e |
setObjectName("PreferencesPopup");
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_pref = Preferences::instance();
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
// Category List
|
|
Shinya Kitaoka |
120a6e |
QListWidget *categoryList = new QListWidget(this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QStackedWidget *stackedWidget = new QStackedWidget(this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//---General ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("General"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
CheckBox *useDefaultViewerCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Use Default Viewer for Movie Formats"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *minimizeRasterMemoryCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Minimize Raster Memory Fragmentation *"), this);
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveGroup = new QGroupBox(tr("Save Automatically"), this);
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveGroup->setCheckable(true);
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveSceneCB = new CheckBox(tr("Automatically Save the Scene File"));
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveOtherFilesCB =
|
|
Jeremy Bullock |
33e7d1 |
new CheckBox(tr("Automatically Save Non-Scene Files"));
|
|
Jeremy Bullock |
bfe861 |
CheckBox *startupPopupCB =
|
|
Jeremy Bullock |
bfe861 |
new CheckBox(tr("Show Startup Window when OpenToonz Starts"));
|
|
Jeremy Bullock |
33e7d1 |
m_minuteFld = new DVGui::IntLineEdit(this, 15, 1, 60);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *replaceAfterSaveLevelAsCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Replace Toonz Level after SaveLevelAs command"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_cellsDragBehaviour = new QComboBox();
|
|
Shinya Kitaoka |
120a6e |
m_undoMemorySize =
|
|
Shinya Kitaoka |
120a6e |
new DVGui::IntLineEdit(this, m_pref->getUndoMemorySize(), 0, 2000);
|
|
Shinya Kitaoka |
120a6e |
m_levelsBackup = new CheckBox(tr("Backup Animation Levels when Saving"));
|
|
Shinya Kitaoka |
120a6e |
m_chunkSizeFld =
|
|
Shinya Kitaoka |
120a6e |
new DVGui::IntLineEdit(this, m_pref->getDefaultTaskChunkSize(), 1, 2000);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *sceneNumberingCB = new CheckBox(tr("Show Info in Rendered Frames"));
|
|
shun-iwasawa |
57bc09 |
CheckBox *watchFileSystemCB = new CheckBox(
|
|
shun-iwasawa |
57bc09 |
tr("Watch File System and Update File Browser Automatically"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDocuments = new CheckBox(tr("My Documents/OpenToonz*"), this);
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDesktop = new CheckBox(tr("Desktop/OpenToonz*"), this);
|
|
Jeremy Bullock |
e59b1f |
m_projectRootStuff = new CheckBox(tr("Stuff Folder*"), this);
|
|
Jeremy Bullock |
e59b1f |
m_projectRootCustom = new CheckBox(tr("Custom*"), this);
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootFileField = new DVGui::FileField(this, QString(""));
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootLabel = new QLabel(tr("Custom Project Path(s): "));
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDirections = new QLabel(
|
|
Jeremy Bullock |
e59b1f |
tr("Advanced: Multiple paths can be separated by ** (No Spaces)"));
|
|
Jeremy Bullock |
e59b1f |
|
|
Shinya Kitaoka |
120a6e |
QLabel *note_general =
|
|
Shinya Kitaoka |
120a6e |
new QLabel(tr("* Changes will take effect the next time you run Toonz"));
|
|
Shinya Kitaoka |
120a6e |
note_general->setStyleSheet("font-size: 10px; font: italic;");
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Interface ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Interface"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QComboBox *languageType = 0;
|
|
Shinya Kitaoka |
120a6e |
QStringList languageList;
|
|
Shinya Kitaoka |
120a6e |
int currentIndex = 0;
|
|
Shinya Kitaoka |
120a6e |
for (int i = 0; i < m_pref->getLanguageCount(); i++) {
|
|
Shinya Kitaoka |
120a6e |
QString string = m_pref->getLanguage(i);
|
|
Shinya Kitaoka |
120a6e |
if (string == m_pref->getCurrentLanguage()) currentIndex = i;
|
|
Shinya Kitaoka |
120a6e |
languageList.push_back(string);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
if (languageList.size() > 1) {
|
|
Shinya Kitaoka |
120a6e |
languageType = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
languageType->addItems(languageList);
|
|
Shinya Kitaoka |
120a6e |
languageType->setCurrentIndex(currentIndex);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
QComboBox *styleSheetType = new QComboBox(this);
|
|
Jeremy Bullock |
7c096e |
m_pixelsOnlyCB =
|
|
Jeremy Bullock |
59dbbf |
new CheckBox(tr("All imported images will use the same DPI"), this);
|
|
Jeremy Bullock |
59dbbf |
m_unitOm = new QComboBox(this);
|
|
Jeremy Bullock |
59dbbf |
m_cameraUnitOm = new QComboBox(this);
|
|
Jeremy Bullock |
20a966 |
|
|
Shinya Kitaoka |
120a6e |
// Choose between standard and Studio Ghibli rooms
|
|
Shinya Kitaoka |
120a6e |
QComboBox *roomChoice = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_iconSizeLx = new DVGui::IntLineEdit(this, 80, 10, 400);
|
|
Shinya Kitaoka |
120a6e |
m_iconSizeLy = new DVGui::IntLineEdit(this, 60, 10, 400);
|
|
Shinya Kitaoka |
120a6e |
m_viewShrink = new DVGui::IntLineEdit(this, 1, 1, 20);
|
|
Shinya Kitaoka |
120a6e |
m_viewStep = new DVGui::IntLineEdit(this, 1, 1, 20);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
CheckBox *moveCurrentFrameCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Move Current Frame by Clicking on Xsheet / Numerical "
|
|
Shinya Kitaoka |
120a6e |
"Columns Cell Area"),
|
|
Shinya Kitaoka |
120a6e |
this);
|
|
Shinya Kitaoka |
120a6e |
// Viewer BG color
|
|
Shinya Kitaoka |
120a6e |
m_viewerBgColorFld = new ColorField(this, false, m_pref->getViewerBgColor());
|
|
Shinya Kitaoka |
120a6e |
// Preview BG color
|
|
Shinya Kitaoka |
120a6e |
m_previewBgColorFld =
|
|
Shinya Kitaoka |
120a6e |
new ColorField(this, false, m_pref->getPreviewBgColor());
|
|
Shinya Kitaoka |
120a6e |
// bg chessboard colors
|
|
Shinya Kitaoka |
120a6e |
TPixel32 col1, col2;
|
|
Shinya Kitaoka |
120a6e |
m_pref->getChessboardColors(col1, col2);
|
|
Shinya Kitaoka |
120a6e |
m_chessboardColor1Fld = new ColorField(this, false, col1);
|
|
Shinya Kitaoka |
120a6e |
m_chessboardColor2Fld = new ColorField(this, false, col2);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *openFlipbookAfterCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Open Flipbook after Rendering"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *actualPixelOnSceneModeCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Enable Actual Pixel View on Scene Editing Mode"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *levelNameOnEachMarkerCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Display Level Name on Each Marker"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *showRasterImageDarkenBlendedInViewerCB = new CheckBox(
|
|
Shinya Kitaoka |
120a6e |
tr("Show Raster Images Darken Blended in Camstand View"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *showShowFrameNumberWithLettersCB = new CheckBox(
|
|
Shinya Kitaoka |
120a6e |
tr("Show \"ABC\" Appendix to the Frame Number in Xsheet Cell"), this);
|
|
Shinya Kitaoka |
120a6e |
QComboBox *viewerZoomCenterComboBox = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QLabel *note_interface =
|
|
Shinya Kitaoka |
120a6e |
new QLabel(tr("* Changes will take effect the next time you run Toonz"));
|
|
Shinya Kitaoka |
120a6e |
note_interface->setStyleSheet("font-size: 10px; font: italic;");
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Visualization ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Visualization"));
|
|
Shinya Kitaoka |
120a6e |
CheckBox *show0ThickLinesCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Show Lines with Thickness 0"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *regionAntialiasCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Antialiased region boundaries"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Loading ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Loading"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
CheckBox *exposeLoadedLevelsCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Expose Loaded Levels in Xsheet"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *createSubfolderCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Create Sub-folder when Importing Sub-xsheet"), this);
|
|
Jeremy Bullock |
8c5007 |
CheckBox *m_ignoreImageDpiCB =
|
|
Jeremy Bullock |
8c5007 |
new CheckBox(tr("Use Camera DPI for All Imported Images"), this);
|
|
Shinya Kitaoka |
120a6e |
// Column Icon
|
|
Shinya Kitaoka |
120a6e |
m_columnIconOm = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
QComboBox *initialLoadTlvCachingBehaviorComboBox = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *removeSceneNumberFromLoadedLevelNameCB = new CheckBox(
|
|
Shinya Kitaoka |
120a6e |
tr("Automatically Remove Scene Number from Loaded Level Name"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_levelFormatNames = new QComboBox;
|
|
Shinya Kitaoka |
120a6e |
m_addLevelFormat = new QPushButton("+");
|
|
Shinya Kitaoka |
120a6e |
m_removeLevelFormat = new QPushButton("-");
|
|
Shinya Kitaoka |
120a6e |
m_editLevelFormat = new QPushButton(tr("Edit"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QComboBox *paletteTypeForRasterColorModelComboBox = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
b53dba |
m_importPolicy = new QComboBox;
|
|
Jeremy Bullock |
b53dba |
|
|
turtletooth |
04d8fd |
//--- Import/Export ------------------------------
|
|
turtletooth |
04d8fd |
categoryList->addItem(tr("Import/Export"));
|
|
turtletooth |
04d8fd |
m_ffmpegPathFileFld = new DVGui::FileField(this, QString(""));
|
|
Jeremy Bullock |
3bb5ef |
m_fastRenderPathFileField =
|
|
Jeremy Bullock |
3bb5ef |
new DVGui::FileField(this, QString("desktop"), false, true);
|
|
Jeremy Bullock |
3bb5ef |
m_ffmpegTimeout = new DVGui::IntLineEdit(this, 30, 1);
|
|
turtletooth |
04d8fd |
|
|
Shinya Kitaoka |
120a6e |
//--- Drawing ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Drawing"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
cd00fd |
m_defScanLevelType = new QComboBox(this);
|
|
Jeremy Bullock |
cd00fd |
m_defLevelType = new QComboBox(this);
|
|
Jeremy Bullock |
cd00fd |
m_defLevelWidth = new MeasuredDoubleLineEdit(0);
|
|
Jeremy Bullock |
cd00fd |
m_defLevelHeight = new MeasuredDoubleLineEdit(0);
|
|
Jeremy Bullock |
cd00fd |
m_defLevelDpi = new DoubleLineEdit(0, 66.76);
|
|
Jeremy Bullock |
cd00fd |
m_autocreationType = new QComboBox(this);
|
|
Jeremy Bullock |
cd00fd |
m_dpiLabel = new QLabel(tr("DPI:"), this);
|
|
Jeremy Bullock |
cd00fd |
m_vectorSnappingTargetCB = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *keepOriginalCleanedUpCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Keep Original Cleaned Up Drawings As Backup"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *multiLayerStylePickerCB = new CheckBox(
|
|
Shinya Kitaoka |
120a6e |
tr("Multi Layer Style Picker : Switch Levels by Picking"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *useSaveboxToLimitFillingOpCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Use the TLV Savebox to Limit Filling Operations"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *minimizeSaveboxAfterEditingCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Minimize Savebox after Editing"), this);
|
|
shun_iwasawa |
4635d8 |
m_useNumpadForSwitchingStyles =
|
|
shun_iwasawa |
4635d8 |
new CheckBox(tr("Use Numpad and Tab keys for Switching Styles"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Xsheet ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Xsheet"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
CheckBox *xsheetAutopanDuringPlaybackCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Xsheet Autopan during Playback"), this);
|
|
Shinya Kitaoka |
120a6e |
m_xsheetStep =
|
|
Shinya Kitaoka |
120a6e |
new DVGui::IntLineEdit(this, Preferences::instance()->getXsheetStep(), 0);
|
|
Shinya Kitaoka |
120a6e |
m_cellsDragBehaviour = new QComboBox();
|
|
Shinya Kitaoka |
120a6e |
CheckBox *ignoreAlphaonColumn1CB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Ignore Alpha Channel on Levels in Column 1"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *showKeyframesOnCellAreaCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Show Keyframes on Cell Area"), this);
|
|
shun_iwasawa |
3639da |
CheckBox *useArrowKeyToShiftCellSelectionCB =
|
|
shun_iwasawa |
3639da |
new CheckBox(tr("Use Arrow Key to Shift Cell Selection"), this);
|
|
shun_iwasawa |
3639da |
CheckBox *inputCellsWithoutDoubleClickingCB =
|
|
shun_iwasawa |
3639da |
new CheckBox(tr("Enable to Input Cells without Double Clicking"), this);
|
|
Jeremy Bullock |
15fcba |
m_showXSheetToolbar = new QGroupBox(tr("Show Toolbar in the XSheet "), this);
|
|
Jeremy Bullock |
15fcba |
m_showXSheetToolbar->setCheckable(true);
|
|
Jeremy Bullock |
15fcba |
m_expandFunctionHeader = new CheckBox(
|
|
Jeremy Bullock |
15fcba |
tr("Expand Function Editor Header to Match XSheet Toolbar Height "
|
|
Jeremy Bullock |
15fcba |
"(Requires Restart)"),
|
|
Jeremy Bullock |
15fcba |
this);
|
|
shun_iwasawa |
0cae24 |
CheckBox *showColumnNumbersCB =
|
|
shun_iwasawa |
0cae24 |
new CheckBox(tr("Show Column Numbers in Column Headers"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Animation ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Animation"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_keyframeType = new QComboBox(this);
|
|
Shinya Kitaoka |
120a6e |
m_animationStepField = new DVGui::IntLineEdit(this, 1, 1, 500);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Preview ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Preview"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_blanksCount = new DVGui::IntLineEdit(this, 0, 0, 1000);
|
|
Shinya Kitaoka |
120a6e |
m_blankColor = new ColorField(this, false, TPixel::Black);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *rewindAfterPlaybackCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Rewind after Playback"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *displayInNewFlipBookCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Display in a New Flipbook Window"), this);
|
|
Shinya Kitaoka |
120a6e |
CheckBox *fitToFlipbookCB = new CheckBox(tr("Fit to Flipbook"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Onion Skin ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Onion Skin"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
TPixel32 frontColor, backColor;
|
|
Shinya Kitaoka |
120a6e |
bool onlyInks;
|
|
Shinya Kitaoka |
120a6e |
m_pref->getOnionData(frontColor, backColor, onlyInks);
|
|
Shinya Kitaoka |
120a6e |
m_onionSkinVisibility = new CheckBox(tr("Onion Skin ON"));
|
|
Jeremy Bullock |
17d8f9 |
m_onionSkinDuringPlayback =
|
|
Jeremy Bullock |
17d8f9 |
new CheckBox(tr("Show Onion Skin During Playback"));
|
|
Jeremy Bullock |
17d8f9 |
m_frontOnionColor = new ColorField(this, false, frontColor);
|
|
Jeremy Bullock |
17d8f9 |
m_backOnionColor = new ColorField(this, false, backColor);
|
|
Jeremy Bullock |
17d8f9 |
m_inksOnly = new DVGui::CheckBox(tr("Display Lines Only "));
|
|
Shinya Kitaoka |
120a6e |
m_inksOnly->setChecked(onlyInks);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
int thickness = m_pref->getOnionPaperThickness();
|
|
Shinya Kitaoka |
120a6e |
m_onionPaperThickness = new DVGui::IntLineEdit(this, thickness, 0, 100);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Transparency Check ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Transparency Check"));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
TPixel32 bgColor, inkColor, paintColor;
|
|
Shinya Kitaoka |
120a6e |
m_pref->getTranspCheckData(bgColor, inkColor, paintColor);
|
|
Shinya Kitaoka |
120a6e |
m_transpCheckInkColor = new ColorField(this, false, inkColor);
|
|
Shinya Kitaoka |
120a6e |
m_transpCheckBgColor = new ColorField(this, false, bgColor);
|
|
Shinya Kitaoka |
120a6e |
m_transpCheckPaintColor = new ColorField(this, false, paintColor);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Version Control ------------------------------
|
|
Shinya Kitaoka |
120a6e |
categoryList->addItem(tr("Version Control"));
|
|
Shinya Kitaoka |
120a6e |
m_enableVersionControl = new DVGui::CheckBox(tr("Enable Version Control*"));
|
|
Shinya Kitaoka |
120a6e |
CheckBox *autoRefreshFolderContentsCB =
|
|
Shinya Kitaoka |
120a6e |
new CheckBox(tr("Automatically Refresh Folder Contents"), this);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QLabel *note_version =
|
|
Shinya Kitaoka |
120a6e |
new QLabel(tr("* Changes will take effect the next time you run Toonz"));
|
|
Shinya Kitaoka |
120a6e |
note_version->setStyleSheet("font-size: 10px; font: italic;");
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
/*--- set default parameters ---*/
|
|
Shinya Kitaoka |
120a6e |
categoryList->setFixedWidth(160);
|
|
Shinya Kitaoka |
120a6e |
categoryList->setCurrentRow(0);
|
|
Shinya Kitaoka |
120a6e |
categoryList->setAlternatingRowColors(true);
|
|
Shinya Kitaoka |
120a6e |
//--- General ------------------------------
|
|
Shinya Kitaoka |
120a6e |
useDefaultViewerCB->setChecked(m_pref->isDefaultViewerEnabled());
|
|
Shinya Kitaoka |
120a6e |
minimizeRasterMemoryCB->setChecked(m_pref->isRasterOptimizedMemory());
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveGroup->setChecked(m_pref->isAutosaveEnabled());
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveSceneCB->setChecked(m_pref->isAutosaveSceneEnabled());
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveOtherFilesCB->setChecked(m_pref->isAutosaveOtherFilesEnabled());
|
|
Shinya Kitaoka |
120a6e |
m_minuteFld->setValue(m_pref->getAutosavePeriod());
|
|
Jeremy Bullock |
bfe861 |
startupPopupCB->setChecked(m_pref->isStartupPopupEnabled());
|
|
Shinya Kitaoka |
120a6e |
replaceAfterSaveLevelAsCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isReplaceAfterSaveLevelAsEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QStringList dragCellsBehaviourList;
|
|
Shinya Kitaoka |
120a6e |
dragCellsBehaviourList << tr("Cells Only") << tr("Cells and Column Data");
|
|
Shinya Kitaoka |
120a6e |
m_cellsDragBehaviour->addItems(dragCellsBehaviourList);
|
|
Shinya Kitaoka |
120a6e |
m_cellsDragBehaviour->setCurrentIndex(m_pref->getDragCellsBehaviour());
|
|
Shinya Kitaoka |
120a6e |
m_levelsBackup->setChecked(m_pref->isLevelsBackupEnabled());
|
|
Shinya Kitaoka |
120a6e |
sceneNumberingCB->setChecked(m_pref->isSceneNumberingEnabled());
|
|
shun-iwasawa |
57bc09 |
watchFileSystemCB->setChecked(m_pref->isWatchFileSystemEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootFileField->setPath(m_pref->getCustomProjectRoot());
|
|
Jeremy Bullock |
e59b1f |
|
|
Jeremy Bullock |
e59b1f |
int projectPaths = m_pref->getProjectRoot();
|
|
Jeremy Bullock |
e59b1f |
m_projectRootStuff->setChecked(projectPaths & 0x08);
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDocuments->setChecked(projectPaths & 0x04);
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDesktop->setChecked(projectPaths & 0x02);
|
|
Jeremy Bullock |
e59b1f |
m_projectRootCustom->setChecked(projectPaths & 0x01);
|
|
Jeremy Bullock |
e59b1f |
|
|
Jeremy Bullock |
e59b1f |
m_projectRootStuff->hide();
|
|
Jeremy Bullock |
e59b1f |
if (!(projectPaths & 0x01)) {
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootFileField->hide();
|
|
Jeremy Bullock |
e59b1f |
m_customProjectRootLabel->hide();
|
|
Jeremy Bullock |
e59b1f |
m_projectRootDirections->hide();
|
|
Jeremy Bullock |
e59b1f |
}
|
|
Shinya Kitaoka |
120a6e |
//--- Interface ------------------------------
|
|
Shinya Kitaoka |
120a6e |
QStringList styleSheetList;
|
|
Shinya Kitaoka |
120a6e |
for (int i = 0; i < m_pref->getStyleSheetCount(); i++) {
|
|
Shinya Kitaoka |
120a6e |
QString string = m_pref->getStyleSheet(i);
|
|
Shinya Kitaoka |
120a6e |
if (string == m_pref->getCurrentStyleSheet()) currentIndex = i;
|
|
Shinya Kitaoka |
120a6e |
TFilePath path(string.toStdWString());
|
|
Shinya Kitaoka |
120a6e |
styleSheetList.push_back(QString::fromStdWString(path.getWideName()));
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
styleSheetType->addItems(styleSheetList);
|
|
Shinya Kitaoka |
120a6e |
styleSheetType->setCurrentIndex(currentIndex);
|
|
Jeremy Bullock |
20a966 |
bool po = m_pref->getPixelsOnly();
|
|
Jeremy Bullock |
20a966 |
m_pixelsOnlyCB->setChecked(po);
|
|
Jeremy Bullock |
59dbbf |
// m_pixelsOnlyCB->setChecked(true);
|
|
Jeremy Bullock |
59dbbf |
if (po) {
|
|
Jeremy Bullock |
59dbbf |
m_unitOm->setDisabled(true);
|
|
Jeremy Bullock |
59dbbf |
m_cameraUnitOm->setDisabled(true);
|
|
Jeremy Bullock |
20a966 |
}
|
|
Shinya Kitaoka |
120a6e |
QStringList type;
|
|
Jeremy Bullock |
29a430 |
type << tr("cm") << tr("mm") << tr("inch") << tr("field") << tr("pixel");
|
|
Jeremy Bullock |
7c096e |
m_unitOm->addItems(type);
|
|
Shinya Kitaoka |
120a6e |
int idx =
|
|
Shinya Kitaoka |
120a6e |
std::find(::units, ::units + ::unitsCount, m_pref->getUnits()) - ::units;
|
|
Jeremy Bullock |
7c096e |
m_unitOm->setCurrentIndex((idx < ::unitsCount) ? idx : ::inchIdx);
|
|
Jeremy Bullock |
7c096e |
m_cameraUnitOm->addItems(type);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
idx = std::find(::units, ::units + ::unitsCount, m_pref->getCameraUnits()) -
|
|
Shinya Kitaoka |
120a6e |
::units;
|
|
Jeremy Bullock |
7c096e |
m_cameraUnitOm->setCurrentIndex((idx < ::unitsCount) ? idx : ::inchIdx);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QStringList roomList;
|
|
Shinya Kitaoka |
120a6e |
int currentRoomIndex = 0;
|
|
Shinya Kitaoka |
120a6e |
for (int i = 0; i < m_pref->getRoomChoiceCount(); i++) {
|
|
Shinya Kitaoka |
120a6e |
QString string = m_pref->getRoomChoice(i);
|
|
Shinya Kitaoka |
120a6e |
if (string == m_pref->getCurrentRoomChoice()) currentRoomIndex = i;
|
|
Shinya Kitaoka |
120a6e |
roomList.push_back(string);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
if (roomList.size() > 1) {
|
|
Shinya Kitaoka |
120a6e |
roomChoice->addItems(roomList);
|
|
Shinya Kitaoka |
120a6e |
roomChoice->setCurrentIndex(currentRoomIndex);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_iconSizeLx->setValue(m_pref->getIconSize().lx);
|
|
Shinya Kitaoka |
120a6e |
m_iconSizeLy->setValue(m_pref->getIconSize().ly);
|
|
Shinya Kitaoka |
120a6e |
int shrink, step;
|
|
Shinya Kitaoka |
120a6e |
m_pref->getViewValues(shrink, step);
|
|
Shinya Kitaoka |
120a6e |
m_viewShrink->setValue(shrink);
|
|
Shinya Kitaoka |
120a6e |
m_viewStep->setValue(step);
|
|
Shinya Kitaoka |
120a6e |
moveCurrentFrameCB->setChecked(m_pref->isMoveCurrentEnabled());
|
|
Shinya Kitaoka |
120a6e |
openFlipbookAfterCB->setChecked(m_pref->isGeneratedMovieViewEnabled());
|
|
Shinya Kitaoka |
120a6e |
actualPixelOnSceneModeCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isActualPixelViewOnSceneEditingModeEnabled());
|
|
Shinya Kitaoka |
120a6e |
levelNameOnEachMarkerCB->setChecked(m_pref->isLevelNameOnEachMarkerEnabled());
|
|
Shinya Kitaoka |
120a6e |
showRasterImageDarkenBlendedInViewerCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isShowRasterImagesDarkenBlendedInViewerEnabled());
|
|
Shinya Kitaoka |
120a6e |
showShowFrameNumberWithLettersCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isShowFrameNumberWithLettersEnabled());
|
|
Shinya Kitaoka |
120a6e |
QStringList zoomCenters;
|
|
Shinya Kitaoka |
120a6e |
zoomCenters << tr("Mouse Cursor") << tr("Viewer Center");
|
|
Shinya Kitaoka |
120a6e |
viewerZoomCenterComboBox->addItems(zoomCenters);
|
|
Shinya Kitaoka |
120a6e |
viewerZoomCenterComboBox->setCurrentIndex(m_pref->getViewerZoomCenter());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Visualization ------------------------------
|
|
Shinya Kitaoka |
120a6e |
show0ThickLinesCB->setChecked(m_pref->getShow0ThickLines());
|
|
Shinya Kitaoka |
120a6e |
regionAntialiasCB->setChecked(m_pref->getRegionAntialias());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Loading ------------------------------
|
|
Shinya Kitaoka |
120a6e |
exposeLoadedLevelsCB->setChecked(m_pref->isAutoExposeEnabled());
|
|
Jeremy Bullock |
8c5007 |
m_ignoreImageDpiCB->setChecked(m_pref->isIgnoreImageDpiEnabled());
|
|
Shinya Kitaoka |
120a6e |
QStringList behaviors;
|
|
Shinya Kitaoka |
120a6e |
behaviors << tr("On Demand") << tr("All Icons") << tr("All Icons & Images");
|
|
Shinya Kitaoka |
120a6e |
initialLoadTlvCachingBehaviorComboBox->addItems(behaviors);
|
|
Shinya Kitaoka |
120a6e |
initialLoadTlvCachingBehaviorComboBox->setCurrentIndex(
|
|
Shinya Kitaoka |
120a6e |
m_pref->getInitialLoadTlvCachingBehavior());
|
|
Shinya Kitaoka |
120a6e |
QStringList formats;
|
|
Shinya Kitaoka |
120a6e |
formats << tr("At Once") << tr("On Demand");
|
|
Shinya Kitaoka |
120a6e |
m_columnIconOm->addItems(formats);
|
|
Shinya Kitaoka |
120a6e |
if (m_pref->getColumnIconLoadingPolicy() == Preferences::LoadAtOnce)
|
|
Shinya Kitaoka |
120a6e |
m_columnIconOm->setCurrentIndex(m_columnIconOm->findText(tr("At Once")));
|
|
Shinya Kitaoka |
120a6e |
else
|
|
Shinya Kitaoka |
120a6e |
m_columnIconOm->setCurrentIndex(m_columnIconOm->findText(tr("On Demand")));
|
|
Shinya Kitaoka |
120a6e |
removeSceneNumberFromLoadedLevelNameCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isRemoveSceneNumberFromLoadedLevelNameEnabled());
|
|
Shinya Kitaoka |
120a6e |
createSubfolderCB->setChecked(m_pref->isSubsceneFolderEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
m_addLevelFormat->setFixedSize(20, 20);
|
|
Shinya Kitaoka |
120a6e |
m_removeLevelFormat->setFixedSize(20, 20);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
rebuildFormatsList();
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QStringList paletteTypes;
|
|
Shinya Kitaoka |
120a6e |
paletteTypes << tr("Pick Every Colors as Different Styles")
|
|
Shinya Kitaoka |
120a6e |
<< tr("Integrate Similar Colors as One Style");
|
|
Shinya Kitaoka |
120a6e |
paletteTypeForRasterColorModelComboBox->addItems(paletteTypes);
|
|
Shinya Kitaoka |
120a6e |
paletteTypeForRasterColorModelComboBox->setCurrentIndex(
|
|
Shinya Kitaoka |
120a6e |
m_pref->getPaletteTypeOnLoadRasterImageAsColorModel());
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
b53dba |
QStringList policies;
|
|
Jeremy Bullock |
b53dba |
policies << tr("Always ask before loading or importing")
|
|
Jeremy Bullock |
b53dba |
<< tr("Always import the file to the current project")
|
|
Jeremy Bullock |
b53dba |
<< tr("Always load the file from the current location");
|
|
Jeremy Bullock |
b53dba |
m_importPolicy->addItems(policies);
|
|
Jeremy Bullock |
b53dba |
m_importPolicy->setCurrentIndex(m_pref->getDefaultImportPolicy());
|
|
Jeremy Bullock |
b53dba |
|
|
turtletooth |
04d8fd |
//--- Import/Export ------------------------------
|
|
turtletooth |
04d8fd |
QString path = m_pref->getFfmpegPath();
|
|
turtletooth |
04d8fd |
m_ffmpegPathFileFld->setPath(path);
|
|
Jeremy Bullock |
3bb5ef |
path = m_pref->getFastRenderPath();
|
|
Jeremy Bullock |
3bb5ef |
m_fastRenderPathFileField->setPath(path);
|
|
turtletooth |
04d8fd |
m_ffmpegTimeout->setValue(m_pref->getFfmpegTimeout());
|
|
turtletooth |
04d8fd |
|
|
Shinya Kitaoka |
120a6e |
//--- Drawing ------------------------------
|
|
Shinya Kitaoka |
120a6e |
keepOriginalCleanedUpCB->setChecked(m_pref->isSaveUnpaintedInCleanupEnable());
|
|
Shinya Kitaoka |
120a6e |
multiLayerStylePickerCB->setChecked(m_pref->isMultiLayerStylePickerEnabled());
|
|
Shinya Kitaoka |
120a6e |
minimizeSaveboxAfterEditingCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isMinimizeSaveboxAfterEditing());
|
|
Shinya Kitaoka |
120a6e |
useSaveboxToLimitFillingOpCB->setChecked(m_pref->getFillOnlySavebox());
|
|
shun_iwasawa |
4635d8 |
m_useNumpadForSwitchingStyles->setChecked(
|
|
shun_iwasawa |
4635d8 |
m_pref->isUseNumpadForSwitchingStylesEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QStringList scanLevelTypes;
|
|
Shinya Kitaoka |
120a6e |
scanLevelTypes << "tif"
|
|
Shinya Kitaoka |
120a6e |
<< "png";
|
|
Shinya Kitaoka |
120a6e |
m_defScanLevelType->addItems(scanLevelTypes);
|
|
Shinya Kitaoka |
120a6e |
m_defScanLevelType->setCurrentIndex(
|
|
Shinya Kitaoka |
120a6e |
m_defScanLevelType->findText(m_pref->getScanLevelType()));
|
|
Shinya Kitaoka |
120a6e |
QStringList levelTypes;
|
|
Xelloss |
6a7ff2 |
m_defLevelType->addItem((tr("Toonz Vector Level")), PLI_XSHLEVEL);
|
|
Xelloss |
6a7ff2 |
m_defLevelType->addItem((tr("Toonz Raster Level")), TZP_XSHLEVEL);
|
|
Xelloss |
6a7ff2 |
m_defLevelType->addItem((tr("Raster Level")), OVL_XSHLEVEL);
|
|
Shinya Kitaoka |
120a6e |
m_defLevelType->setCurrentIndex(0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
for (int i = 0; i < m_defLevelType->count(); i++) {
|
|
Shinya Kitaoka |
120a6e |
if (m_defLevelType->itemData(i).toInt() == m_pref->getDefLevelType()) {
|
|
Shinya Kitaoka |
120a6e |
m_defLevelType->setCurrentIndex(i);
|
|
Shinya Kitaoka |
120a6e |
onDefLevelTypeChanged(i);
|
|
Shinya Kitaoka |
120a6e |
break;
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
59dbbf |
if (Preferences::instance()->getUnits() == "pixel") {
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setRange(0.1, (std::numeric_limits<double>::max)());</double>
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setMeasure("camera.lx");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setValue(m_pref->getDefLevelWidth());
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setRange(0.1, (std::numeric_limits<double>::max)());</double>
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setMeasure("camera.ly");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setValue(m_pref->getDefLevelHeight());
|
|
Jeremy Bullock |
59dbbf |
} else {
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setRange(0.1, (std::numeric_limits<double>::max)());</double>
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setMeasure("level.lx");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setValue(m_pref->getDefLevelWidth());
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setRange(0.1, (std::numeric_limits<double>::max)());</double>
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setMeasure("level.ly");
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setValue(m_pref->getDefLevelHeight());
|
|
Jeremy Bullock |
59dbbf |
}
|
|
Shinya Kitaoka |
120a6e |
m_defLevelDpi->setRange(0.1, (std::numeric_limits<double>::max)());</double>
|
|
Shinya Kitaoka |
120a6e |
m_defLevelDpi->setValue(m_pref->getDefLevelDpi());
|
|
Shinya Kitaoka |
120a6e |
QStringList autocreationTypes;
|
|
Shinya Kitaoka |
120a6e |
autocreationTypes << tr("Disabled") << tr("Enabled")
|
|
Shinya Kitaoka |
120a6e |
<< tr("Use Xsheet as Animation Sheet");
|
|
Shinya Kitaoka |
120a6e |
m_autocreationType->addItems(autocreationTypes);
|
|
Shinya Kitaoka |
120a6e |
int autocreationType = m_pref->getAutocreationType();
|
|
Shinya Kitaoka |
120a6e |
m_autocreationType->setCurrentIndex(autocreationType);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
cd00fd |
QStringList vectorSnappingTargets;
|
|
Jeremy Bullock |
cd00fd |
vectorSnappingTargets << tr("Strokes") << tr("Guides") << tr("All");
|
|
Jeremy Bullock |
cd00fd |
m_vectorSnappingTargetCB->addItems(vectorSnappingTargets);
|
|
Jeremy Bullock |
cd00fd |
m_vectorSnappingTargetCB->setCurrentIndex(m_pref->getVectorSnappingTarget());
|
|
Jeremy Bullock |
cd00fd |
|
|
Shinya Kitaoka |
120a6e |
//--- Xsheet ------------------------------
|
|
Shinya Kitaoka |
120a6e |
xsheetAutopanDuringPlaybackCB->setChecked(m_pref->isXsheetAutopanEnabled());
|
|
Shinya Kitaoka |
120a6e |
m_cellsDragBehaviour->addItem(tr("Cells Only"));
|
|
Shinya Kitaoka |
120a6e |
m_cellsDragBehaviour->addItem(tr("Cells and Column Data"));
|
|
Shinya Kitaoka |
120a6e |
m_cellsDragBehaviour->setCurrentIndex(m_pref->getDragCellsBehaviour());
|
|
Shinya Kitaoka |
120a6e |
ignoreAlphaonColumn1CB->setChecked(m_pref->isIgnoreAlphaonColumn1Enabled());
|
|
Shinya Kitaoka |
120a6e |
showKeyframesOnCellAreaCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isShowKeyframesOnXsheetCellAreaEnabled());
|
|
shun_iwasawa |
3639da |
useArrowKeyToShiftCellSelectionCB->setChecked(
|
|
shun_iwasawa |
3639da |
m_pref->isUseArrowKeyToShiftCellSelectionEnabled());
|
|
shun_iwasawa |
3639da |
inputCellsWithoutDoubleClickingCB->setChecked(
|
|
shun_iwasawa |
3639da |
m_pref->isInputCellsWithoutDoubleClickingEnabled());
|
|
Jeremy Bullock |
15fcba |
m_showXSheetToolbar->setChecked(m_pref->isShowXSheetToolbarEnabled());
|
|
Jeremy Bullock |
15fcba |
m_expandFunctionHeader->setChecked(m_pref->isExpandFunctionHeaderEnabled());
|
|
Jaroslav |
203cc8 |
showColumnNumbersCB->setChecked(m_pref->isShowColumnNumbersEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Animation ------------------------------
|
|
Shinya Kitaoka |
120a6e |
QStringList list;
|
|
Shinya Kitaoka |
120a6e |
list << tr("Linear") << tr("Speed In / Speed Out") << tr("Ease In / Ease Out")
|
|
Shinya Kitaoka |
120a6e |
<< tr("Ease In / Ease Out %");
|
|
Shinya Kitaoka |
120a6e |
m_keyframeType->addItems(list);
|
|
Shinya Kitaoka |
120a6e |
int keyframeType = m_pref->getKeyframeType();
|
|
Shinya Kitaoka |
120a6e |
m_keyframeType->setCurrentIndex(keyframeType - 2);
|
|
Shinya Kitaoka |
120a6e |
m_animationStepField->setValue(m_pref->getAnimationStep());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Preview ------------------------------
|
|
Shinya Kitaoka |
120a6e |
int blanksCount;
|
|
Shinya Kitaoka |
120a6e |
TPixel32 blankColor;
|
|
Shinya Kitaoka |
120a6e |
m_pref->getBlankValues(blanksCount, blankColor);
|
|
Shinya Kitaoka |
120a6e |
m_blanksCount->setValue(blanksCount);
|
|
Shinya Kitaoka |
120a6e |
m_blankColor->setColor(blankColor);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
rewindAfterPlaybackCB->setChecked(m_pref->rewindAfterPlaybackEnabled());
|
|
Shinya Kitaoka |
120a6e |
displayInNewFlipBookCB->setChecked(m_pref->previewAlwaysOpenNewFlipEnabled());
|
|
Shinya Kitaoka |
120a6e |
fitToFlipbookCB->setChecked(m_pref->fitToFlipbookEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Onion Skin ------------------------------
|
|
Shinya Kitaoka |
120a6e |
m_onionSkinVisibility->setChecked(m_pref->isOnionSkinEnabled());
|
|
Jeremy Bullock |
17d8f9 |
m_onionSkinDuringPlayback->setChecked(m_pref->getOnionSkinDuringPlayback());
|
|
Shinya Kitaoka |
120a6e |
m_frontOnionColor->setEnabled(m_pref->isOnionSkinEnabled());
|
|
Shinya Kitaoka |
120a6e |
m_backOnionColor->setEnabled(m_pref->isOnionSkinEnabled());
|
|
Shinya Kitaoka |
120a6e |
m_inksOnly->setEnabled(m_pref->isOnionSkinEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Version Control ------------------------------
|
|
Shinya Kitaoka |
120a6e |
m_enableVersionControl->setChecked(m_pref->isSVNEnabled());
|
|
Shinya Kitaoka |
120a6e |
autoRefreshFolderContentsCB->setChecked(
|
|
Shinya Kitaoka |
120a6e |
m_pref->isAutomaticSVNFolderRefreshEnabled());
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
/*--- layout ---*/
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QHBoxLayout *mainLayout = new QHBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
mainLayout->setMargin(0);
|
|
Shinya Kitaoka |
120a6e |
mainLayout->setSpacing(0);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
// Category
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *categoryLayout = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
categoryLayout->setMargin(5);
|
|
Shinya Kitaoka |
120a6e |
categoryLayout->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
categoryLayout->addWidget(new QLabel(tr("Category"), this), 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
categoryLayout->addWidget(categoryList, 1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
mainLayout->addLayout(categoryLayout, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- General --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *generalBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *generalFrameLay = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addWidget(useDefaultViewerCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addWidget(minimizeRasterMemoryCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Jeremy Bullock |
33e7d1 |
|
|
Jeremy Bullock |
33e7d1 |
QVBoxLayout *autoSaveOptionsLay = new QVBoxLayout();
|
|
Jeremy Bullock |
33e7d1 |
autoSaveOptionsLay->setMargin(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Jeremy Bullock |
33e7d1 |
QHBoxLayout *saveAutoLay = new QHBoxLayout();
|
|
Jeremy Bullock |
33e7d1 |
saveAutoLay->setMargin(0);
|
|
Jeremy Bullock |
33e7d1 |
saveAutoLay->setSpacing(5);
|
|
Jeremy Bullock |
33e7d1 |
{
|
|
Jeremy Bullock |
33e7d1 |
saveAutoLay->addWidget(new QLabel(tr("Interval(Minutes): "), this));
|
|
Jeremy Bullock |
33e7d1 |
saveAutoLay->addWidget(m_minuteFld, 0);
|
|
Jeremy Bullock |
33e7d1 |
saveAutoLay->addStretch(1);
|
|
Jeremy Bullock |
33e7d1 |
}
|
|
Jeremy Bullock |
33e7d1 |
autoSaveOptionsLay->addLayout(saveAutoLay, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
33e7d1 |
autoSaveOptionsLay->addWidget(m_autoSaveSceneCB, 0,
|
|
Jeremy Bullock |
33e7d1 |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Jeremy Bullock |
33e7d1 |
autoSaveOptionsLay->addWidget(m_autoSaveOtherFilesCB, 0,
|
|
Jeremy Bullock |
33e7d1 |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Jeremy Bullock |
33e7d1 |
}
|
|
Jeremy Bullock |
33e7d1 |
m_autoSaveGroup->setLayout(autoSaveOptionsLay);
|
|
Jeremy Bullock |
33e7d1 |
generalFrameLay->addWidget(m_autoSaveGroup);
|
|
Jeremy Bullock |
bfe861 |
generalFrameLay->addWidget(startupPopupCB, 0,
|
|
Jeremy Bullock |
bfe861 |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
// Unit, CameraUnit
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *unitLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
unitLay->setMargin(0);
|
|
Shinya Kitaoka |
120a6e |
unitLay->setHorizontalSpacing(5);
|
|
Shinya Kitaoka |
120a6e |
unitLay->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
unitLay->addWidget(new QLabel(tr("Undo Memory Size (MB)"), this), 0, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
unitLay->addWidget(m_undoMemorySize, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
unitLay->addWidget(new QLabel(tr("Render Task Chunk Size:"), this), 1,
|
|
Shinya Kitaoka |
120a6e |
0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
unitLay->addWidget(m_chunkSizeFld, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
unitLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
unitLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
unitLay->setColumnStretch(2, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addLayout(unitLay, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addWidget(replaceAfterSaveLevelAsCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addWidget(m_levelsBackup, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addWidget(sceneNumberingCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
shun-iwasawa |
57bc09 |
generalFrameLay->addWidget(watchFileSystemCB, 0,
|
|
shun-iwasawa |
57bc09 |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
shun-iwasawa |
57bc09 |
|
|
Jeremy Bullock |
e59b1f |
QGroupBox *projectGroupBox =
|
|
Jeremy Bullock |
e59b1f |
new QGroupBox(tr("Additional Project Locations"), this);
|
|
Jeremy Bullock |
e59b1f |
QGridLayout *projectRootLay = new QGridLayout();
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->setMargin(10);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->setHorizontalSpacing(5);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->setVerticalSpacing(10);
|
|
Jeremy Bullock |
e59b1f |
{
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->addWidget(m_projectRootStuff, 0, 0);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->addWidget(m_projectRootDocuments, 1, 0);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->addWidget(m_projectRootDesktop, 2, 0);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->addWidget(m_projectRootCustom, 3, 0);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->addWidget(m_customProjectRootLabel, 4, 0,
|
|
Jeremy Bullock |
e59b1f |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->addWidget(m_customProjectRootFileField, 4, 1, 1, 3);
|
|
Jeremy Bullock |
e59b1f |
projectRootLay->addWidget(m_projectRootDirections, 5, 0, 1, 4);
|
|
Jeremy Bullock |
e59b1f |
}
|
|
Jeremy Bullock |
e59b1f |
projectGroupBox->setLayout(projectRootLay);
|
|
Jeremy Bullock |
e59b1f |
generalFrameLay->addWidget(projectGroupBox, 0);
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addStretch(1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
generalFrameLay->addWidget(note_general, 0);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
generalBox->setLayout(generalFrameLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(generalBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Interface --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *userInterfaceBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *userInterfaceFrameLay = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *styleLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
styleLay->setMargin(0);
|
|
Shinya Kitaoka |
120a6e |
styleLay->setHorizontalSpacing(5);
|
|
Shinya Kitaoka |
120a6e |
styleLay->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
styleLay->addWidget(new QLabel(tr("Style:")), 0, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
styleLay->addWidget(styleSheetType, 0, 1);
|
|
Jeremy Bullock |
59dbbf |
|
|
Jeremy Bullock |
59dbbf |
styleLay->addWidget(new QLabel(tr("Pixels Only:"), this), 1, 0,
|
|
Jeremy Bullock |
59dbbf |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Jeremy Bullock |
59dbbf |
styleLay->addWidget(m_pixelsOnlyCB, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
7c096e |
styleLay->addWidget(new QLabel(tr("Unit:"), this), 2, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Jeremy Bullock |
7c096e |
styleLay->addWidget(m_unitOm, 2, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
7c096e |
styleLay->addWidget(new QLabel(tr("Camera Unit:"), this), 3, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Jeremy Bullock |
7c096e |
styleLay->addWidget(m_cameraUnitOm, 3, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
733ddb |
styleLay->addWidget(new QLabel(tr("Rooms*:"), this), 4, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Jeremy Bullock |
7c096e |
styleLay->addWidget(roomChoice, 4, 1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
styleLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
styleLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
styleLay->setColumnStretch(2, 1);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addLayout(styleLay, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addWidget(openFlipbookAfterCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addWidget(moveCurrentFrameCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addWidget(actualPixelOnSceneModeCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addWidget(levelNameOnEachMarkerCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addWidget(showRasterImageDarkenBlendedInViewerCB,
|
|
Shinya Kitaoka |
120a6e |
0, Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addWidget(showShowFrameNumberWithLettersCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *bgColorsLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setMargin(0);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setHorizontalSpacing(5);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Icon Size *"), this), 0, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_iconSizeLx, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("X"), this), 0, 2,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_iconSizeLy, 0, 3);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Viewer Shrink"), this), 1, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_viewShrink, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Step"), this), 1, 3,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_viewStep, 1, 4);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Viewer BG Color"), this), 2, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_viewerBgColorFld, 2, 1, 1, 5);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Preview BG Color"), this), 3, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_previewBgColorFld, 3, 1, 1, 5);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("ChessBoard Color 1"), this), 4, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_chessboardColor1Fld, 4, 1, 1, 5);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Chessboard Color 2"), this), 5, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(m_chessboardColor2Fld, 5, 1, 1, 5);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Viewer Zoom Center"), this), 6, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(viewerZoomCenterComboBox, 6, 1, 1, 4);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
if (languageType) {
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(new QLabel(tr("Language *:")), 7, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->addWidget(languageType, 7, 1, 1, 4);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setColumnStretch(2, 0);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setColumnStretch(3, 0);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setColumnStretch(4, 0);
|
|
Shinya Kitaoka |
120a6e |
bgColorsLay->setColumnStretch(5, 1);
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addLayout(bgColorsLay, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addStretch(1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
userInterfaceFrameLay->addWidget(note_interface, 0);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
userInterfaceBox->setLayout(userInterfaceFrameLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(userInterfaceBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Visualization ---------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *visualizatonBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *visualizatonFrameLay = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
visualizatonFrameLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
visualizatonFrameLay->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
visualizatonFrameLay->addWidget(show0ThickLinesCB, 0);
|
|
Shinya Kitaoka |
120a6e |
visualizatonFrameLay->addWidget(regionAntialiasCB, 0);
|
|
Shinya Kitaoka |
120a6e |
visualizatonFrameLay->addStretch(1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
visualizatonBox->setLayout(visualizatonFrameLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(visualizatonBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Loading --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *loadingBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *loadingFrameLay = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
loadingFrameLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
loadingFrameLay->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Jeremy Bullock |
b53dba |
QHBoxLayout *importLay = new QHBoxLayout();
|
|
Jeremy Bullock |
b53dba |
importLay->setMargin(0);
|
|
Jeremy Bullock |
b53dba |
importLay->setSpacing(5);
|
|
Jeremy Bullock |
b53dba |
{
|
|
Jeremy Bullock |
b53dba |
importLay->addWidget(new QLabel(tr("Default File Import Behavior:")));
|
|
Jeremy Bullock |
b53dba |
importLay->addWidget(m_importPolicy);
|
|
Jeremy Bullock |
b53dba |
}
|
|
Jeremy Bullock |
b53dba |
importLay->addStretch(0);
|
|
Jeremy Bullock |
b53dba |
loadingFrameLay->addLayout(importLay, 0);
|
|
Shinya Kitaoka |
120a6e |
loadingFrameLay->addWidget(exposeLoadedLevelsCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
loadingFrameLay->addWidget(createSubfolderCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
loadingFrameLay->addWidget(removeSceneNumberFromLoadedLevelNameCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Jeremy Bullock |
8c5007 |
loadingFrameLay->addWidget(m_ignoreImageDpiCB, 0,
|
|
Jeremy Bullock |
8c5007 |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *cacheLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setMargin(0);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setHorizontalSpacing(5);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Jeremy Bullock |
b53dba |
cacheLay->addWidget(new QLabel(tr("Default TLV Caching Behavior:")), 0,
|
|
Shinya Kitaoka |
120a6e |
0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(initialLoadTlvCachingBehaviorComboBox, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Jeremy Bullock |
b53dba |
cacheLay->addWidget(new QLabel(tr("Column Icon:"), this), 1, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(m_columnIconOm, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(new QLabel(tr("Level Settings by File Format:")), 2,
|
|
Shinya Kitaoka |
120a6e |
0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(m_levelFormatNames, 2, 1);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(m_addLevelFormat, 2, 2);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(m_removeLevelFormat, 2, 3);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(m_editLevelFormat, 2, 4);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(
|
|
Shinya Kitaoka |
120a6e |
new QLabel(
|
|
Jeremy Bullock |
b53dba |
tr("Palette Type on Loading Raster Image as Color Model:")),
|
|
Shinya Kitaoka |
120a6e |
3, 0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->addWidget(paletteTypeForRasterColorModelComboBox, 3, 1, 1, 5);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setColumnStretch(2, 0);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setColumnStretch(3, 0);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setColumnStretch(4, 0);
|
|
Shinya Kitaoka |
120a6e |
cacheLay->setColumnStretch(5, 1);
|
|
Shinya Kitaoka |
120a6e |
loadingFrameLay->addLayout(cacheLay, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
loadingFrameLay->addStretch(1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
loadingBox->setLayout(loadingFrameLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(loadingBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
turtletooth |
04d8fd |
//--- Import/Export --------------------------
|
|
turtletooth |
04d8fd |
QWidget *ioBox = new QWidget(this);
|
|
turtletooth |
04d8fd |
QVBoxLayout *ioLay = new QVBoxLayout();
|
|
turtletooth |
04d8fd |
ioLay->setMargin(15);
|
|
turtletooth |
04d8fd |
ioLay->setSpacing(10);
|
|
turtletooth |
04d8fd |
{
|
|
turtletooth |
04d8fd |
ioLay->addWidget(
|
|
turtletooth |
04d8fd |
new QLabel(
|
|
turtletooth |
04d8fd |
tr("OpenToonz can use FFmpeg for additional file formats.")),
|
|
turtletooth |
04d8fd |
0, Qt::AlignCenter | Qt::AlignVCenter);
|
|
turtletooth |
04d8fd |
ioLay->addWidget(new QLabel(tr("FFmpeg is not bundled with OpenToonz")),
|
|
turtletooth |
04d8fd |
0, Qt::AlignCenter | Qt::AlignVCenter);
|
|
shun-iwasawa |
27b0cf |
ioLay->addWidget(new QLabel(" "), 0, Qt::AlignCenter | Qt::AlignVCenter);
|
|
shun-iwasawa |
27b0cf |
ioLay->addWidget(new QLabel(tr("NOTE: This is an experimental feature.")),
|
|
shun-iwasawa |
27b0cf |
0, Qt::AlignCenter | Qt::AlignVCenter);
|
|
shun-iwasawa |
27b0cf |
ioLay->addWidget(new QLabel(tr("Please SAVE YOUR WORK before exporting "
|
|
shun-iwasawa |
27b0cf |
"in MP4, WEBM, or GIF format.")),
|
|
shun-iwasawa |
27b0cf |
0, Qt::AlignCenter | Qt::AlignVCenter);
|
|
shun-iwasawa |
27b0cf |
ioLay->addWidget(new QLabel(" "), 0, Qt::AlignCenter | Qt::AlignVCenter);
|
|
turtletooth |
04d8fd |
ioLay->addWidget(new QLabel(tr("Please provide the path where FFmpeg is "
|
|
turtletooth |
04d8fd |
"located on your computer.")),
|
|
turtletooth |
04d8fd |
0, Qt::AlignLeft | Qt::AlignVCenter);
|
|
turtletooth |
04d8fd |
QGridLayout *ioGridLay = new QGridLayout();
|
|
turtletooth |
04d8fd |
ioGridLay->setVerticalSpacing(10);
|
|
turtletooth |
04d8fd |
ioGridLay->setHorizontalSpacing(15);
|
|
turtletooth |
04d8fd |
ioGridLay->setMargin(0);
|
|
turtletooth |
04d8fd |
{
|
|
turtletooth |
04d8fd |
ioGridLay->addWidget(new QLabel(tr("FFmpeg Path: ")), 0, 0,
|
|
turtletooth |
04d8fd |
Qt::AlignRight);
|
|
turtletooth |
04d8fd |
ioGridLay->addWidget(m_ffmpegPathFileFld, 0, 1, 1, 3);
|
|
shun-iwasawa |
27b0cf |
ioGridLay->addWidget(new QLabel(" "), 1, 0);
|
|
shun-iwasawa |
27b0cf |
ioGridLay->addWidget(
|
|
shun-iwasawa |
27b0cf |
new QLabel(tr("Number of seconds to wait for FFmpeg to complete "
|
|
shun-iwasawa |
27b0cf |
"processing the output:")),
|
|
shun-iwasawa |
27b0cf |
2, 0, 1, 4);
|
|
shun-iwasawa |
27b0cf |
ioGridLay->addWidget(
|
|
shun-iwasawa |
27b0cf |
new QLabel(tr("Note: FFmpeg begins working once all images "
|
|
shun-iwasawa |
27b0cf |
"have been processed.")),
|
|
shun-iwasawa |
27b0cf |
3, 0, 1, 4);
|
|
shun-iwasawa |
27b0cf |
ioGridLay->addWidget(new QLabel(tr("FFmpeg Timeout:")), 4, 0,
|
|
shun-iwasawa |
27b0cf |
Qt::AlignRight);
|
|
shun-iwasawa |
27b0cf |
ioGridLay->addWidget(m_ffmpegTimeout, 4, 1, 1, 3);
|
|
Jeremy Bullock |
3bb5ef |
ioGridLay->addWidget(new QLabel(" "), 5, 0);
|
|
Jeremy Bullock |
3bb5ef |
ioGridLay->addWidget(
|
|
Jeremy Bullock |
3bb5ef |
new QLabel(tr("Please indicate where you would like "
|
|
Jeremy Bullock |
3bb5ef |
"exports from Fast Render(MP4) to go.")),
|
|
Jeremy Bullock |
3bb5ef |
6, 0, 1, 4);
|
|
Jeremy Bullock |
3bb5ef |
ioGridLay->addWidget(new QLabel(tr("Fast Render Path: ")), 7, 0,
|
|
Jeremy Bullock |
3bb5ef |
Qt::AlignRight);
|
|
Jeremy Bullock |
3bb5ef |
ioGridLay->addWidget(m_fastRenderPathFileField, 7, 1, 1, 3);
|
|
turtletooth |
04d8fd |
}
|
|
turtletooth |
04d8fd |
ioLay->addLayout(ioGridLay);
|
|
turtletooth |
04d8fd |
ioLay->addStretch(1);
|
|
turtletooth |
04d8fd |
|
|
turtletooth |
04d8fd |
ioLay->addWidget(note_version, 0);
|
|
turtletooth |
04d8fd |
}
|
|
turtletooth |
04d8fd |
ioBox->setLayout(ioLay);
|
|
turtletooth |
04d8fd |
stackedWidget->addWidget(ioBox);
|
|
turtletooth |
04d8fd |
|
|
Shinya Kitaoka |
120a6e |
//--- Drawing --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *drawingBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *drawingFrameLay = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *drawingTopLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->setHorizontalSpacing(15);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->setMargin(0);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(new QLabel(tr("Scan File Format:")), 0, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(m_defScanLevelType, 0, 1, 1, 3);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(new QLabel(tr("Default Level Type:")), 1, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(m_defLevelType, 1, 1, 1, 3);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(new QLabel(tr("Width:")), 2, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(m_defLevelWidth, 2, 1);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(new QLabel(tr(" Height:")), 2, 2,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(m_defLevelHeight, 2, 3);
|
|
Jeremy Bullock |
59dbbf |
drawingTopLay->addWidget(m_dpiLabel, 3, 0, Qt::AlignRight);
|
|
Jeremy Bullock |
59dbbf |
drawingTopLay->addWidget(m_defLevelDpi, 3, 1);
|
|
Jeremy Bullock |
59dbbf |
drawingTopLay->addWidget(new QLabel(tr("Autocreation:")), 4, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
drawingTopLay->addWidget(m_autocreationType, 4, 1, 1, 3);
|
|
Jeremy Bullock |
cd00fd |
drawingTopLay->addWidget(new QLabel(tr("Vector Snapping:")), 5, 0,
|
|
Jeremy Bullock |
cd00fd |
Qt::AlignRight);
|
|
Jeremy Bullock |
cd00fd |
drawingTopLay->addWidget(m_vectorSnappingTargetCB, 5, 1, 1, 3);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->addLayout(drawingTopLay, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->addWidget(keepOriginalCleanedUpCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->addWidget(minimizeSaveboxAfterEditingCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter); // 6.4
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->addWidget(useSaveboxToLimitFillingOpCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->addWidget(multiLayerStylePickerCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
shun_iwasawa |
4635d8 |
drawingFrameLay->addWidget(m_useNumpadForSwitchingStyles, 0,
|
|
shun_iwasawa |
4635d8 |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
drawingFrameLay->addStretch(1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
drawingBox->setLayout(drawingFrameLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(drawingBox);
|
|
Jeremy Bullock |
59dbbf |
if (m_pixelsOnlyCB->isChecked()) {
|
|
Jeremy Bullock |
59dbbf |
m_defLevelDpi->setDisabled(true);
|
|
Jeremy Bullock |
59dbbf |
m_defLevelWidth->setDecimals(0);
|
|
Jeremy Bullock |
59dbbf |
m_defLevelHeight->setDecimals(0);
|
|
Jeremy Bullock |
59dbbf |
}
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Xsheet --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *xsheetBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *xsheetFrameLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->setHorizontalSpacing(15);
|
|
Jaroslav |
203cc8 |
xsheetFrameLay->setVerticalSpacing(11);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->addWidget(new QLabel(tr("Next/Previous Step Frames:")), 0,
|
|
Shinya Kitaoka |
120a6e |
0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->addWidget(m_xsheetStep, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->addWidget(xsheetAutopanDuringPlaybackCB, 1, 0, 1, 2);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->addWidget(new QLabel(tr("Cell-dragging Behaviour:")), 2,
|
|
Shinya Kitaoka |
120a6e |
0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->addWidget(m_cellsDragBehaviour, 2, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->addWidget(ignoreAlphaonColumn1CB, 3, 0, 1, 2);
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->addWidget(showKeyframesOnCellAreaCB, 4, 0, 1, 2);
|
|
shun_iwasawa |
3639da |
xsheetFrameLay->addWidget(useArrowKeyToShiftCellSelectionCB, 5, 0, 1, 2);
|
|
shun_iwasawa |
3639da |
xsheetFrameLay->addWidget(inputCellsWithoutDoubleClickingCB, 6, 0, 1, 2);
|
|
Jeremy Bullock |
15fcba |
|
|
Jeremy Bullock |
15fcba |
QVBoxLayout *xSheetToolbarLay = new QVBoxLayout();
|
|
Jeremy Bullock |
15fcba |
xSheetToolbarLay->setMargin(10);
|
|
Jeremy Bullock |
15fcba |
{
|
|
Jeremy Bullock |
15fcba |
xSheetToolbarLay->addWidget(m_expandFunctionHeader, 0,
|
|
Jeremy Bullock |
15fcba |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Jeremy Bullock |
15fcba |
}
|
|
Jeremy Bullock |
15fcba |
m_showXSheetToolbar->setLayout(xSheetToolbarLay);
|
|
Jeremy Bullock |
15fcba |
|
|
Jeremy Bullock |
15fcba |
xsheetFrameLay->addWidget(m_showXSheetToolbar, 7, 0, 3, 3);
|
|
shun_iwasawa |
0cae24 |
xsheetFrameLay->addWidget(showColumnNumbersCB, 10, 0, 1, 2);
|
|
shun_iwasawa |
0cae24 |
}
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
xsheetFrameLay->setColumnStretch(2, 1);
|
|
Jeremy Bullock |
15fcba |
xsheetFrameLay->setRowStretch(11, 1);
|
|
Shinya Kitaoka |
120a6e |
xsheetBox->setLayout(xsheetFrameLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(xsheetBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Animation --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *animationBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *animationFrameLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setHorizontalSpacing(15);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->addWidget(new QLabel(tr("Default Interpolation:")), 0,
|
|
Shinya Kitaoka |
120a6e |
0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->addWidget(m_keyframeType, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->addWidget(new QLabel(tr("Animation Step:")), 1, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->addWidget(m_animationStepField, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setColumnStretch(2, 1);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setRowStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setRowStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
animationFrameLay->setRowStretch(2, 1);
|
|
Shinya Kitaoka |
120a6e |
animationBox->setLayout(animationFrameLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(animationBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Preview --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *previewBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *previewLayout = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setHorizontalSpacing(15);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
previewLayout->addWidget(new QLabel(tr("Blank Frames:")), 0, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->addWidget(m_blanksCount, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
previewLayout->addWidget(new QLabel(tr("Blank Frames Color:")), 1, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->addWidget(m_blankColor, 1, 1, 1, 2);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
previewLayout->addWidget(rewindAfterPlaybackCB, 2, 0, 1, 3,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->addWidget(displayInNewFlipBookCB, 3, 0, 1, 3,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->addWidget(fitToFlipbookCB, 4, 0, 1, 3,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setColumnStretch(2, 1);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setRowStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setRowStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setRowStretch(2, 0);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setRowStretch(3, 0);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setRowStretch(4, 0);
|
|
Shinya Kitaoka |
120a6e |
previewLayout->setRowStretch(5, 1);
|
|
Shinya Kitaoka |
120a6e |
previewBox->setLayout(previewLayout);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(previewBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Onion Skin --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *onionBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *onionLay = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
onionLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
onionLay->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
onionLay->addWidget(m_onionSkinVisibility, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *onionColorLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->addWidget(new QLabel(tr("Paper Thickness:")), 0, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->addWidget(m_onionPaperThickness, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->addWidget(new QLabel(tr("Previous Frames Correction:")),
|
|
Shinya Kitaoka |
120a6e |
1, 0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->addWidget(m_backOnionColor, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->addWidget(new QLabel(tr("Following Frames Correction:")),
|
|
Shinya Kitaoka |
120a6e |
2, 0, Qt::AlignRight | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->addWidget(m_frontOnionColor, 2, 1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
onionColorLay->setColumnStretch(2, 1);
|
|
Shinya Kitaoka |
120a6e |
onionLay->addLayout(onionColorLay, 0);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
onionLay->addWidget(m_inksOnly, 0, Qt::AlignLeft | Qt::AlignVCenter);
|
|
Jeremy Bullock |
17d8f9 |
onionLay->addWidget(m_onionSkinDuringPlayback, 0,
|
|
Jeremy Bullock |
17d8f9 |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
onionLay->addStretch(1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
onionBox->setLayout(onionLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(onionBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Transparency Check --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *tcBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QGridLayout *tcLay = new QGridLayout();
|
|
Shinya Kitaoka |
120a6e |
tcLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setHorizontalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setVerticalSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
tcLay->addWidget(new QLabel(tr("Ink Color on White Bg:")), 0, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
tcLay->addWidget(m_transpCheckInkColor, 0, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
tcLay->addWidget(new QLabel(tr("Ink Color on Black Bg:")), 1, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
tcLay->addWidget(m_transpCheckBgColor, 1, 1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
tcLay->addWidget(new QLabel(tr("Paint Color:")), 2, 0, Qt::AlignRight);
|
|
Shinya Kitaoka |
120a6e |
tcLay->addWidget(m_transpCheckPaintColor, 2, 1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
tcLay->setColumnStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setColumnStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setColumnStretch(2, 1);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setRowStretch(0, 0);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setRowStretch(1, 0);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setRowStretch(2, 0);
|
|
Shinya Kitaoka |
120a6e |
tcLay->setRowStretch(3, 1);
|
|
Shinya Kitaoka |
120a6e |
tcBox->setLayout(tcLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(tcBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Version Control --------------------------
|
|
Shinya Kitaoka |
120a6e |
QWidget *versionControlBox = new QWidget(this);
|
|
Shinya Kitaoka |
120a6e |
QVBoxLayout *vcLay = new QVBoxLayout();
|
|
Shinya Kitaoka |
120a6e |
vcLay->setMargin(15);
|
|
Shinya Kitaoka |
120a6e |
vcLay->setSpacing(10);
|
|
Shinya Kitaoka |
120a6e |
{
|
|
Shinya Kitaoka |
120a6e |
vcLay->addWidget(m_enableVersionControl, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
vcLay->addWidget(autoRefreshFolderContentsCB, 0,
|
|
Shinya Kitaoka |
120a6e |
Qt::AlignLeft | Qt::AlignVCenter);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
vcLay->addStretch(1);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
vcLay->addWidget(note_version, 0);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
versionControlBox->setLayout(vcLay);
|
|
Shinya Kitaoka |
120a6e |
stackedWidget->addWidget(versionControlBox);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
mainLayout->addWidget(stackedWidget, 1);
|
|
Shinya Kitaoka |
120a6e |
}
|
|
Shinya Kitaoka |
120a6e |
setLayout(mainLayout);
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
/*---- signal-slot connections -----*/
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
bool ret = true;
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(categoryList, SIGNAL(currentRowChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
stackedWidget, SLOT(setCurrentIndex(int)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- General ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(useDefaultViewerCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onDefaultViewerChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(minimizeRasterMemoryCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onRasterOptimizedMemoryChanged(int)));
|
|
Jeremy Bullock |
33e7d1 |
ret = ret && connect(m_autoSaveGroup, SIGNAL(toggled(bool)),
|
|
Jeremy Bullock |
33e7d1 |
SLOT(onAutoSaveChanged(bool)));
|
|
Jeremy Bullock |
33e7d1 |
ret = ret && connect(m_autoSaveSceneCB, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
33e7d1 |
SLOT(onAutoSaveSceneChanged(int)));
|
|
Jeremy Bullock |
33e7d1 |
ret = ret && connect(m_autoSaveOtherFilesCB, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
33e7d1 |
SLOT(onAutoSaveOtherFilesChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_minuteFld, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onMinuteChanged()));
|
|
Jeremy Bullock |
bfe861 |
ret = ret && connect(startupPopupCB, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
bfe861 |
SLOT(onStartupPopupChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_cellsDragBehaviour, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onDragCellsBehaviourChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_undoMemorySize, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onUndoMemorySizeChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_levelsBackup, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onLevelsBackupChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(sceneNumberingCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onSceneNumberingChanged(int)));
|
|
shun-iwasawa |
57bc09 |
ret = ret && connect(watchFileSystemCB, SIGNAL(stateChanged(int)),
|
|
shun-iwasawa |
57bc09 |
SLOT(onWatchFileSystemClicked(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_chunkSizeFld, SIGNAL(editingFinished()), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onChunkSizeChanged()));
|
|
Jeremy Bullock |
e59b1f |
ret = ret && connect(m_customProjectRootFileField, SIGNAL(pathChanged()),
|
|
Jeremy Bullock |
e59b1f |
this, SLOT(onCustomProjectRootChanged()));
|
|
Jeremy Bullock |
e59b1f |
ret = ret && connect(m_projectRootDocuments, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
e59b1f |
SLOT(onProjectRootChanged()));
|
|
Jeremy Bullock |
e59b1f |
ret = ret && connect(m_projectRootDesktop, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
e59b1f |
SLOT(onProjectRootChanged()));
|
|
Jeremy Bullock |
e59b1f |
ret = ret && connect(m_projectRootStuff, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
e59b1f |
SLOT(onProjectRootChanged()));
|
|
Jeremy Bullock |
e59b1f |
ret = ret && connect(m_projectRootCustom, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
e59b1f |
SLOT(onProjectRootChanged()));
|
|
Shinya Kitaoka |
120a6e |
//--- Interface ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(styleSheetType, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onStyleSheetTypeChanged(int)));
|
|
Jeremy Bullock |
7c096e |
ret = ret && connect(m_pixelsOnlyCB, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
59dbbf |
SLOT(onPixelsOnlyChanged(int)));
|
|
shun_iwasawa |
bb0d83 |
// pixels unit may deactivated externally on loading scene (see
|
|
shun_iwasawa |
bb0d83 |
// IoCmd::loadScene())
|
|
shun_iwasawa |
bb0d83 |
ret = ret && connect(TApp::instance()->getCurrentScene(),
|
|
shun_iwasawa |
bb0d83 |
SIGNAL(pixelUnitSelected(bool)), this,
|
|
shun_iwasawa |
bb0d83 |
SLOT(onPixelUnitExternallySelected(bool)));
|
|
Jeremy Bullock |
7c096e |
ret = ret && connect(m_unitOm, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onUnitChanged(int)));
|
|
Jeremy Bullock |
7c096e |
ret = ret && connect(m_cameraUnitOm, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onCameraUnitChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(roomChoice, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onRoomChoiceChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(openFlipbookAfterCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onViewGeneratedMovieChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_iconSizeLx, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onIconSizeChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_iconSizeLy, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onIconSizeChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_viewShrink, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onViewValuesChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_viewStep, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onViewValuesChanged()));
|
|
Shinya Kitaoka |
120a6e |
if (languageList.size() > 1)
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(languageType, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onLanguageTypeChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(moveCurrentFrameCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onMoveCurrentFrameChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret =
|
|
Shinya Kitaoka |
120a6e |
ret && connect(viewerZoomCenterComboBox, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onViewerZoomCenterChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(replaceAfterSaveLevelAsCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onReplaceAfterSaveLevelAsChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret =
|
|
Shinya Kitaoka |
120a6e |
ret &&
|
|
Shinya Kitaoka |
120a6e |
connect(showRasterImageDarkenBlendedInViewerCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onShowRasterImageDarkenBlendedInViewerChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret &&
|
|
Shinya Kitaoka |
120a6e |
connect(showShowFrameNumberWithLettersCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onShowFrameNumberWithLettersChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
// Viewer BG color
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_viewerBgColorFld,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(colorChanged(const TPixel32 &, bool)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(setViewerBgColor(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
// Preview BG color
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_previewBgColorFld,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(colorChanged(const TPixel32 &, bool)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(setPreviewBgColor(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
// bg chessboard colors
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_chessboardColor1Fld,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(colorChanged(const TPixel32 &, bool)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(setChessboardColor1(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_chessboardColor2Fld,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(colorChanged(const TPixel32 &, bool)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(setChessboardColor2(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
// Column Icon
|
|
Shinya Kitaoka |
120a6e |
ret = ret &&
|
|
Shinya Kitaoka |
120a6e |
connect(m_columnIconOm, SIGNAL(currentIndexChanged(const QString &)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onColumnIconChange(const QString &)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(actualPixelOnSceneModeCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onActualPixelOnSceneModeChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(levelNameOnEachMarkerCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onLevelNameOnEachMarkerChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Visualization ---------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(show0ThickLinesCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onShow0ThickLinesChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(regionAntialiasCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onRegionAntialiasChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Loading ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(exposeLoadedLevelsCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onAutoExposeChanged(int)));
|
|
Jeremy Bullock |
8c5007 |
ret = ret && connect(m_ignoreImageDpiCB, SIGNAL(stateChanged(int)), this,
|
|
Jeremy Bullock |
8c5007 |
SLOT(onIgnoreImageDpiChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(initialLoadTlvCachingBehaviorComboBox,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(currentIndexChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onInitialLoadTlvCachingBehaviorChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(createSubfolderCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onSubsceneFolderChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret =
|
|
Shinya Kitaoka |
120a6e |
ret &&
|
|
Shinya Kitaoka |
120a6e |
connect(removeSceneNumberFromLoadedLevelNameCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onRemoveSceneNumberFromLoadedLevelNameChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret &&
|
|
Shinya Kitaoka |
120a6e |
connect(m_addLevelFormat, SIGNAL(clicked()), SLOT(onAddLevelFormat()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_removeLevelFormat, SIGNAL(clicked()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onRemoveLevelFormat()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_editLevelFormat, SIGNAL(clicked()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onEditLevelFormat()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(paletteTypeForRasterColorModelComboBox,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(currentIndexChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onPaletteTypeForRasterColorModelChanged(int)));
|
|
Jeremy Bullock |
b53dba |
ret = ret && connect(m_importPolicy, SIGNAL(currentIndexChanged(int)),
|
|
Jeremy Bullock |
b53dba |
SLOT(onImportPolicyChanged(int)));
|
|
Jeremy Bullock |
b53dba |
ret = ret && connect(TApp::instance()->getCurrentScene(),
|
|
Jeremy Bullock |
b53dba |
SIGNAL(importPolicyChanged(int)), this,
|
|
Jeremy Bullock |
b53dba |
SLOT(onImportPolicyExternallyChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
|
|
turtletooth |
04d8fd |
//--- Import/Export ----------------------
|
|
turtletooth |
04d8fd |
ret = ret && connect(m_ffmpegPathFileFld, SIGNAL(pathChanged()), this,
|
|
turtletooth |
04d8fd |
SLOT(onFfmpegPathChanged()));
|
|
Jeremy Bullock |
3bb5ef |
ret = ret && connect(m_fastRenderPathFileField, SIGNAL(pathChanged()), this,
|
|
Jeremy Bullock |
3bb5ef |
SLOT(onFastRenderPathChanged()));
|
|
turtletooth |
04d8fd |
ret = ret && connect(m_ffmpegTimeout, SIGNAL(editingFinished()), this,
|
|
shun-iwasawa |
27b0cf |
SLOT(onFfmpegTimeoutChanged()));
|
|
turtletooth |
04d8fd |
|
|
Shinya Kitaoka |
120a6e |
//--- Drawing ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(keepOriginalCleanedUpCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onSaveUnpaintedInCleanupChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(multiLayerStylePickerCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onMultiLayerStylePickerChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(useSaveboxToLimitFillingOpCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onGetFillOnlySavebox(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_defScanLevelType,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(currentIndexChanged(const QString &)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onScanLevelTypeChanged(const QString &)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(minimizeSaveboxAfterEditingCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onMinimizeSaveboxAfterEditing(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_defLevelType, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onDefLevelTypeChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_autocreationType, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onAutocreationTypeChanged(int)));
|
|
Jeremy Bullock |
cd00fd |
ret =
|
|
Jeremy Bullock |
cd00fd |
ret && connect(m_vectorSnappingTargetCB, SIGNAL(currentIndexChanged(int)),
|
|
Jeremy Bullock |
cd00fd |
SLOT(onVectorSnappingTargetChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_defLevelWidth, SIGNAL(valueChanged()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onDefLevelParameterChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_defLevelHeight, SIGNAL(valueChanged()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onDefLevelParameterChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_defLevelDpi, SIGNAL(valueChanged()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onDefLevelParameterChanged()));
|
|
shun_iwasawa |
4635d8 |
ret = ret && connect(m_useNumpadForSwitchingStyles, SIGNAL(clicked(bool)),
|
|
shun_iwasawa |
4635d8 |
SLOT(onUseNumpadForSwitchingStylesClicked(bool)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Xsheet ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(xsheetAutopanDuringPlaybackCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onXsheetAutopanChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(ignoreAlphaonColumn1CB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onIgnoreAlphaonColumn1Changed(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_xsheetStep, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onXsheetStepChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_cellsDragBehaviour, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onDragCellsBehaviourChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(showKeyframesOnCellAreaCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
this, SLOT(onShowKeyframesOnCellAreaChanged(int)));
|
|
shun_iwasawa |
3639da |
ret = ret &&
|
|
shun_iwasawa |
3639da |
connect(useArrowKeyToShiftCellSelectionCB, SIGNAL(stateChanged(int)),
|
|
shun_iwasawa |
3639da |
SLOT(onUseArrowKeyToShiftCellSelectionClicked(int)));
|
|
shun_iwasawa |
3639da |
ret = ret &&
|
|
shun_iwasawa |
3639da |
connect(inputCellsWithoutDoubleClickingCB, SIGNAL(stateChanged(int)),
|
|
shun_iwasawa |
3639da |
SLOT(onInputCellsWithoutDoubleClickingClicked(int)));
|
|
Jeremy Bullock |
15fcba |
ret = ret && connect(m_showXSheetToolbar, SIGNAL(clicked(bool)),
|
|
Jeremy Bullock |
15fcba |
SLOT(onShowXSheetToolbarClicked(bool)));
|
|
Jeremy Bullock |
15fcba |
ret = ret && connect(m_expandFunctionHeader, SIGNAL(clicked(bool)),
|
|
Jeremy Bullock |
15fcba |
SLOT(onExpandFunctionHeaderClicked(bool)));
|
|
Jaroslav |
203cc8 |
|
|
shun_iwasawa |
0cae24 |
ret = ret && connect(showColumnNumbersCB, SIGNAL(stateChanged(int)), this,
|
|
shun_iwasawa |
0cae24 |
SLOT(onShowColumnNumbersChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Animation ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_keyframeType, SIGNAL(currentIndexChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onKeyframeTypeChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_animationStepField, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onAnimationStepChanged()));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Preview ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_blanksCount, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onBlankCountChanged()));
|
|
Shinya Kitaoka |
120a6e |
ret =
|
|
Shinya Kitaoka |
120a6e |
ret && connect(m_blankColor, SIGNAL(colorChanged(const TPixel32 &, bool)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onBlankColorChanged(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(rewindAfterPlaybackCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onRewindAfterPlayback(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(displayInNewFlipBookCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onPreviewAlwaysOpenNewFlip(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(fitToFlipbookCB, SIGNAL(stateChanged(int)), this,
|
|
Shinya Kitaoka |
120a6e |
SLOT(onFitToFlipbook(int)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Onion Skin ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret &&
|
|
Shinya Kitaoka |
120a6e |
connect(m_frontOnionColor, SIGNAL(colorChanged(const TPixel32 &, bool)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onOnionDataChanged(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret &&
|
|
Shinya Kitaoka |
120a6e |
connect(m_backOnionColor, SIGNAL(colorChanged(const TPixel32 &, bool)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onOnionDataChanged(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_inksOnly, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onOnionDataChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_onionSkinVisibility, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onOnionSkinVisibilityChanged(int)));
|
|
Jeremy Bullock |
17d8f9 |
ret = ret && connect(m_onionSkinDuringPlayback, SIGNAL(stateChanged(int)),
|
|
Jeremy Bullock |
17d8f9 |
SLOT(onOnionSkinDuringPlaybackChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_onionPaperThickness, SIGNAL(editingFinished()),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onOnionPaperThicknessChanged()));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Transparency Check ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_transpCheckBgColor,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(colorChanged(const TPixel32 &, bool)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onTranspCheckDataChanged(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_transpCheckInkColor,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(colorChanged(const TPixel32 &, bool)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onTranspCheckDataChanged(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_transpCheckPaintColor,
|
|
Shinya Kitaoka |
120a6e |
SIGNAL(colorChanged(const TPixel32 &, bool)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onTranspCheckDataChanged(const TPixel32 &, bool)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
//--- Version Control ----------------------
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(m_enableVersionControl, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onSVNEnabledChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
ret = ret && connect(autoRefreshFolderContentsCB, SIGNAL(stateChanged(int)),
|
|
Shinya Kitaoka |
120a6e |
SLOT(onAutomaticSVNRefreshChanged(int)));
|
|
Shinya Kitaoka |
120a6e |
|
|
Shinya Kitaoka |
120a6e |
assert(ret);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//-----------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
OpenPopupCommandHandler<preferencespopup> openPreferencesPopup(MI_Preferences);</preferencespopup>
|