diff options
author | Jan Darmochwal | 2010-10-05 12:45:20 +0200 |
---|---|---|
committer | Jan Darmochwal | 2010-10-05 12:45:20 +0200 |
commit | 610840384ff2a04d640ca4d8fe100019bab0ba16 (patch) | |
tree | faea71083d0c33f5389a9833f9576564cf0248eb /src/ui | |
parent | Allow sessions to be active for a given date range (diff) | |
download | vmchooser-610840384ff2a04d640ca4d8fe100019bab0ba16.tar.gz vmchooser-610840384ff2a04d640ca4d8fe100019bab0ba16.tar.xz vmchooser-610840384ff2a04d640ca4d8fe100019bab0ba16.zip |
simple PVS configuration in vmchooser
This patch adds a GroupBox with PVS access restriction options to vmchooser.
Vmchooser checks if a PVS daemon is running and if so, displays some access configuration options.
The options will be sent to the PVS daemon after a session has been started (just before vmchooser exits).
All PVS configuration program logic is contained in the Dialog class. (It would probably be better to use a custom widget for the PVS options.)
The file org.openslx.pvs.xml has been copied from a PVS build. This file has to be updated manually when the PVS D-Bus specification changes.
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/dialog.ui | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/src/ui/dialog.ui b/src/ui/dialog.ui index 522ae55..fe03b5d 100644 --- a/src/ui/dialog.ui +++ b/src/ui/dialog.ui @@ -28,6 +28,107 @@ </widget> </item> <item> + <widget class="QGroupBox" name="PVSOptionsGroupBox"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="title"> + <string>PVS Options</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <layout class="QFormLayout" name="formLayout"> + <item row="0" column="0"> + <widget class="QLabel" name="labelLecturer"> + <property name="text"> + <string>VNC access by lecturer:</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QComboBox" name="comboBoxLecturer"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="labelOthers"> + <property name="text"> + <string>VNC access by others:</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QComboBox" name="comboBoxOthers"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + </layout> + </item> + <item> + <spacer name="horizontalSpacer_3"> + <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> + <widget class="Line" name="line"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + </widget> + </item> + <item> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QCheckBox" name="checkBoxChat"> + <property name="text"> + <string>Accept chat messages</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="checkBoxFileTransfer"> + <property name="text"> + <string>Accept file transfers</string> + </property> + </widget> + </item> + </layout> + </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> + </property> + </spacer> + </item> + </layout> + </widget> + </item> + <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <spacer name="horizontalSpacer"> |