Commit bee05ee8 authored by Mike Kremer's avatar Mike Kremer

Added transparency control of snapshots to GUI.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9911 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 78639831
......@@ -409,7 +409,7 @@ void CoreWidget::viewerSnapshotDialog() {
}else
snapshotCounter_++;
//now take the snapshot
switch ( baseLayout_->mode() ){
......@@ -418,7 +418,7 @@ void CoreWidget::viewerSnapshotDialog() {
QImage finalImage;
examiner_widgets_[PluginFunctions::activeExaminer()]->snapshot(finalImage,
dialog.snapWidth->value(), dialog.snapHeight->value());
dialog.snapWidth->value(), dialog.snapHeight->value(), dialog.transparent->isChecked());
finalImage.save(newName);
......
......@@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>511</width>
<height>165</height>
<width>272</width>
<height>308</height>
</rect>
</property>
<property name="windowTitle">
......@@ -47,18 +47,36 @@
<property name="title">
<string> Resolution </string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Width:</string>
</property>
</widget>
</item>
<item>
<item row="2" column="1">
<widget class="QSpinBox" name="snapWidth">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>100</number>
<number>1</number>
</property>
<property name="maximum">
<number>8192</number>
......@@ -68,17 +86,26 @@
</property>
</widget>
</item>
<item>
<item row="4" column="0">
<widget class="QLabel" name="label_4">
<property name="text">
<string>Height:</string>
</property>
</widget>
</item>
<item>
<item row="4" column="1">
<widget class="QSpinBox" name="snapHeight">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>100</number>
<number>1</number>
</property>
<property name="maximum">
<number>8192</number>
......@@ -88,30 +115,24 @@
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
<item row="8" column="1">
<widget class="QPushButton" name="resButton">
<property name="text">
<string>Change Resolution</string>
</property>
</spacer>
</widget>
</item>
<item>
<item row="5" column="1">
<widget class="QCheckBox" name="keepAspect">
<property name="text">
<string>Keep aspect</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="resButton">
<item row="6" column="1">
<widget class="QCheckBox" name="transparent">
<property name="text">
<string>Change Resolution</string>
<string>Transparent background</string>
</property>
</widget>
</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment