Skip to content

Commit

Permalink
Update rendersettingsdialog.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Nov 19, 2023
1 parent 4baf8da commit 42ea912
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/app/GUI/RenderWidgets/rendersettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ RenderSettingsDialog::RenderSettingsDialog(
mInitialScene(settings.getTargetCanvas()),
mCurrentScene(mInitialScene),
mInitialSettings(settings.getRenderSettings()) {
setWindowTitle("Render Settings");
setWindowTitle(tr("Render Settings"));

const auto mainLayout = new QVBoxLayout(this);
setLayout(mainLayout);

const auto sceneLay = new QHBoxLayout;
mSceneLabel = new QLabel("Scene: ");
mSceneLabel = new QLabel(tr("Scene"));
mSceneCombo = new QComboBox();
for(const auto& canvas : Document::sInstance->fScenes) {
mSceneCombo->addItem(canvas->prp_getName());
Expand All @@ -39,7 +39,7 @@ RenderSettingsDialog::RenderSettingsDialog(
mainLayout->addLayout(sceneLay);

const auto resolutionLay = new QHBoxLayout;
mResolutionLabel = new QLabel("Resolution: ");
mResolutionLabel = new QLabel(tr("Resolution"));
mResolutionSpin = new QDoubleSpinBox(this);
mResolutionSpin->setDecimals(2);
mResolutionSpin->setSuffix(" %");
Expand All @@ -50,7 +50,7 @@ RenderSettingsDialog::RenderSettingsDialog(
mainLayout->addLayout(resolutionLay);

const auto dimLay = new QHBoxLayout;
mWidthLabel = new QLabel("Width: ");
mWidthLabel = new QLabel(tr("Width"));
mWidthSpin = new QSpinBox(this);
mWidthSpin->setRange(1, 9999);
mWidthSpin->setValue(mInitialSettings.fVideoWidth);
Expand All @@ -59,7 +59,7 @@ RenderSettingsDialog::RenderSettingsDialog(

eSizesUI::widget.addSpacing(dimLay);

mHeightLabel = new QLabel("Height: ");
mHeightLabel = new QLabel(tr("Height"));
mHeightSpin = new QSpinBox(this);
mHeightSpin->setRange(1, 9999);
mHeightSpin->setValue(mInitialSettings.fVideoHeight);
Expand All @@ -69,10 +69,10 @@ RenderSettingsDialog::RenderSettingsDialog(
connectDims();

mainLayout->addLayout(dimLay);
addSeparator();
//addSeparator();

const auto rangeLay = new QHBoxLayout;
mFrameRangeLabel = new QLabel("Frame range: ", this);
mFrameRangeLabel = new QLabel(tr("Frame range"), this);
mMinFrameSpin = new QSpinBox(this);
mMinFrameSpin->setRange(-999999, 999999);
mMaxFrameSpin = new QSpinBox(this);
Expand Down Expand Up @@ -108,18 +108,18 @@ RenderSettingsDialog::RenderSettingsDialog(
mainLayout->addStretch();

mButtonsLayout = new QHBoxLayout();
mOkButton = new QPushButton("Ok", this);
mCancelButton = new QPushButton("Cancel", this);
mResetButton = new QPushButton("Reset", this);
mOkButton = new QPushButton(tr("Ok"), this);
mCancelButton = new QPushButton(tr("Cancel"), this);
mResetButton = new QPushButton(tr("Reset"), this);
connect(mOkButton, &QPushButton::released,
this, &RenderSettingsDialog::accept);
connect(mCancelButton, &QPushButton::released,
this, &RenderSettingsDialog::reject);
connect(mResetButton, &QPushButton::released,
this, &RenderSettingsDialog::restoreInitialSettings);
mButtonsLayout->addWidget(mResetButton, Qt::AlignLeft);
mButtonsLayout->addWidget(mCancelButton, Qt::AlignLeft);
mButtonsLayout->addWidget(mOkButton, Qt::AlignRight);
mButtonsLayout->addWidget(mCancelButton, Qt::AlignLeft);
mButtonsLayout->addWidget(mResetButton, Qt::AlignLeft);

mainLayout->addLayout(mButtonsLayout);
}
Expand Down

0 comments on commit 42ea912

Please sign in to comment.