diff options
author | Timothy Pearson <[email protected]> | 2012-12-23 17:29:08 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-12-23 17:29:08 -0600 |
commit | 0ef12d60c85f58af9052d83ce1945d71afe16cb4 (patch) | |
tree | a82f5c57d032227ed0a520f5771ec37f10779d28 /kcontrol | |
parent | 55c907ad0e031f2ceddb2693761b747395137ac0 (diff) | |
download | tdebase-0ef12d60c85f58af9052d83ce1945d71afe16cb4.tar.gz tdebase-0ef12d60c85f58af9052d83ce1945d71afe16cb4.zip |
Add preliminary taskbar task state support
Diffstat (limited to 'kcontrol')
-rw-r--r-- | kcontrol/kicker/menutab.ui | 1298 | ||||
-rw-r--r-- | kcontrol/taskbar/kcmtaskbar.cpp | 20 | ||||
-rw-r--r-- | kcontrol/taskbar/kcmtaskbar.h | 2 | ||||
-rw-r--r-- | kcontrol/taskbar/kcmtaskbarui.ui | 114 |
4 files changed, 745 insertions, 689 deletions
diff --git a/kcontrol/kicker/menutab.ui b/kcontrol/kicker/menutab.ui index 73130771b..49c2502b6 100644 --- a/kcontrol/kicker/menutab.ui +++ b/kcontrol/kicker/menutab.ui @@ -1,694 +1,656 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> -<class>MenuTabBase</class> -<widget class="TQWidget"> - <property name="name"> - <cstring>MenuTabBase</cstring> - </property> - <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>923</width> - <height>649</height> - </rect> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <widget class="TQLayoutWidget"> - <property name="name"> - <cstring>layout5</cstring> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="TQLabel"> - <property name="name"> - <cstring>textLabel1</cstring> - </property> - <property name="text"> - <string>Start menu style:</string> - </property> - <property name="buddy" stdset="0"> - <cstring>comboMenuStyle</cstring> - </property> - </widget> - <widget class="TQComboBox"> - <item> - <property name="text"> - <string>Kickoff</string> - </property> - </item> - <item> - <property name="text"> - <string>Trinity Classic</string> - </property> - </item> - <property name="name"> - <cstring>m_comboMenuStyle</cstring> - </property> - </widget> - <spacer> - <property name="name"> - <cstring>spacer4</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>40</width> - <height>20</height> - </size> - </property> - </spacer> - </hbox> - </widget> - <widget class="TQGroupBox"> - <property name="name"> - <cstring>m_kmenuGroup</cstring> - </property> - <property name="title"> - <string>TDE Menu</string> - </property> - <hbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="TQLayoutWidget"> - <property name="name"> - <cstring>layout7</cstring> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="TQCheckBox" row="0" column="0"> - <property name="name"> - <cstring>m_openOnHover</cstring> - </property> - <property name="text"> - <string>Open menu on mouse hover</string> - </property> - </widget> - <widget class="TQButtonGroup"> - <property name="name"> - <cstring>kcfg_MenuEntryFormat</cstring> - </property> - <property name="lineWidth"> - <number>0</number> - </property> - <property name="title"> - <string>Menu item format:</string> - </property> - <property name="flat"> - <bool>true</bool> - </property> - <property name="whatsThis" stdset="0"> - <string>Here you can choose how menu entries are shown.</string> - </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="TQRadioButton" row="1" column="1"> - <property name="name"> - <cstring>m_formatSimple</cstring> - </property> - <property name="text"> - <string>&Name only</string> - </property> - <property name="whatsThis" stdset="0"> - <string>When this option is selected, items in the TDE Menu will appear with the application's name next to the icon.</string> - </property> - </widget> - <widget class="TQRadioButton" row="2" column="1"> - <property name="name"> - <cstring>m_formatNameDesc</cstring> - </property> - <property name="text"> - <string>Name - &Description</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - <property name="whatsThis" stdset="0"> - <string>When this option is selected, items in the TDE Menu will appear with the application's name and a brief description next to the icon.</string> - </property> - </widget> - <widget class="TQRadioButton" row="3" column="1"> - <property name="name"> - <cstring>m_formatDescOnly</cstring> - </property> - <property name="text"> - <string>D&escription only</string> - </property> - <property name="whatsThis" stdset="0"> - <string>When this option is selected, items in the TDE Menu will appear with the application's brief description next to the icon.</string> - </property> - </widget> - <widget class="TQRadioButton" row="4" column="1"> - <property name="name"> - <cstring>m_formDescName</cstring> - </property> - <property name="focusPolicy"> - <enum>NoFocus</enum> - </property> - <property name="text"> - <string>Des&cription (Name)</string> - </property> - <property name="whatsThis" stdset="0"> - <string>When this option is selected, items in the TDE Menu will appear with a brief description and the application's name in brackets next to the icon.</string> - </property> - </widget> - </grid> - </widget> - <widget class="TQCheckBox"> - <property name="name"> - <cstring>kcfg_UseSidePixmap</cstring> - </property> - <property name="text"> - <string>Show side ima&ge</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - <property name="whatsThis" stdset="0"> - <string><qt>When this option is selected an image will appear down the left-hand side of the TDE Menu. The image will be tinted according to your color settings. - - <p><b>Tip</b>: You can customize the image that appears in the TDE Menu by putting an image file called kside.png and a tileable image file called kside_tile.png in $TDEHOME/share/apps/kicker/pics.</qt></string> - </property> - </widget> - <spacer> - <property name="name"> - <cstring>spacer8</cstring> - </property> - <property name="orientation"> - <enum>Vertical</enum> - </property> - <property name="sizeType"> - <enum>MinimumExpanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>0</height> - </size> - </property> - </spacer> - <widget class="TQCheckBox" row="0" column="0" colspan="2"> - <property name="name"> - <cstring>kcfg_ShowKMenuText</cstring> - </property> - <property name="text"> - <string>Display text in TDE Menu button</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - <property name="whatsThis" stdset="0"> - <string><qt>When this option is selected the text below will be shown in the TDE Menu button.</string> - </property> - </widget> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <property name="margin"> - <number>0</number> - </property> - <widget class="TQLineEdit" row="0" column="1" colspan="3"> - <property name="name"> - <cstring>kcfg_KMenuText</cstring> - </property> - <property name="maxLength"> - <number>35</number> - </property> - </widget> - <widget class="TQLabel" row="3" column="0" colspan="2"> - <property name="name"> - <cstring>TextLabel1_3_3_2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>TDE Menu button icon:</string> - </property> - </widget> - <widget class="KPushButton" row="3" column="3" colspan="2"> - <property name="name"> - <cstring>btnCustomKMenuIcon</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>0</hsizetype> - <vsizetype>0</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>26</width> - <height>26</height> - </size> - </property> - <property name="maximumSize"> - <size> - <width>26</width> - <height>26</height> - </size> - </property> - <property name="acceptDrops"> - <bool>false</bool> - </property> - <property name="text"> - <string></string> - </property> - </widget> - <widget class="TQLabel" row="0" column="0"> - <property name="name"> - <cstring>TextLabel1_3_3_2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Text:</string> - </property> - </widget> - <widget class="TQLabel" row="2" column="0"> - <property name="name"> - <cstring>TextLabel1_3_3_2</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>4</hsizetype> - <vsizetype>1</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>Font:</string> - </property> - </widget> - <widget class="KFontRequester" row="2" column="1" rowspan="1" colspan="3"> - <property name="name"> - <cstring>kcfg_ButtonFont</cstring> - </property> - </widget> - <spacer row="3" column="3"> - <property name="name"> - <cstring>spacer6</cstring> - </property> - <property name="orientation"> - <enum>Vertical</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> - </grid> - <spacer> - <property name="name"> - <cstring>spacer8</cstring> - </property> - <property name="orientation"> - <enum>Vertical</enum> - </property> - <property name="sizeType"> - <enum>MinimumExpanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>0</height> - </size> - </property> - </spacer> - - <widget class="TQPushButton"> - <property name="name"> - <cstring>m_editKMenuButton</cstring> - </property> - <property name="text"> - <string>Edit &TDE Menu</string> - </property> - <property name="whatsThis" stdset="0"> - <string>Start the editor for the TDE Menu. Here you can add, edit, remove and hide applications.</string> - </property> - </widget> - </vbox> - </widget> - <widget class="KListView"> - <column> - <property name="text"> - <string>Optional Menus</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>true</bool> - </property> - </column> - <property name="name"> - <cstring>m_subMenus</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>7</hsizetype> - <vsizetype>7</vsizetype> - <horstretch>0</horstretch> - <verstretch>1</verstretch> - </sizepolicy> - </property> - <property name="minimumSize"> - <size> - <width>0</width> - <height>0</height> - </size> - </property> - <property name="fullWidth"> - <bool>true</bool> - </property> - <property name="whatsThis" stdset="0"> - <string>This is a list of the dynamic menus that can be displayed in the TDE menu in addition to the normal applications. Use the checkboxes to add or remove menus.</string> - </property> - </widget> - </hbox> - </widget> - <grid> + <class>MenuTabBase</class> + <widget class="TQWidget"> + <property name="name"> + <cstring>MenuTabBase</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>923</width> + <height>649</height> + </rect> + </property> + <vbox> <property name="name"> <cstring>unnamed</cstring> </property> <property name="margin"> <number>0</number> - </property> - <widget class="TQGroupBox" row="0" column="0"> + </property> + <widget class="TQLayoutWidget"> + <property name="name"> + <cstring>layout5</cstring> + </property> + <hbox> <property name="name"> - <cstring>m_browserGroup</cstring> + <cstring>unnamed</cstring> </property> - <property name="title"> - <string>QuickBrowser Menus</string> + <widget class="TQLabel"> + <property name="name"> + <cstring>textLabel1</cstring> </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> + <property name="text"> + <string>TDE menu style:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>comboMenuStyle</cstring> + </property> + </widget> + <widget class="TQComboBox"> + <item> + <property name="text"> + <string>Kickoff</string> + </property> + </item> + <item> + <property name="text"> + <string>Trinity Classic</string> </property> - <widget class="TQLayoutWidget" row="1" column="0"> + </item> + <property name="name"> + <cstring>m_comboMenuStyle</cstring> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </hbox> + </widget> + <widget class="TQGroupBox"> + <property name="name"> + <cstring>m_kmenuGroup</cstring> + </property> + <property name="title"> + <string>TDE Menu</string> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQLayoutWidget"> <property name="name"> - <cstring>Layout3</cstring> + <cstring>layout7</cstring> </property> - <hbox> + <vbox> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="TQLabel"> - <property name="name"> - <cstring>m_maxQuickBrowserItemsLabel</cstring> - </property> - <property name="text"> - <string>Ma&ximum number of entries:</string> - </property> - <property name="buddy" stdset="0"> - <cstring>kcfg_MaxEntries2</cstring> - </property> - <property name="whatsThis" stdset="0"> - <string>When browsing directories that contain a lot of files, the QuickBrowser can sometimes hide your whole desktop. Here you can limit the number of entries shown at a time in the QuickBrowser. This is particularly useful for low screen resolutions.</string> - </property> + <widget class="TQButtonGroup"> + <property name="name"> + <cstring>kcfg_MenuEntryFormat</cstring> + </property> + <property name="lineWidth"> + <number>0</number> + </property> + <property name="title"> + <string>Menu item format:</string> + </property> + <property name="flat"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string>Here you can choose how menu entries are shown.</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQRadioButton" row="1" column="1"> + <property name="name"> + <cstring>m_formatSimple</cstring> + </property> + <property name="text"> + <string>&Name only</string> + </property> + <property name="whatsThis" stdset="0"> + <string>When this option is selected, items in the TDE Menu will appear with the application's name next to the icon.</string> + </property> + </widget> + <widget class="TQRadioButton" row="2" column="1"> + <property name="name"> + <cstring>m_formatNameDesc</cstring> + </property> + <property name="text"> + <string>Name - &Description</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string>When this option is selected, items in the TDE Menu will appear with the application's name and a brief description next to the icon.</string> + </property> + </widget> + <widget class="TQRadioButton" row="3" column="1"> + <property name="name"> + <cstring>m_formatDescOnly</cstring> + </property> + <property name="text"> + <string>D&escription only</string> + </property> + <property name="whatsThis" stdset="0"> + <string>When this option is selected, items in the TDE Menu will appear with the application's brief description next to the icon.</string> + </property> + </widget> + <widget class="TQRadioButton" row="4" column="1"> + <property name="name"> + <cstring>m_formDescName</cstring> + </property> + <property name="focusPolicy"> + <enum>NoFocus</enum> + </property> + <property name="text"> + <string>Des&cription (Name)</string> + </property> + <property name="whatsThis" stdset="0"> + <string>When this option is selected, items in the TDE Menu will appear with a brief description and the application's name in brackets next to the icon.</string> + </property> + </widget> + </grid> </widget> - <widget class="KIntNumInput"> - <property name="name"> - <cstring>kcfg_MaxEntries2</cstring> - </property> - <property name="value"> - <number>30</number> - </property> - <property name="minValue"> - <number>10</number> - </property> - <property name="maxValue"> - <number>100</number> + <widget class="TQPushButton" colspan="4"> + <property name="name"> + <cstring>m_editKMenuButton</cstring> + </property> + <property name="text"> + <string>Edit &TDE Menu</string> + </property> + <property name="whatsThis" stdset="0"> + <string>Start the editor for the TDE Menu. Here you can add, edit, remove and hide applications.</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>Spacer10</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </vbox> + </widget> + <widget class="KListView"> + <column> + <property name="text"> + <string>Optional Menus</string> </property> - <property name="whatsThis" stdset="0"> - <string>When browsing directories that contain a lot of files, the QuickBrowser can sometimes hide your whole desktop. Here you can limit the number of entries shown at a time in the QuickBrowser. This is particularly useful for low screen resolutions.</string> + <property name="clickable"> + <bool>true</bool> </property> - </widget> - </hbox> - </widget> - <widget class="TQCheckBox" row="0" column="0"> - <property name="name"> - <cstring>kcfg_ShowHiddenFiles</cstring> - </property> - <property name="text"> - <string>Show hidden fi&les</string> - </property> - <property name="checked"> + <property name="resizable"> <bool>true</bool> - </property> - <property name="whatsThis" stdset="0"> - <string>If this option is enabled, hidden files (i.e. files beginning with a dot) will be shown in the QuickBrowser menus.</string> - </property> - </widget> - <spacer row="0" column="1" rowspan="2" colspan="1"> + </property> + </column> <property name="name"> - <cstring>Spacer7</cstring> + <cstring>m_subMenus</cstring> </property> - <property name="orientation"> - <enum>Horizontal</enum> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>7</vsizetype> + <horstretch>0</horstretch> + <verstretch>1</verstretch> + </sizepolicy> </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> + <property name="minimumSize"> <size> - <width>20</width> + <width>0</width> <height>0</height> </size> </property> - </spacer> - </grid> - </widget> - <widget class="TQGroupBox" row="1" column="0"> - <property name="name"> - <cstring>m_recentGroup</cstring> - </property> - <property name="title"> - <string>Recent Documents Menu</string> - </property> - <grid> + <property name="fullWidth"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string>This is a list of the dynamic menus that can be displayed in the TDE menu in addition to the normal applications. Use the checkboxes to add or remove menus.</string> + </property> + </widget> + <widget class="TQLayoutWidget" row="2" column="0" colspan="2"> <property name="name"> - <cstring>unnamed</cstring> + <cstring>Layout5</cstring> </property> - <widget class="TQLayoutWidget" row="1" column="0"> - <property name="name"> - <cstring>Layout3</cstring> - </property> - <hbox> + <vbox> + <widget class="TQCheckBox"> + <property name="name"> + <cstring>m_openOnHover</cstring> + </property> + <property name="text"> + <string>Open menu on mouse hover</string> + </property> + </widget> + <widget class="TQCheckBox"> + <property name="name"> + <cstring>kcfg_UseSidePixmap</cstring> + </property> + <property name="text"> + <string>Show side ima&ge</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string><qt>When this option is selected an image will appear down the left-hand side of the TDE Menu. The image will be tinted according to your color settings. + + <p><b>Tip</b>: You can customize the image that appears in the TDE Menu by putting an image file called kside.png and a tileable image file called kside_tile.png in $TDEHOME/share/apps/kicker/pics.</qt></string> + </property> + </widget> + <widget class="TQCheckBox"> + <property name="name"> + <cstring>kcfg_ShowKMenuText</cstring> + </property> + <property name="text"> + <string>Display text in menu button</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string><qt>When this option is selected the text below will be shown in the TDE Menu button.</string> + </property> + </widget> + <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="TQLabel"> + <property name="margin"> + <number>0</number> + </property> + <widget class="TQLineEdit" row="0" column="1" colspan="3"> <property name="name"> - <cstring>m_maxRecentDocumentsItemsLabel</cstring> + <cstring>kcfg_KMenuText</cstring> + </property> + <property name="maxLength"> + <number>35</number> + </property> + </widget> + <widget class="TQLabel" row="3" column="0" colspan="2"> + <property name="name"> + <cstring>TextLabel1_3_3_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>4</hsizetype> + <vsizetype>1</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> <property name="text"> - <string>Ma&ximum number of entries:</string> + <string>Menu button icon:</string> </property> - <property name="buddy" stdset="0"> - <cstring>kcfg_MaxEntries2</cstring> + </widget> + <widget class="KPushButton" row="3" column="3" colspan="1"> + <property name="name"> + <cstring>btnCustomKMenuIcon</cstring> </property> - <property name="whatsThis" stdset="0"> - <string>This sets the maximum number of recently accessed documents stored for fast retrieval.</string> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>26</width> + <height>26</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>26</width> + <height>26</height> + </size> + </property> + <property name="acceptDrops"> + <bool>false</bool> + </property> + <property name="text"> + <string></string> </property> </widget> - <widget class="KIntNumInput"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> - <cstring>maxrecentdocs</cstring> + <cstring>TextLabel1_3_3_2</cstring> </property> - <property name="value"> - <number>10</number> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>4</hsizetype> + <vsizetype>1</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - <property name="minValue"> - <number>0</number> + <property name="text"> + <string>Text:</string> </property> - <property name="maxValue"> - <number>100</number> + </widget> + <widget class="TQLabel" row="2" column="0"> + <property name="name"> + <cstring>TextLabel1_3_3_2</cstring> </property> - <property name="whatsThis" stdset="0"> - <string>This sets the maximum number of recently accessed documents stored for fast retrieval.</string> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>4</hsizetype> + <vsizetype>1</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Font:</string> </property> </widget> - </hbox> - </widget> - <spacer row="0" column="1" rowspan="2" colspan="1"> - <property name="name"> - <cstring>Spacer7</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>0</height> - </size> - </property> - </spacer> - </grid> + <widget class="KFontRequester" row="2" column="1" rowspan="1" colspan="3"> + <property name="name"> + <cstring>kcfg_ButtonFont</cstring> + </property> + </widget> + <spacer row="4" column="3"> + <property name="name"> + <cstring>spacer6</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + </grid> + <spacer> + <property name="name"> + <cstring>spacer8</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>MinimumExpanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </vbox> + </widget> + </hbox> </widget> - <widget class="TQButtonGroup" row="0" column="1" rowspan="1"> - <property name="name"> - <cstring>m_pRecentOrderGroup</cstring> - </property> - <property name="title"> - <string>QuickStart Menu Items</string> - </property> - <grid> - <property name="name"> + <grid> + <property name="name"> <cstring>unnamed</cstring> - </property> - <widget class="TQLayoutWidget" row="2" column="0"> + </property> + <property name="margin"> + <number>0</number> + </property> + <widget class="TQGroupBox" row="0" column="0"> <property name="name"> - <cstring>Layout4</cstring> + <cstring>m_browserGroup</cstring> + </property> + <property name="title"> + <string>QuickBrowser Menus</string> </property> - <hbox> + <grid> <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="TQLabel"> + <widget class="TQLayoutWidget" row="1" column="0"> <property name="name"> - <cstring>TextLabel2</cstring> - </property> - <property name="text"> - <string>Maxim&um number of entries:</string> - </property> - <property name="buddy" stdset="0"> - <cstring>kcfg_NumVisibleEntries</cstring> - </property> - <property name="whatsThis" stdset="0"> - <string>This option allows you to define the maximum number of applications that should be displayed in the QuickStart menu area.</string> + <cstring>Layout3</cstring> </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQLabel"> + <property name="name"> + <cstring>m_maxQuickBrowserItemsLabel</cstring> + </property> + <property name="text"> + <string>Ma&ximum number of entries:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>kcfg_MaxEntries2</cstring> + </property> + <property name="whatsThis" stdset="0"> + <string>When browsing directories that contain a lot of files, the QuickBrowser can sometimes hide your whole desktop. Here you can limit the number of entries shown at a time in the QuickBrowser. This is particularly useful for low screen resolutions.</string> + </property> + </widget> + <widget class="KIntNumInput"> + <property name="name"> + <cstring>kcfg_MaxEntries2</cstring> + </property> + <property name="value"> + <number>30</number> + </property> + <property name="minValue"> + <number>10</number> + </property> + <property name="maxValue"> + <number>100</number> + </property> + <property name="whatsThis" stdset="0"> + <string>When browsing directories that contain a lot of files, the QuickBrowser can sometimes hide your whole desktop. Here you can limit the number of entries shown at a time in the QuickBrowser. This is particularly useful for low screen resolutions.</string> + </property> + </widget> + </hbox> </widget> - <widget class="KIntNumInput"> + <widget class="TQCheckBox" row="0" column="0"> <property name="name"> - <cstring>kcfg_NumVisibleEntries</cstring> + <cstring>kcfg_ShowHiddenFiles</cstring> </property> - <property name="value"> - <number>5</number> - </property> - <property name="minValue"> - <number>0</number> + <property name="text"> + <string>Show hidden fi&les</string> </property> - <property name="maxValue"> - <number>20</number> + <property name="checked"> + <bool>true</bool> </property> <property name="whatsThis" stdset="0"> - <string>This option allows you to define how many applications should be displayed at most in the QuickStart menu area.</string> + <string>If this option is enabled, hidden files (i.e. files beginning with a dot) will be shown in the QuickBrowser menus.</string> </property> </widget> - </hbox> - </widget> - <widget class="TQRadioButton" row="0" column="0"> - <property name="name"> - <cstring>kcfg_RecentVsOften</cstring> - </property> - <property name="text"> - <string>Show the &applications most recently used</string> - </property> - <property name="checked"> - <bool>true</bool> - </property> - <property name="whatsThis" stdset="0"> - <string>When this option is selected the QuickStart menu area will be filled with the applications you have used most recently.</string> - </property> - </widget> - <widget class="TQRadioButton" row="1" column="0"> - <property name="name"> - <cstring>m_showFrequent</cstring> - </property> - <property name="text"> - <string>Show the applications most fre&quently used</string> - </property> - <property name="whatsThis" stdset="0"> - <string>When this option is selected the QuickStart menu area will be filled with the applications you use most frequently.</string> - </property> - </widget> - <spacer row="0" column="1" rowspan="3" colspan="1"> + <spacer row="0" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>Spacer7</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </grid> + </widget> + <widget class="TQGroupBox" row="1" column="0"> <property name="name"> - <cstring>Spacer8</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> + <cstring>m_recentGroup</cstring> </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>20</width> - <height>0</height> - </size> + <property name="title"> + <string>Recent Documents Menu</string> </property> - </spacer> - </grid> - </widget> - <widget class="TQButtonGroup" row="1" column="1" rowspan="1"> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQLayoutWidget" row="1" column="0"> + <property name="name"> + <cstring>Layout3</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQLabel"> + <property name="name"> + <cstring>m_maxRecentDocumentsItemsLabel</cstring> + </property> + <property name="text"> + <string>Ma&ximum number of entries:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>kcfg_MaxEntries2</cstring> + </property> + <property name="whatsThis" stdset="0"> + <string>This sets the maximum number of recently accessed documents stored for fast retrieval.</string> + </property> + </widget> + <widget class="KIntNumInput"> + <property name="name"> + <cstring>maxrecentdocs</cstring> + </property> + <property name="value"> + <number>10</number> + </property> + <property name="minValue"> + <number>0</number> + </property> + <property name="maxValue"> + <number>100</number> + </property> + <property name="whatsThis" stdset="0"> + <string>This sets the maximum number of recently accessed documents stored for fast retrieval.</string> + </property> + </widget> + </hbox> + </widget> + <spacer row="0" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>Spacer7</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </grid> + </widget> + <widget class="TQButtonGroup" row="0" column="1" rowspan="1"> <property name="name"> - <cstring>m_pSearchGroup</cstring> + <cstring>m_pRecentOrderGroup</cstring> </property> <property name="title"> - <string>TDE Menu Search</string> + <string>QuickStart Menu Items</string> </property> - <grid> - <property name="name"> + <grid> + <property name="name"> <cstring>unnamed</cstring> - </property> - <widget class="TQCheckBox"> + </property> + <widget class="TQLayoutWidget" row="2" column="0"> + <property name="name"> + <cstring>Layout4</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQLabel"> + <property name="name"> + <cstring>TextLabel2</cstring> + </property> + <property name="text"> + <string>Maxim&um number of entries:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>kcfg_NumVisibleEntries</cstring> + </property> + <property name="whatsThis" stdset="0"> + <string>This option allows you to define the maximum number of applications that should be displayed in the QuickStart menu area.</string> + </property> + </widget> + <widget class="KIntNumInput"> + <property name="name"> + <cstring>kcfg_NumVisibleEntries</cstring> + </property> + <property name="value"> + <number>5</number> + </property> + <property name="minValue"> + <number>0</number> + </property> + <property name="maxValue"> + <number>20</number> + </property> + <property name="whatsThis" stdset="0"> + <string>This option allows you to define how many applications should be displayed at most in the QuickStart menu area.</string> + </property> + </widget> + </hbox> + </widget> + <widget class="TQRadioButton" row="0" column="0"> <property name="name"> - <cstring>kcfg_UseSearchBar</cstring> + <cstring>kcfg_RecentVsOften</cstring> </property> <property name="text"> - <string>Show search field in TDE Menu</string> + <string>Show the &applications most recently used</string> </property> <property name="checked"> <bool>true</bool> </property> <property name="whatsThis" stdset="0"> - <string><qt>When this option is selected a text-based search field will appear in the TDE Menu.</qt></string> + <string>When this option is selected the QuickStart menu area will be filled with the applications you have used most recently.</string> + </property> + </widget> + <widget class="TQRadioButton" row="1" column="0"> + <property name="name"> + <cstring>m_showFrequent</cstring> + </property> + <property name="text"> + <string>Show the applications most fre&quently used</string> + </property> + <property name="whatsThis" stdset="0"> + <string>When this option is selected the QuickStart menu area will be filled with the applications you use most frequently.</string> </property> - </widget> - <spacer row="0" column="1" rowspan="3" colspan="1"> + </widget> + <spacer row="0" column="1" rowspan="3" colspan="1"> <property name="name"> <cstring>Spacer8</cstring> </property> @@ -700,40 +662,84 @@ </property> <property name="sizeHint"> <size> - <width>20</width> - <height>0</height> + <width>20</width> + <height>0</height> </size> </property> - </spacer> - </grid> - </widget> - </grid> - </vbox> -</widget> -<customwidgets> -</customwidgets> -<tabstops> - <tabstop>m_formatSimple</tabstop> - <tabstop>m_formatNameDesc</tabstop> - <tabstop>m_formDescName</tabstop> - <tabstop>kcfg_UseSidePixmap</tabstop> - <tabstop>m_editKMenuButton</tabstop> - <tabstop>m_subMenus</tabstop> - <tabstop>kcfg_ShowHiddenFiles</tabstop> - <tabstop>kcfg_MaxEntries2</tabstop> - <tabstop>kcfg_RecentVsOften</tabstop> - <tabstop>m_showFrequent</tabstop> - <tabstop>kcfg_NumVisibleEntries</tabstop> -</tabstops> -<includes> - <include location="global" impldecl="in implementation">klistview.h</include> - <include location="global" impldecl="in implementation">knuminput.h</include> - <include location="local" impldecl="in implementation">kdialog.h</include> -</includes> -<layoutdefaults spacing="6" margin="11"/> -<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> -<includehints> - <includehint>klistview.h</includehint> - <includehint>knuminput.h</includehint> -</includehints> + </spacer> + </grid> + </widget> + <widget class="TQButtonGroup" row="1" column="1" rowspan="1"> + <property name="name"> + <cstring>m_pSearchGroup</cstring> + </property> + <property name="title"> + <string>TDE Menu Search</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="TQCheckBox"> + <property name="name"> + <cstring>kcfg_UseSearchBar</cstring> + </property> + <property name="text"> + <string>Show search field in TDE Menu</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + <property name="whatsThis" stdset="0"> + <string><qt>When this option is selected a text-based search field will appear in the TDE Menu.</qt></string> + </property> + </widget> + <spacer row="0" column="1" rowspan="3" colspan="1"> + <property name="name"> + <cstring>Spacer8</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>0</height> + </size> + </property> + </spacer> + </grid> + </widget> + </grid> + </vbox> + </widget> + <customwidgets> + </customwidgets> + <tabstops> + <tabstop>m_formatSimple</tabstop> + <tabstop>m_formatNameDesc</tabstop> + <tabstop>m_formDescName</tabstop> + <tabstop>kcfg_UseSidePixmap</tabstop> + <tabstop>m_editKMenuButton</tabstop> + <tabstop>m_subMenus</tabstop> + <tabstop>kcfg_ShowHiddenFiles</tabstop> + <tabstop>kcfg_MaxEntries2</tabstop> + <tabstop>kcfg_RecentVsOften</tabstop> + <tabstop>m_showFrequent</tabstop> + <tabstop>kcfg_NumVisibleEntries</tabstop> + </tabstops> + <includes> + <include location="global" impldecl="in implementation">klistview.h</include> + <include location="global" impldecl="in implementation">knuminput.h</include> + <include location="local" impldecl="in implementation">kdialog.h</include> + </includes> + <layoutdefaults spacing="6" margin="11"/> + <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> + <includehints> + <includehint>klistview.h</includehint> + <includehint>knuminput.h</includehint> + </includehints> </UI> diff --git a/kcontrol/taskbar/kcmtaskbar.cpp b/kcontrol/taskbar/kcmtaskbar.cpp index 22ec10b14..cd1c67a1d 100644 --- a/kcontrol/taskbar/kcmtaskbar.cpp +++ b/kcontrol/taskbar/kcmtaskbar.cpp @@ -118,6 +118,25 @@ TQStringList TaskbarConfig::i18nGroupModeList() return i18nList; } +// These are the strings that are actually stored in the config file. +const TQStringList& TaskbarConfig::showTaskStatesList() +{ + static TQStringList list( + TQStringList() << I18N_NOOP("Any") << I18N_NOOP("Only Stopped") + << I18N_NOOP("Only Running")); + return list; +} + +// Get a translated version of the above string list. +TQStringList TaskbarConfig::i18nShowTaskStatesList() +{ + TQStringList i18nList; + for( TQStringList::ConstIterator it = showTaskStatesList().begin(); it != showTaskStatesList().end(); ++it ) { + i18nList << i18n((*it).latin1()); + } + return i18nList; +} + TaskbarConfig::TaskbarConfig(TQWidget *parent, const char* name, const TQStringList&) : KCModule(TaskBarFactory::instance(), parent, name) { @@ -151,6 +170,7 @@ TaskbarConfig::TaskbarConfig(TQWidget *parent, const char* name, const TQStringL m_widget->kcfg_MiddleButtonAction->insertStringList(list); m_widget->kcfg_RightButtonAction->insertStringList(list); m_widget->kcfg_GroupTasks->insertStringList(i18nGroupModeList()); + m_widget->kcfg_ShowTaskStates->insertStringList(i18nShowTaskStatesList()); connect(m_widget->kcfg_GroupTasks, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotUpdateComboBox())); diff --git a/kcontrol/taskbar/kcmtaskbar.h b/kcontrol/taskbar/kcmtaskbar.h index 877f26daf..d41f5e6f0 100644 --- a/kcontrol/taskbar/kcmtaskbar.h +++ b/kcontrol/taskbar/kcmtaskbar.h @@ -73,6 +73,8 @@ private: static TQStringList i18nActionList(); static const TQStringList& groupModeList(); static TQStringList i18nGroupModeList(); + static const TQStringList& showTaskStatesList(); + static TQStringList i18nShowTaskStatesList(); TaskbarConfigUI *m_widget; }; diff --git a/kcontrol/taskbar/kcmtaskbarui.ui b/kcontrol/taskbar/kcmtaskbarui.ui index 632f0c109..dd0aadb9d 100644 --- a/kcontrol/taskbar/kcmtaskbarui.ui +++ b/kcontrol/taskbar/kcmtaskbarui.ui @@ -107,13 +107,40 @@ By default the taskbar groups windows when it is full.</string> </widget> <widget class="TQLabel" row="7" column="0" rowspan="1" colspan="2"> <property name="name"> - <cstring>groupTasksLabel</cstring> + <cstring>showTaskStatesLabel</cstring> </property> <property name="text"> <string>&Group similar tasks:</string> </property> <property name="buddy" stdset="0"> - <cstring>kcfg_GroupTasks</cstring> + <cstring>kcfg_ShowTaskStates</cstring> + </property> + </widget> + <widget class="TQComboBox" row="8" column="2"> + <property name="name"> + <cstring>kcfg_ShowTaskStates</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="whatsThis" stdset="0"> + <string>The taskbar can show and/or hide tasks based on their current process state. Select <em>Any</em> to show all tasks regardless of current state.</string> + </property> + </widget> + <widget class="TQLabel" row="8" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>groupTasksLabel</cstring> + </property> + <property name="text"> + <string>&Show tasks with state:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>kcfg_ShowTaskStates</cstring> </property> </widget> <widget class="TQCheckBox" row="4" column="0" rowspan="1" colspan="3"> @@ -161,12 +188,12 @@ By default this option is selected.</string> By default, this option is selected and all windows are shown.</string> </property> </widget> - <widget class="TQComboBox" row="8" column="2"> + <widget class="TQComboBox" row="9" column="2"> <property name="name"> <cstring>appearance</cstring> </property> </widget> - <widget class="TQLabel" row="8" column="0" rowspan="1" colspan="2"> + <widget class="TQLabel" row="9" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -177,7 +204,7 @@ By default, this option is selected and all windows are shown.</string> <cstring>appearance</cstring> </property> </widget> - <widget class="TQCheckBox" row="9" column="0" rowspan="1" colspan="2"> + <widget class="TQCheckBox" row="10" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>kcfg_UseCustomColors</cstring> </property> @@ -191,7 +218,7 @@ By default, this option is selected and all windows are shown.</string> <bool>true</bool> </property> </widget> - <widget class="TQLayoutWidget" row="10" column="0" rowspan="1" colspan="3"> + <widget class="TQLayoutWidget" row="11" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>layout9</cstring> </property> @@ -199,23 +226,17 @@ By default, this option is selected and all windows are shown.</string> <property name="name"> <cstring>unnamed</cstring> </property> - <spacer row="1" column="2"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> - <cstring>spacer11_2</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> + <cstring>inactiveTaskTextColorLabel</cstring> </property> - <property name="sizeType"> - <enum>Expanding</enum> + <property name="text"> + <string>Inacti&ve task text color:</string> </property> - <property name="sizeHint"> - <size> - <width>191</width> - <height>20</height> - </size> + <property name="buddy" stdset="0"> + <cstring>kcfg_InactiveTaskTextColor</cstring> </property> - </spacer> + </widget> <widget class="KColorButton" row="0" column="1"> <property name="name"> <cstring>kcfg_InactiveTaskTextColor</cstring> @@ -241,26 +262,18 @@ By default, this option is selected and all windows are shown.</string> </size> </property> </spacer> - <widget class="KColorButton" row="2" column="1"> + <widget class="TQLabel" row="0" column="3"> <property name="name"> - <cstring>kcfg_TaskBackgroundColor</cstring> - </property> - <property name="text"> - <string></string> - </property> - </widget> - <widget class="TQLabel" row="2" column="0"> - <property name="name"> - <cstring>taskBackgroundColorLabel</cstring> + <cstring>activeTaskTextColorLabel</cstring> </property> <property name="text"> - <string>&Background color:</string> + <string>Active task te&xt color:</string> </property> <property name="buddy" stdset="0"> - <cstring>kcfg_TaskBackgroundColor</cstring> + <cstring>kcfg_ActiveTaskTextColor</cstring> </property> </widget> - <widget class="KColorButton" row="1" column="1"> + <widget class="KColorButton" row="0" column="4"> <property name="name"> <cstring>kcfg_ActiveTaskTextColor</cstring> </property> @@ -268,29 +281,43 @@ By default, this option is selected and all windows are shown.</string> <string></string> </property> </widget> - <widget class="TQLabel" row="0" column="0"> + <spacer row="0" column="5"> <property name="name"> - <cstring>inactiveTaskTextColorLabel</cstring> + <cstring>spacer11_2</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>191</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="TQLabel" row="0" column="6"> + <property name="name"> + <cstring>taskBackgroundColorLabel</cstring> </property> <property name="text"> - <string>Inacti&ve task text color:</string> + <string>&Background color:</string> </property> <property name="buddy" stdset="0"> - <cstring>kcfg_InactiveTaskTextColor</cstring> + <cstring>kcfg_TaskBackgroundColor</cstring> </property> </widget> - <widget class="TQLabel" row="1" column="0"> + <widget class="KColorButton" row="0" column="7"> <property name="name"> - <cstring>activeTaskTextColorLabel</cstring> + <cstring>kcfg_TaskBackgroundColor</cstring> </property> <property name="text"> - <string>Active task te&xt color:</string> - </property> - <property name="buddy" stdset="0"> - <cstring>kcfg_ActiveTaskTextColor</cstring> + <string></string> </property> </widget> - <spacer row="2" column="2"> + <spacer row="0" column="8"> <property name="name"> <cstring>spacer12</cstring> </property> @@ -471,6 +498,7 @@ By default, this option is selected and all windows are shown.</string> <tabstop>kcfg_ShowIcon</tabstop> <tabstop>kcfg_ShowWindowListBtn</tabstop> <tabstop>kcfg_GroupTasks</tabstop> + <tabstop>kcfg_ShowTaskStates</tabstop> <tabstop>appearance</tabstop> <tabstop>kcfg_UseCustomColors</tabstop> <tabstop>kcfg_InactiveTaskTextColor</tabstop> |