From 40c9e8161bed073cc1270c8a44f6d81ff2ad344d Mon Sep 17 00:00:00 2001 From: Ronan Le Tiec <ronanletiec@gmail.com> Date: Sat, 14 Nov 2020 13:23:32 +0100 Subject: [PATCH] Tiles Tab content --- src/app/puzzle/vpmainwindow.ui | 176 ++++++++++++++++++++++++++++++++- 1 file changed, 175 insertions(+), 1 deletion(-) diff --git a/src/app/puzzle/vpmainwindow.ui b/src/app/puzzle/vpmainwindow.ui index 412528d40..68adf8583 100644 --- a/src/app/puzzle/vpmainwindow.ui +++ b/src/app/puzzle/vpmainwindow.ui @@ -991,13 +991,187 @@ <string notr="true">font-weight: bold;</string> </property> <property name="text"> - <string>Tiles of current sheet</string> + <string>Tiled Pdf Export</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> + <item> + <widget class="QGroupBox" name="groupBoxTilesFormat"> + <property name="title"> + <string>Format</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_18"> + <item> + <layout class="QFormLayout" name="formLayoutTilesFormat"> + <item row="0" column="0"> + <widget class="QLabel" name="labelTilesWidth"> + <property name="text"> + <string>Width</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QDoubleSpinBox" name="doubleSpinBoxTilesWidth"/> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="labelTilesLength"> + <property name="text"> + <string>Length</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QDoubleSpinBox" name="doubleSpinBoxTilesLength"/> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="labelTilesOrientation"> + <property name="text"> + <string>Orientation</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <layout class="QHBoxLayout" name="horizontalLayoutTilesOrientation"> + <item> + <widget class="QRadioButton" name="radioButtonTilesPortrait"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="share/resources/puzzleicon.qrc"> + <normaloff>:/puzzleicon/64x64/iconPortrait.png</normaloff>:/puzzleicon/64x64/iconPortrait.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="radioButtonTilesLandscape"> + <property name="text"> + <string/> + </property> + <property name="icon"> + <iconset resource="share/resources/puzzleicon.qrc"> + <normaloff>:/puzzleicon/64x64/iconLandscape.png</normaloff>:/puzzleicon/64x64/iconLandscape.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>32</width> + <height>32</height> + </size> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBoxTilesMargin"> + <property name="title"> + <string>Margins</string> + </property> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="1" column="3"> + <widget class="QLabel" name="labelTilesMarginRight"> + <property name="text"> + <string>Right:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLabel" name="labelTilesMarginLeft"> + <property name="text"> + <string>Left:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item row="1" column="4"> + <widget class="QDoubleSpinBox" name="doubleSpinBoxTilesMarginRight"/> + </item> + <item row="1" column="2"> + <widget class="QDoubleSpinBox" name="doubleSpinBoxTilesMarginLeft"/> + </item> + <item row="0" column="2"> + <widget class="QLabel" name="labelTilesMarginTop"> + <property name="text"> + <string>Top:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item row="0" column="3"> + <widget class="QDoubleSpinBox" name="doubleSpinBoxTilesMarginTop"/> + </item> + <item row="2" column="2"> + <widget class="QLabel" name="labelTilesMarginBottom"> + <property name="text"> + <string>Bottom:</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + </widget> + </item> + <item row="2" column="3"> + <widget class="QDoubleSpinBox" name="doubleSpinBoxTilesMarginBottom"/> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBoxTilesControl"> + <property name="title"> + <string>Control</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_19"> + <item> + <widget class="QCheckBox" name="checkBoxTilesShowTiles"> + <property name="text"> + <string>Show Tiles on sheet</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="groupBoxTilesExport"> + <property name="title"> + <string>Export</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_20"> + <item> + <widget class="QPushButton" name="pushButtonTilesExport"> + <property name="text"> + <string>Export Tiled Pdf</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> <item> <spacer name="verticalSpacerTiles"> <property name="orientation">