summaryrefslogtreecommitdiffstats
path: root/src/maingui/printergui.ui
diff options
context:
space:
mode:
authorSimon Rettberg2014-02-06 20:39:57 +0100
committerSimon Rettberg2014-02-06 20:39:57 +0100
commit909bab46a61d358d948c2784e48e3c144ade9c1a (patch)
treecbb4e9a9f659f5907371cfc66836ca9a0b23d6c8 /src/maingui/printergui.ui
parentRemove silly debug message boxes (diff)
downloadprintergui-909bab46a61d358d948c2784e48e3c144ade9c1a.tar.gz
printergui-909bab46a61d358d948c2784e48e3c144ade9c1a.tar.xz
printergui-909bab46a61d358d948c2784e48e3c144ade9c1a.zip
Lots of changes: Two binaries (selection/pw auth), qmake -> cmake, gitignore, more error handling
1. We now have two binaries: One pops up when the print job comes in so you can select the printer, duplex, copies, etc... The other one pops up when used as a backend and handles authentication by asking for username and password (WORK IN PROGRESS!). This is to better handle things like smb printing 2. We use cmake everywhere, and now that we want two binaries it made sense to switch. 3. Gitignore, well, what to say 4. Show an error message when calling ghostscript for grayscale conversion failed, insted of just doing nothing and not even closing the GUI. 5. Keep the printergui open for a few seconds after printing, but hide the window. Later we want to check in the password gui if the printergui is open to make sure we really should run, and maybe even exchange some information.
Diffstat (limited to 'src/maingui/printergui.ui')
-rw-r--r--src/maingui/printergui.ui202
1 files changed, 202 insertions, 0 deletions
diff --git a/src/maingui/printergui.ui b/src/maingui/printergui.ui
new file mode 100644
index 0000000..8fafd23
--- /dev/null
+++ b/src/maingui/printergui.ui
@@ -0,0 +1,202 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>PrinterGui</class>
+ <widget class="QMainWindow" name="PrinterGui">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>590</width>
+ <height>286</height>
+ </rect>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>590</width>
+ <height>286</height>
+ </size>
+ </property>
+ <property name="windowTitle">
+ <string>Druckauftrag</string>
+ </property>
+ <widget class="QWidget" name="centralWidget">
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QTreeWidget" name="printerList">
+ <property name="showDropIndicator" stdset="0">
+ <bool>false</bool>
+ </property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <column>
+ <property name="text">
+ <string notr="true">1</string>
+ </property>
+ </column>
+ </widget>
+ </item>
+ <item>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="2" column="0">
+ <widget class="QComboBox" name="comboBoxColor">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <item>
+ <property name="text">
+ <string>Graustufen</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Farbe</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QComboBox" name="comboBoxSides">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <item>
+ <property name="text">
+ <string>Simplex</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Duplex, Long Edge</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>Duplex, Short Edge</string>
+ </property>
+ </item>
+ </widget>
+ </item>
+ <item row="3" column="2">
+ <layout class="QHBoxLayout" name="horizontalLayoutButtons">
+ <item>
+ <widget class="QPushButton" name="buttonCancel">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="autoFillBackground">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Abbrechen</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="buttonPrint">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Drucken</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="2" column="2">
+ <layout class="QHBoxLayout" name="horizontalLayoutCopies">
+ <item>
+ <widget class="QLabel" name="labelCopies">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Anzahl Kopien:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="lineEditCopies">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>40</width>
+ <height>16777215</height>
+ </size>
+ </property>
+ <property name="inputMask">
+ <string>00; </string>
+ </property>
+ <property name="text">
+ <string>1</string>
+ </property>
+ <property name="maxLength">
+ <number>2</number>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="2" column="1">
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item row="3" column="1">
+ <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>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <resources/>
+ <connections/>
+</ui>