[debian-edu-commits] debian-edu/ 34/183: Filled in remaining tooltips in kommander gui, kommander gui now deals with quotes in requirements correctly
Alexander Alemayhu
ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:31 UTC 2014
This is an automated email from the git hooks/post-receive script.
ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.
commit e28e0f866a188700b3fe6c95fabb72e8db02bc1f
Author: Bart Cornelis <cobaco at linux.be>
Date: Sat Dec 25 14:29:31 2004 +0000
Filled in remaining tooltips in kommander gui, kommander gui now deals with
quotes in requirements correctly
Fixed small mistake in defaults.listing
---
TODO | 22 +-
debian/menu | 4 +-
debian/postinst | 2 +
default.listing | 2 +-
profile-manager.kmdr | 1541 ++++++++++++++++++++++++++------------------------
5 files changed, 819 insertions(+), 752 deletions(-)
diff --git a/TODO b/TODO
index 4fcc4b9..5db6e8c 100644
--- a/TODO
+++ b/TODO
@@ -1,24 +1,16 @@
- Finish package:
- - pops up debconf question about wether to replace the system wide
- gconf path file with on version (defaults to no).
-
- Talk to gconf maintainers after package enters archives, about replacing current
- system-wide gconf path file with the one from this package
-
- add kiosktool to Suggests when it becomes available in Debian (can i suggest
something not yet in the archive?)
-- Are there any docs on the kiosk system of XFCE 4.2 available anywhere we can
- point to?
-
-- Finish kommander gui:
- - delete new profile
- - option to actually move profile, when changing location
- - fill in tooltips & whatsthis help
- - ...
+ - Are there any docs on the kiosk system of XFCE 4.2 available anywhere we can
+ point to? -> not yet apperently
- Tools to build (cross-desktop) profiles? (if at all possible)
- background
- add something to desktop/panel/bookmarks/menu
-- Debhelper script for installing profiles?
+- Find sponsor
+ -> switch debian-edu-config + desktop-base to use desktop-profiles
+ -> get dh_installlisting into debhelper
+ -> talk to gconf-maintainers, to have gconf support this package (current
+ system-wide gconf path file needs replacing with the one from this package)
diff --git a/debian/menu b/debian/menu
index 7b122ce..52747a7 100644
--- a/debian/menu
+++ b/debian/menu
@@ -1,5 +1,5 @@
?package(desktop-profiles,kommander):\
- needs=X11 \
- section=Apps/System\
+ needs="X11" \
+ section="Apps/System"\
title="profile-manager"\
command="/usr/bin/kmdr-executor /usr/share/desktop-profiles/kommander-scripts/profile-manager"
diff --git a/debian/postinst b/debian/postinst
index 1cfced5..94bf9ce 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -23,3 +23,5 @@ if (test "$RET" = true); then
fi;
fi;
fi;
+
+#DEBHELPER#
diff --git a/default.listing b/default.listing
index fe81e3a..56207bf 100644
--- a/default.listing
+++ b/default.listing
@@ -28,5 +28,5 @@ ude-install-dir;/usr/share/ude;;;UDE;Default location of system-wide UDE stuff
gconf-mandatory;xml:readonly:/etc/gconf/gconf.xml.mandatory;101;;GCONF;Configuration source with the mandatory system-wide settings
gconf-sysadmin-mandatory;include /etc/gconf/2/local-mandatory.path;100;;GCONF;Extra mandatory settings defined by sysadmin
gconf-user;xml:readwrite:$(HOME)/.gconf;50;;GCONF;The normal user configuration source
-gconf-sysadmin-mandatory;include /etc/gconf/2/local-defaults.path;-1;;GCONF;Extra default settings defined by sysadmin
+gconf-sysadmin-defaults;include /etc/gconf/2/local-defaults.path;-1;;GCONF;Extra default settings defined by sysadmin
gconf-defaults;xml:readonly:/etc/gconf/gconf.xml.defaults;-2;;GCONF;Configuration source with the default systemwide settings
diff --git a/profile-manager.kmdr b/profile-manager.kmdr
index 053e07d..1574222 100644
--- a/profile-manager.kmdr
+++ b/profile-manager.kmdr
@@ -71,564 +71,281 @@
<string>Precedence:</string>
</property>
</widget>
- <widget class="GroupBox">
+ <widget class="Label">
<property name="name">
- <cstring>requirementsBox</cstring>
+ <cstring>descriptionLabel</cstring>
</property>
<property name="geometry">
<rect>
- <x>11</x>
- <y>77</y>
- <width>750</width>
- <height>134</height>
+ <x>290</x>
+ <y>20</y>
+ <width>80</width>
+ <height>22</height>
</rect>
</property>
- <property name="title">
- <string>Activation requirements:</string>
+ <property name="text">
+ <string>Description:</string>
</property>
<property name="associations" stdset="0">
<stringlist>
<string></string>
</stringlist>
</property>
- <widget class="GroupBox">
- <property name="name">
- <cstring>GroupBox5</cstring>
+ </widget>
+ <widget class="Label">
+ <property name="name">
+ <cstring>listFileLabel</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>220</y>
+ <width>61</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Listed in</string>
+ </property>
+ </widget>
+ <widget class="Label">
+ <property name="name">
+ <cstring>kindLabel</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>240</x>
+ <y>50</y>
+ <width>32</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Kind:</string>
+ </property>
+ </widget>
+ <widget class="Label">
+ <property name="name">
+ <cstring>locationLabel</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>400</x>
+ <y>50</y>
+ <width>77</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Location(s):</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="LineEdit">
+ <property name="name">
+ <cstring>descriptionCurrent</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>371</x>
+ <y>21</y>
+ <width>390</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>6th field (=description) of selected profile</string>
+ </property>
+ </widget>
+ <widget class="ComboBox">
+ <item>
+ <property name="text">
+ <string>KDE</string>
</property>
- <property name="geometry">
- <rect>
- <x>230</x>
- <y>10</y>
- <width>510</width>
- <height>110</height>
- </rect>
+ </item>
+ <item>
+ <property name="text">
+ <string>GCONF</string>
</property>
- <property name="title">
- <string>New activation requirement:</string>
+ </item>
+ <item>
+ <property name="text">
+ <string>XDG_CONFIG</string>
</property>
- <property name="associations" stdset="0">
- <stringlist>
- <string></string>
- </stringlist>
- </property>
- <widget class="Label">
- <property name="name">
- <cstring>addCommandReqLabel1</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>50</y>
- <width>40</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text">
- <string>When</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string></string>
- </stringlist>
- </property>
- </widget>
- <widget class="Label">
- <property name="name">
- <cstring>addCommandReqLabel2</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>320</x>
- <y>50</y>
- <width>131</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text">
- <string>executes succesfully</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string></string>
- </stringlist>
- </property>
- </widget>
- <widget class="Label">
- <property name="name">
- <cstring>addGroupReqLabel1</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>20</y>
- <width>120</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text">
- <string>When the user is</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string></string>
- </stringlist>
- </property>
- </widget>
- <widget class="ExecButton">
- <property name="name">
- <cstring>deactivate</cstring>
- </property>
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>80</y>
- <width>200</width>
- <height>24</height>
- </rect>
- </property>
- <property name="text">
- <string>Deactivate profile completely</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>true
-
- at requirementsCurrent.addUniqueItem(!)</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Adds an unsatisfiable requirement (not in any group)</string>
- </property>
- </widget>
- <widget class="LineEdit">
- <property name="name">
- <cstring>commandReq</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>50</x>
- <y>50</y>
- <width>270</width>
- <height>22</height>
- </rect>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@widgetText</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Enter any shell command</string>
- </property>
- </widget>
- <widget class="ExecButton">
- <property name="name">
- <cstring>addCommandReq</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>460</x>
- <y>50</y>
- <width>40</width>
- <height>24</height>
- </rect>
- </property>
- <property name="text">
- <string>Add</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>true
-
- at requirementsCurrent.addUniqueItem($(@commandReq))</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Make succesfull completion of given shell command a requirement for activation of this profile</string>
- </property>
- </widget>
- <widget class="ComboBox">
- <property name="name">
- <cstring>groupList</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>260</x>
- <y>20</y>
- <width>190</width>
- <height>22</height>
- </rect>
- </property>
- <property name="populationText">
- <string>@exec(cat /etc/group | cut --fields 1 --delimiter ':' | sort)</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@widgetText</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Choose the group for which (non-)membership is needed to activate this profile</string>
- </property>
- </widget>
- <widget class="ExecButton">
- <property name="name">
- <cstring>addGroupReq</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>460</x>
- <y>20</y>
- <width>40</width>
- <height>24</height>
- </rect>
- </property>
- <property name="text">
- <string>Add</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>true
-
- at requirementsCurrent.addUniqueItem(@isMember at groupList)</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Only activate profile for users that are (not) a member of the selected group</string>
- </property>
- </widget>
- <widget class="ComboBox">
- <item>
- <property name="text">
- <string>a member of</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>not member of </string>
- </property>
- </item>
- <property name="name">
- <cstring>isMember</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>130</x>
- <y>20</y>
- <width>120</width>
- <height>22</height>
- </rect>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@execBegin
-
-if test '@widgetText' = 'a member of'; then
- echo '';
-else
- echo '!';
-fi;
-
- at execEnd</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Your choice here determines wether the new requirement concerns membership or non-membership</string>
- </property>
- </widget>
- </widget>
- <widget class="ExecButton">
- <property name="name">
- <cstring>delReq</cstring>
- </property>
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>100</y>
- <width>210</width>
- <height>24</height>
- </rect>
+ </item>
+ <item>
+ <property name="text">
+ <string>XDG_DATA</string>
</property>
+ </item>
+ <item>
<property name="text">
- <string>Remove selected</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>true
-
- at requirementsCurrent.removeItem(@requirementsCurrent.findItem(@requirementsCurrent.selection()))</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Removes selected activation requirement from the list</string>
- </property>
- </widget>
- <widget class="ListBox">
- <property name="name">
- <cstring>requirementsCurrent</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>20</y>
- <width>210</width>
- <height>70</height>
- </rect>
- </property>
- <property name="selectionMode">
- <enum>Single</enum>
- </property>
- <property name="populationText">
- <string>@execBegin
-. /usr/share/desktop-profiles/listingmodule
-
-REQS="$(echo '@profilesAll.selection()' | cut --fields 5 --delimiter ';')"
-for_each_requirement "$REQS" 'echo'
-
- at execEnd
-</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@execBegin
-
-echo '@widgetText' | while read REQ ; do
- echo -n "$REQ ";
-done
-
- at execEnd</string>
- </stringlist>
+ <string>ROX</string>
</property>
- <property name="toolTip" stdset="0">
- <string>list of activation requirements (contained in the 4th field) of selected profile</string>
+ </item>
+ <item>
+ <property name="text">
+ <string>UDE</string>
</property>
- </widget>
- </widget>
- <widget class="Label">
+ </item>
<property name="name">
- <cstring>descriptionLabel</cstring>
+ <cstring>kindCurrent</cstring>
</property>
<property name="geometry">
<rect>
- <x>290</x>
- <y>20</y>
- <width>80</width>
+ <x>280</x>
+ <y>50</y>
+ <width>110</width>
<height>22</height>
</rect>
</property>
- <property name="text">
- <string>Description:</string>
+ <property name="populationText">
+ <string></string>
</property>
<property name="associations" stdset="0">
<stringlist>
- <string></string>
+ <string>@widgetText</string>
</stringlist>
</property>
- </widget>
- <widget class="Label">
- <property name="name">
- <cstring>listFileLabel</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>220</y>
- <width>61</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text">
- <string>Listed in</string>
- </property>
- </widget>
- <widget class="Label">
- <property name="name">
- <cstring>kindLabel</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>240</x>
- <y>50</y>
- <width>32</width>
- <height>22</height>
- </rect>
- </property>
- <property name="text">
- <string>Kind:</string>
+ <property name="toolTip" stdset="0">
+ <string>5th field (=kind) of selected profile</string>
</property>
</widget>
- <widget class="Label">
+ <widget class="LineEdit">
<property name="name">
- <cstring>locationLabel</cstring>
+ <cstring>locationCurrent</cstring>
</property>
<property name="geometry">
<rect>
- <x>400</x>
- <y>50</y>
- <width>77</width>
+ <x>481</x>
+ <y>49</y>
+ <width>280</width>
<height>22</height>
</rect>
</property>
- <property name="text">
- <string>Location(s):</string>
+ <property name="populationText">
+ <string></string>
</property>
<property name="associations" stdset="0">
<stringlist>
- <string></string>
+ <string>@widgetText</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>2nd field of selected profile</string>
+ </property>
</widget>
<widget class="LineEdit">
<property name="name">
- <cstring>descriptionCurrent</cstring>
+ <cstring>precedenceCurrent</cstring>
</property>
<property name="geometry">
<rect>
- <x>371</x>
- <y>21</y>
- <width>390</width>
+ <x>98</x>
+ <y>49</y>
+ <width>140</width>
<height>22</height>
</rect>
</property>
- <property name="populationText">
- <string></string>
- </property>
<property name="associations" stdset="0">
<stringlist>
<string>@widgetText</string>
</stringlist>
</property>
<property name="toolTip" stdset="0">
- <string>6th field (=description) of selected profile</string>
+ <string>3th field (=precedence value) of selected profile</string>
</property>
</widget>
- <widget class="LineEdit">
+ <widget class="CheckBox">
<property name="name">
- <cstring>nameCurrent</cstring>
+ <cstring>isNew</cstring>
</property>
<property name="geometry">
<rect>
- <x>98</x>
- <y>21</y>
- <width>190</width>
- <height>22</height>
+ <x>360</x>
+ <y>220</y>
+ <width>70</width>
+ <height>20</height>
</rect>
</property>
- <property name="populationText">
- <string></string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@widgetText</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>1st field (=name) of selected profile</string>
- </property>
- </widget>
- <widget class="ComboBox">
- <item>
- <property name="text">
- <string>KDE</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>GCONF</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>XDG_CONFIG</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>XDG_DATA</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>ROX</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>UDE</string>
- </property>
- </item>
- <property name="name">
- <cstring>kindCurrent</cstring>
+ <property name="text">
+ <string>Is new</string>
</property>
- <property name="geometry">
- <rect>
- <x>280</x>
- <y>50</y>
- <width>110</width>
- <height>22</height>
- </rect>
+ <property name="checked">
+ <bool>true</bool>
</property>
<property name="populationText">
- <string></string>
+ <string>false</string>
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>@widgetText</string>
+ <string>false</string>
+ <string></string>
+ <string>true</string>
</stringlist>
</property>
<property name="toolTip" stdset="0">
- <string>5th field (=kind) of selected profile</string>
+ <string>Check if shown details (will) describe a new profile</string>
</property>
</widget>
- <widget class="LineEdit">
+ <widget class="ExecButton">
<property name="name">
- <cstring>locationCurrent</cstring>
+ <cstring>deleteProfile</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
</property>
<property name="geometry">
<rect>
- <x>481</x>
- <y>49</y>
- <width>280</width>
- <height>22</height>
+ <x>430</x>
+ <y>220</y>
+ <width>90</width>
+ <height>24</height>
</rect>
</property>
- <property name="populationText">
- <string></string>
+ <property name="text">
+ <string>Delete profile</string>
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>@widgetText</string>
+ <string>FILE="@listFileCurrent";
+NAME="@nameCurrent";
+
+TEMP=$(tempfile)
+cat "$FILE" | grep -v "^$NAME;" > $TEMP
+mv $TEMP $FILE</string>
</stringlist>
</property>
<property name="toolTip" stdset="0">
- <string>2nd field of selected profile</string>
+ <string>Delete profile whose details are shown</string>
</property>
</widget>
- <widget class="LineEdit">
+ <widget class="Label">
<property name="name">
- <cstring>precedenceCurrent</cstring>
+ <cstring>nameLabel</cstring>
</property>
<property name="geometry">
<rect>
- <x>98</x>
- <y>49</y>
- <width>140</width>
+ <x>11</x>
+ <y>21</y>
+ <width>81</width>
<height>22</height>
</rect>
</property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@widgetText</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>3th field (=precedence value) of selected profile</string>
+ <property name="text">
+ <string>Name:</string>
</property>
</widget>
<widget class="FileSelector">
@@ -660,6 +377,9 @@ done
<property name="selectionFilter">
<string>*.listing</string>
</property>
+ <property name="selectionCaption">
+ <string>Append profile description to</string>
+ </property>
<property name="toolTip" stdset="0">
<string>.listing file where the profile is defined</string>
</property>
@@ -679,6 +399,9 @@ done
<property name="text">
<string>Cancel Changes</string>
</property>
+ <property name="populationText">
+ <string></string>
+ </property>
<property name="associations" stdset="0">
<stringlist>
<string>true
@@ -699,38 +422,6 @@ done
<string>Forget changes made to shown profile details</string>
</property>
</widget>
- <widget class="CheckBox">
- <property name="name">
- <cstring>isNew</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>360</x>
- <y>220</y>
- <width>70</width>
- <height>20</height>
- </rect>
- </property>
- <property name="text">
- <string>Is new</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- <property name="populationText">
- <string>false</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>false</string>
- <string></string>
- <string>true</string>
- </stringlist>
- </property>
- <property name="toolTip" stdset="0">
- <string>Check if shown details (will) describe a new profile</string>
- </property>
- </widget>
<widget class="ScriptObject">
<property name="name">
<cstring>isNewScript</cstring>
@@ -758,15 +449,370 @@ done
@commitChanges.setText(Add new profile)
@endif
-@# Existing Profile(being togled -> still true)
- at if(@String.compare(true, @isNew))
- @listFileCurrent.setEnabled(false)
- @deleteProfile.setEnabled(true)
- @listFileCurrent.setText(@exec(echo '@profilesAll.selection' | cut --fields 1 --delimiter ';'))
- @commitChanges.setText(Save Changes)
- at endif</string>
- </stringlist>
- </property>
+@# Existing Profile(being togled -> still true)
+ at if(@String.compare(true, @isNew))
+ @listFileCurrent.setEnabled(false)
+ @deleteProfile.setEnabled(true)
+ @listFileCurrent.setText(@exec(echo '@profilesAll.selection' | cut --fields 1 --delimiter ';'))
+ @commitChanges.setText(Save Changes)
+ at endif</string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="GroupBox">
+ <property name="name">
+ <cstring>requirementsBox</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>11</x>
+ <y>77</y>
+ <width>750</width>
+ <height>134</height>
+ </rect>
+ </property>
+ <property name="title">
+ <string>Activation requirements:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <widget class="GroupBox">
+ <property name="name">
+ <cstring>GroupBox5</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>230</x>
+ <y>10</y>
+ <width>510</width>
+ <height>110</height>
+ </rect>
+ </property>
+ <property name="title">
+ <string>New activation requirement:</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ <widget class="Label">
+ <property name="name">
+ <cstring>addCommandReqLabel1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>50</y>
+ <width>40</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>When</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="Label">
+ <property name="name">
+ <cstring>addCommandReqLabel2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>320</x>
+ <y>50</y>
+ <width>131</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>executes succesfully</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="Label">
+ <property name="name">
+ <cstring>addGroupReqLabel1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>20</y>
+ <width>120</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>When the user is</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string></string>
+ </stringlist>
+ </property>
+ </widget>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>deactivate</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>80</y>
+ <width>200</width>
+ <height>24</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Deactivate profile completely</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>true
+
+ at requirementsCurrent.addUniqueItem(!)</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Adds an unsatisfiable requirement (not in any group)</string>
+ </property>
+ </widget>
+ <widget class="LineEdit">
+ <property name="name">
+ <cstring>commandReq</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>50</x>
+ <y>50</y>
+ <width>270</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Enter any shell command</string>
+ </property>
+ </widget>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>addCommandReq</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>460</x>
+ <y>50</y>
+ <width>40</width>
+ <height>24</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Add</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>true
+
+ at requirementsCurrent.addUniqueItem($(@commandReq))</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Make succesfull completion of given shell command a requirement for activation of this profile</string>
+ </property>
+ </widget>
+ <widget class="ComboBox">
+ <property name="name">
+ <cstring>groupList</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>260</x>
+ <y>20</y>
+ <width>190</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property name="populationText">
+ <string>@exec(cat /etc/group | cut --fields 1 --delimiter ':' | sort)</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@widgetText</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Choose the group for which (non-)membership is needed to activate this profile</string>
+ </property>
+ </widget>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>addGroupReq</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>460</x>
+ <y>20</y>
+ <width>40</width>
+ <height>24</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Add</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>true
+
+ at requirementsCurrent.addUniqueItem(@isMember at groupList)</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Only activate profile for users that are (not) a member of the selected group</string>
+ </property>
+ </widget>
+ <widget class="ComboBox">
+ <item>
+ <property name="text">
+ <string>a member of</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>not member of </string>
+ </property>
+ </item>
+ <property name="name">
+ <cstring>isMember</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>130</x>
+ <y>20</y>
+ <width>120</width>
+ <height>22</height>
+ </rect>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@execBegin
+
+if test '@widgetText' = 'a member of'; then
+ echo '';
+else
+ echo '!';
+fi;
+
+ at execEnd</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Your choice here determines wether the new requirement concerns membership or non-membership</string>
+ </property>
+ </widget>
+ </widget>
+ <widget class="ExecButton">
+ <property name="name">
+ <cstring>delReq</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>100</y>
+ <width>210</width>
+ <height>24</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Remove selected</string>
+ </property>
+ <property name="populationText">
+ <string></string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>true
+
+ at requirementsCurrent.removeItem(@requirementsCurrent.findItem(@requirementsCurrent.selection()))</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>Removes selected activation requirement from the list</string>
+ </property>
+ </widget>
+ <widget class="ListBox">
+ <property name="name">
+ <cstring>requirementsCurrent</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>20</y>
+ <width>210</width>
+ <height>70</height>
+ </rect>
+ </property>
+ <property name="selectionMode">
+ <enum>Single</enum>
+ </property>
+ <property name="columnMode">
+ <enum>FixedNumber</enum>
+ </property>
+ <property name="rowMode">
+ <enum>Variable</enum>
+ </property>
+ <property name="variableHeight">
+ <bool>true</bool>
+ </property>
+ <property name="populationText">
+ <string>@execBegin
+. /usr/share/desktop-profiles/listingmodule
+
+FILE="$(echo '@profilesAll.selection' | cut --fields 1 --delimiter ';')"
+NAME="$(echo '@profilesAll.selection' | cut --fields 2 --delimiter ';')"
+
+REQS="$(grep ^$NAME $FILE | cut --fields 4 --delimiter ';')"
+for_each_requirement "$REQS" 'echo'
+
+ at execEnd</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@execBegin
+@# escape @widgetText so we don't loose anything
+ at setGlobal( tmp, at String.replace( @widgetText, \,\\\\\\\ ) ) @setGlobal( tmp, at String.replace( @global(tmp),$,\\\\\$ ) ) @setGlobal( tmp, at String.replace( @global(tmp), @exec(echo \"),\\\\\" ) )
+ at setGlobal( tmp, at String.replace( @global(tmp), @exec(echo \`),\\\\\` ) )
+
+ echo "@global(tmp)" |while read REQ; do
+ echo -n "$REQ ";
+ done;
+ at execEnd </string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>list of activation requirements (contained in the 4th field) of selected profile</string>
+ </property>
+ </widget>
</widget>
<widget class="ExecButton">
<property name="name">
@@ -824,52 +870,28 @@ fi;</string>
<string>Add/Update profile whose details are shown</string>
</property>
</widget>
- <widget class="ExecButton">
+ <widget class="LineEdit">
<property name="name">
- <cstring>deleteProfile</cstring>
- </property>
- <property name="enabled">
- <bool>false</bool>
+ <cstring>nameCurrent</cstring>
</property>
<property name="geometry">
<rect>
- <x>430</x>
- <y>220</y>
- <width>90</width>
- <height>24</height>
+ <x>98</x>
+ <y>21</y>
+ <width>190</width>
+ <height>22</height>
</rect>
</property>
- <property name="text">
- <string>Delete profile</string>
+ <property name="populationText">
+ <string></string>
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>FILE="@listFileCurrent";
-NAME="@nameCurrent";
-
-TEMP=$(tempfile)
-cat "$FILE" | grep -v "^$NAME;" > $TEMP
-mv $TEMP $FILE</string>
+ <string>@widgetText</string>
</stringlist>
</property>
<property name="toolTip" stdset="0">
- <string>Delete profile whose details are shown</string>
- </property>
- </widget>
- <widget class="Label">
- <property name="name">
- <cstring>nameLabel</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>11</x>
- <y>21</y>
- <width>81</width>
- <height>22</height>
- </rect>
- </property>
- <property name="text">
- <string>Name:</string>
+ <string>1st field (=name) of selected profile</string>
</property>
</widget>
</widget>
@@ -894,38 +916,45 @@ mv $TEMP $FILE</string>
<string>@null</string>
</stringlist>
</property>
- <widget class="LineEdit">
+ <widget class="ComboBox">
+ <item>
+ <property name="text">
+ <string>></string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>>=</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string><</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string><=</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string><></string>
+ </property>
+ </item>
<property name="name">
- <cstring>kindRegexp</cstring>
+ <cstring>test</cstring>
</property>
<property name="geometry">
<rect>
- <x>170</x>
- <y>20</y>
- <width>220</width>
+ <x>110</x>
+ <y>80</y>
+ <width>50</width>
<height>22</height>
</rect>
</property>
- <property name="text">
- <string></string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@widgetText</string>
- </stringlist>
- </property>
- </widget>
- <widget class="LineEdit">
- <property name="name">
- <cstring>requirementRegexp</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>170</x>
- <y>50</y>
- <width>220</width>
- <height>21</height>
- </rect>
+ <property name="currentItem">
+ <number>0</number>
</property>
<property name="associations" stdset="0">
<stringlist>
@@ -935,12 +964,12 @@ mv $TEMP $FILE</string>
</widget>
<widget class="LineEdit">
<property name="name">
- <cstring>precedenceRegexp</cstring>
+ <cstring>kindRegexp</cstring>
</property>
<property name="geometry">
<rect>
<x>170</x>
- <y>80</y>
+ <y>20</y>
<width>220</width>
<height>22</height>
</rect>
@@ -948,95 +977,44 @@ mv $TEMP $FILE</string>
<property name="text">
<string></string>
</property>
- <property name="inputMask">
- <string></string>
- </property>
<property name="associations" stdset="0">
<stringlist>
<string>@widgetText</string>
</stringlist>
</property>
- </widget>
- <widget class="ComboBox">
- <property name="name">
- <cstring>userList</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>190</x>
- <y>110</y>
- <width>200</width>
- <height>22</height>
- </rect>
- </property>
- <property name="populationText">
- <string>@exec(cat /etc/passwd | cut --fields 1 --delimiter ':' | sort)</string>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@widgetText</string>
- </stringlist>
+ <property name="toolTip" stdset="0">
+ <string>Takes a regular expression</string>
</property>
</widget>
- <widget class="ComboBox">
- <item>
- <property name="text">
- <string>description</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>kind</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>location</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>name</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>precedence</string>
- </property>
- </item>
- <item>
- <property name="text">
- <string>requirements</string>
- </property>
- </item>
+ <widget class="LineEdit">
<property name="name">
- <cstring>sortField</cstring>
+ <cstring>requirementRegexp</cstring>
</property>
<property name="geometry">
<rect>
- <x>550</x>
- <y>110</y>
- <width>210</width>
- <height>22</height>
+ <x>170</x>
+ <y>50</y>
+ <width>220</width>
+ <height>21</height>
</rect>
</property>
- <property name="currentItem">
- <number>4</number>
- </property>
<property name="associations" stdset="0">
<stringlist>
<string>@widgetText</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>Takes a regular expression</string>
+ </property>
</widget>
<widget class="LineEdit">
<property name="name">
- <cstring>locationRegexp</cstring>
+ <cstring>nameRegexp</cstring>
</property>
<property name="geometry">
<rect>
<x>550</x>
- <y>80</y>
+ <y>20</y>
<width>210</width>
<height>22</height>
</rect>
@@ -1046,6 +1024,9 @@ mv $TEMP $FILE</string>
<string>@widgetText</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>Takes a regular expression</string>
+ </property>
</widget>
<widget class="LineEdit">
<property name="name">
@@ -1064,15 +1045,18 @@ mv $TEMP $FILE</string>
<string>@widgetText</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>Takes a regular expression</string>
+ </property>
</widget>
<widget class="LineEdit">
<property name="name">
- <cstring>nameRegexp</cstring>
+ <cstring>locationRegexp</cstring>
</property>
<property name="geometry">
<rect>
<x>550</x>
- <y>20</y>
+ <y>80</y>
<width>210</width>
<height>22</height>
</rect>
@@ -1082,134 +1066,70 @@ mv $TEMP $FILE</string>
<string>@widgetText</string>
</stringlist>
</property>
- </widget>
- <widget class="CheckBox">
- <property name="name">
- <cstring>kindFilter</cstring>
- </property>
- <property name="geometry">
- <rect>
- <x>10</x>
- <y>20</y>
- <width>160</width>
- <height>20</height>
- </rect>
- </property>
- <property name="focusPolicy">
- <enum>TabFocus</enum>
- </property>
- <property name="text">
- <string>kind matches</string>
- </property>
- <property name="checked">
- <bool>false</bool>
- </property>
- <property name="associations" stdset="0">
- <stringlist>
- <string>@null</string>
- <string></string>
- <string>@execBegin
-
-if(@String.isEmpty(@kindRegexp)); then
- echo "@null";
-else
- echo "--kind '@kindRegexp'";
-fi
-
- at execEnd</string>
- </stringlist>
+ <property name="toolTip" stdset="0">
+ <string>Takes a regular expression</string>
</property>
</widget>
- <widget class="CheckBox">
+ <widget class="LineEdit">
<property name="name">
- <cstring>requirementFilter</cstring>
+ <cstring>precedenceRegexp</cstring>
</property>
<property name="geometry">
<rect>
- <x>10</x>
- <y>50</y>
- <width>160</width>
- <height>20</height>
+ <x>170</x>
+ <y>80</y>
+ <width>220</width>
+ <height>22</height>
</rect>
</property>
- <property name="focusPolicy">
- <enum>TabFocus</enum>
- </property>
<property name="text">
- <string>requirement matches</string>
+ <string></string>
+ </property>
+ <property name="inputMask">
+ <string></string>
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>@null</string>
- <string></string>
- <string>@execBegin
-
-if(@String.isEmpty(@requirementRegexp)); then
- echo "@null";
-else
- echo "--requirement '@requirementRegexp'";
-fi
-
- at execEnd</string>
+ <string>@widgetText</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>Takes a numerical value (may be negative)</string>
+ </property>
</widget>
- <widget class="CheckBox">
+ <widget class="ComboBox">
<property name="name">
- <cstring>precedenceFilter</cstring>
+ <cstring>userList</cstring>
</property>
<property name="geometry">
<rect>
- <x>10</x>
- <y>80</y>
- <width>100</width>
- <height>20</height>
+ <x>190</x>
+ <y>110</y>
+ <width>200</width>
+ <height>22</height>
</rect>
</property>
- <property name="focusPolicy">
- <enum>TabFocus</enum>
- </property>
- <property name="text">
- <string>precedence</string>
+ <property name="populationText">
+ <string>@exec(cat /etc/passwd | cut --fields 1 --delimiter ':' | sort)</string>
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>@null</string>
- <string></string>
- <string>@execBegin
-
-if(@String.isEmpty(@precedenceRegexp)); then
- echo "@null";
-elif test "@test" = '>'; then
- echo "--precedence 'gt @precedenceRegexp'";
-elif test "@test" = '>='; then
- echo "--precedence 'ge @precedenceRegexp'";
-elif test "@test" = '<'; then
- echo "--precedence 'lt @precedenceRegexp'";
-elif test "@test" = '<='; then
- echo "--precedence 'le @precedenceRegexp'";
-elif test "@test" = '='; then
- echo "--precedence 'eq @precedenceRegexp'";
-elif test "@test" = '<>'; then
- echo "--precedence 'ne @precedenceRegexp'";
-fi
-
- at execEnd</string>
+ <string>@widgetText</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>list of user accounts on this system</string>
+ </property>
</widget>
<widget class="CheckBox">
<property name="name">
- <cstring>userFilter</cstring>
- </property>
- <property name="enabled">
- <bool>true</bool>
+ <cstring>kindFilter</cstring>
</property>
<property name="geometry">
<rect>
<x>10</x>
- <y>110</y>
- <width>180</width>
+ <y>20</y>
+ <width>160</width>
<height>20</height>
</rect>
</property>
@@ -1217,7 +1137,10 @@ fi
<enum>TabFocus</enum>
</property>
<property name="text">
- <string>requirements are met for</string>
+ <string>kind matches</string>
+ </property>
+ <property name="checked">
+ <bool>false</bool>
</property>
<property name="associations" stdset="0">
<stringlist>
@@ -1225,15 +1148,18 @@ fi
<string></string>
<string>@execBegin
-if(@String.isEmpty(@userList)); then
+if(@String.isEmpty(@kindRegexp)); then
echo "@null";
else
- echo "--user '@userList'";
+ echo "--kind '@kindRegexp'";
fi
@execEnd</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>When checked only profiles whose 5th (=kind) field matches the given regular expression are shown</string>
+ </property>
</widget>
<widget class="CheckBox">
<property name="name">
@@ -1268,6 +1194,9 @@ fi
@execEnd</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>When checked only profiles whose 1st (=name) field matches the given regular expression are shown</string>
+ </property>
</widget>
<widget class="CheckBox">
<property name="name">
@@ -1299,6 +1228,9 @@ fi
@execEnd</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>When checked only profiles whose 6th (=description) field matches the given regular expression are shown</string>
+ </property>
</widget>
<widget class="CheckBox">
<property name="name">
@@ -1333,6 +1265,49 @@ fi
@execEnd</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>When checked only profiles whose 2nd (=location) field matches the given regular expression are shown</string>
+ </property>
+ </widget>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>userFilter</cstring>
+ </property>
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>110</y>
+ <width>180</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>requirements are met for</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>@execBegin
+
+if(@String.isEmpty(@userList)); then
+ echo "@null";
+else
+ echo "--user '@userList'";
+fi
+
+ at execEnd</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>When checked only profiles whose requirements are met for the selected user are shown</string>
+ </property>
</widget>
<widget class="Label">
<property name="name">
@@ -1357,52 +1332,150 @@ fi
<string>--sort-key @sortField</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>Shown profiles are sorted on the contents of the selected field</string>
+ </property>
</widget>
<widget class="ComboBox">
<item>
<property name="text">
- <string>></string>
+ <string>description</string>
</property>
</item>
<item>
<property name="text">
- <string>>=</string>
+ <string>kind</string>
</property>
</item>
<item>
<property name="text">
- <string><</string>
+ <string>location</string>
</property>
</item>
<item>
<property name="text">
- <string><=</string>
+ <string>name</string>
</property>
</item>
<item>
<property name="text">
- <string><></string>
+ <string>precedence</string>
+ </property>
+ </item>
+ <item>
+ <property name="text">
+ <string>requirements</string>
</property>
</item>
<property name="name">
- <cstring>test</cstring>
+ <cstring>sortField</cstring>
</property>
<property name="geometry">
<rect>
- <x>110</x>
- <y>80</y>
- <width>50</width>
+ <x>550</x>
+ <y>110</y>
+ <width>210</width>
<height>22</height>
</rect>
</property>
<property name="currentItem">
- <number>0</number>
+ <number>4</number>
</property>
<property name="associations" stdset="0">
<stringlist>
<string>@widgetText</string>
</stringlist>
</property>
+ <property name="toolTip" stdset="0">
+ <string>Shown profiles are sorted on the contents of the selected field</string>
+ </property>
+ </widget>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>requirementFilter</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>50</y>
+ <width>160</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>requirement matches</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>@execBegin
+
+if(@String.isEmpty(@requirementRegexp)); then
+ echo "@null";
+else
+ echo "--requirement '@requirementRegexp'";
+fi
+
+ at execEnd</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>When checked only profiles whose 4th (=requirements) field matches the given regular expression are shown</string>
+ </property>
+ </widget>
+ <widget class="CheckBox">
+ <property name="name">
+ <cstring>precedenceFilter</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>80</y>
+ <width>100</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="focusPolicy">
+ <enum>TabFocus</enum>
+ </property>
+ <property name="text">
+ <string>precedence</string>
+ </property>
+ <property name="associations" stdset="0">
+ <stringlist>
+ <string>@null</string>
+ <string></string>
+ <string>@execBegin
+
+if(@String.isEmpty(@precedenceRegexp)); then
+ echo "@null";
+elif test "@test" = '>'; then
+ echo "--precedence 'gt @precedenceRegexp'";
+elif test "@test" = '>='; then
+ echo "--precedence 'ge @precedenceRegexp'";
+elif test "@test" = '<'; then
+ echo "--precedence 'lt @precedenceRegexp'";
+elif test "@test" = '<='; then
+ echo "--precedence 'le @precedenceRegexp'";
+elif test "@test" = '='; then
+ echo "--precedence 'eq @precedenceRegexp'";
+elif test "@test" = '<>'; then
+ echo "--precedence 'ne @precedenceRegexp'";
+fi
+
+ at execEnd</string>
+ </stringlist>
+ </property>
+ <property name="toolTip" stdset="0">
+ <string>When checked only profiles whose precedence value satifies the given comparison are shown</string>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string></string>
+ </property>
</widget>
</widget>
<widget class="ListBox">
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git
More information about the debian-edu-commits
mailing list