[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [patch] added a clear-button to minicli
From:       Martin Koller <m.koller () surfeu ! at>
Date:       2003-08-24 16:26:22
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The following patch adds a "clear" button to minicli (to clear the location 
entry combobox), which is the same as in the konqueror location bar.

Hope you like it and commit it into CVS.

Thanks
- -- 
Best regards/Schöne Grüße

Martin

Public key at:
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x8DFB0F86
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE/SOcuHmdPoI37D4YRAhOHAKDlydRbEhZV1dRJqsbCaU2rHAM/nwCeMneI
gm1LQjyjrPaS4taN+z5l6/I=
=5TOj
-----END PGP SIGNATURE-----

["minicli.patch" (text/x-diff)]

Index: minicli_ui.ui
===================================================================
RCS file: /home/kde/kdebase/kdesktop/minicli_ui.ui,v
retrieving revision 1.14
diff -u -3 -p -r1.14 minicli_ui.ui
--- minicli_ui.ui	22 Aug 2003 17:04:39 -0000	1.14
+++ minicli_ui.ui	24 Aug 2003 16:14:21 -0000
@@ -1,4 +1,4 @@
-<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
+<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
 <class>MinicliDlgUI</class>
 <widget class="QWidget">
     <property name="name">
@@ -9,7 +9,7 @@
             <x>0</x>
             <y>0</y>
             <width>362</width>
-            <height>346</height>
+            <height>349</height>
         </rect>
     </property>
     <property name="sizePolicy">
@@ -20,11 +20,14 @@
             <verstretch>0</verstretch>
         </sizepolicy>
     </property>
+    <property name="caption">
+        <string>MinicliDlgUI</string>
+    </property>
     <grid>
         <property name="name">
             <cstring>unnamed</cstring>
         </property>
-        <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="2">
+        <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="3">
             <property name="name">
                 <cstring>layout5</cstring>
             </property>
@@ -72,23 +75,7 @@
                 <cstring>cbCommand</cstring>
             </property>
         </widget>
-        <widget class="KHistoryCombo" row="1" column="1">
-            <property name="name">
-                <cstring>cbCommand</cstring>
-            </property>
-            <property name="sizePolicy">
-                <sizepolicy>
-                    <hsizetype>3</hsizetype>
-                    <vsizetype>0</vsizetype>
-                    <horstretch>0</horstretch>
-                    <verstretch>0</verstretch>
-                </sizepolicy>
-            </property>
-            <property name="whatsThis" stdset="0">
-                <string>Enter the command you wish to execute or the address of the \
resource you want to open. This can be a remote URL like "www.kde.org" or a localone \
                like "~/.kderc".</string>
-            </property>
-        </widget>
-        <widget class="QFrame" row="2" column="1">
+        <widget class="QFrame" row="2" column="1" rowspan="1" colspan="2">
             <property name="name">
                 <cstring>gbAdvanced</cstring>
             </property>
@@ -420,7 +407,7 @@
                 </spacer>
             </grid>
         </widget>
-        <widget class="QFrame" row="4" column="0" rowspan="1" colspan="2">
+        <widget class="QFrame" row="3" column="0" rowspan="1" colspan="3">
             <property name="name">
                 <cstring>frame4</cstring>
             </property>
@@ -431,7 +418,7 @@
                 <enum>Sunken</enum>
             </property>
         </widget>
-        <widget class="QLayoutWidget" row="5" column="0" rowspan="1" colspan="2">
+        <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="3">
             <property name="name">
                 <cstring>layout4</cstring>
             </property>
@@ -463,7 +450,7 @@
                         <enum>Horizontal</enum>
                     </property>
                     <property name="sizeType">
-                        <enum>MinimumExpanding</enum>
+                        <enum>Maximum</enum>
                     </property>
                     <property name="sizeHint">
                         <size>
@@ -509,8 +496,40 @@
                 </widget>
             </hbox>
         </widget>
+        <widget class="KHistoryCombo" row="1" column="2">
+            <property name="name">
+                <cstring>cbCommand</cstring>
+            </property>
+            <property name="sizePolicy">
+                <sizepolicy>
+                    <hsizetype>3</hsizetype>
+                    <vsizetype>0</vsizetype>
+                    <horstretch>0</horstretch>
+                    <verstretch>0</verstretch>
+                </sizepolicy>
+            </property>
+            <property name="whatsThis" stdset="0">
+                <string>Enter the command you wish to execute or the address of the \
resource you want to open. This can be a remote URL like "www.kde.org" or a localone \
like "~/.kderc".</string> +            </property>
+        </widget>
+        <widget class="KPushButton" row="1" column="1">
+            <property name="name">
+                <cstring>pbCommandClear</cstring>
+            </property>
+            <property name="focusPolicy">
+                <enum>NoFocus</enum>
+            </property>
+            <property name="text">
+                <string></string>
+            </property>
+            <property name="pixmap">
+                <pixmap>"locationbar_erase"</pixmap>
+            </property>
+        </widget>
     </grid>
 </widget>
+<customwidgets>
+</customwidgets>
 <connections>
     <connection>
         <sender>cbPriority</sender>
@@ -560,6 +579,12 @@
         <receiver>textLabel1</receiver>
         <slot>setEnabled(bool)</slot>
     </connection>
+    <connection>
+        <sender>pbCommandClear</sender>
+        <signal>clicked()</signal>
+        <receiver>cbCommand</receiver>
+        <slot>clear()</slot>
+    </connection>
 </connections>
 <tabstops>
     <tabstop>cbCommand</tabstop>
@@ -581,4 +606,14 @@
 <pixmapfunction>BarIcon</pixmapfunction>
 <layoutdefaults spacing="3" margin="6"/>
 <layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
+<includehints>
+    <includehint>kpassdlg.h</includehint>
+    <includehint>klineedit.h</includehint>
+    <includehint>kpushbutton.h</includehint>
+    <includehint>kpushbutton.h</includehint>
+    <includehint>kpushbutton.h</includehint>
+    <includehint>kcombobox.h</includehint>
+    <includehint>klineedit.h</includehint>
+    <includehint>kpushbutton.h</includehint>
+</includehints>
 </UI>



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic