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

List:       kde-devel
Subject:    KNotify TNG
From:       Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date:       2001-08-09 1:52:31
[Download RAW message or body]

Hi,

the current KNotify configuration, centrally for all applications could be 
improved, we all agree on that, I guess :)

I just hacked up a widget, that could be used by the central kcmknotify and 
by individual applications, e.g. in their config dialog. The "Application" 
combobox would be only available in kcmknotify of course. The 
combobox/pushbutton would become a KURLRequester, when implemented.

Any comments?

Cheers
Carsten Pfeiffer
["knotify.ui" (text/html)]

<!DOCTYPE UI><UI>
<class>Form1</class>
<widget>
    <class>QWidget</class>
    <property stdset="1">
        <name>name</name>
        <cstring>Form1</cstring>
    </property>
    <property stdset="1">
        <name>geometry</name>
        <rect>
            <x>0</x>
            <y>0</y>
            <width>510</width>
            <height>459</height>
        </rect>
    </property>
    <property stdset="1">
        <name>caption</name>
        <string>Form1</string>
    </property>
    <widget>
        <class>QGroupBox</class>
        <property stdset="1">
            <name>name</name>
            <cstring>GroupBox1</cstring>
        </property>
        <property stdset="1">
            <name>geometry</name>
            <rect>
                <x>10</x>
                <y>10</y>
                <width>481</width>
                <height>425</height>
            </rect>
        </property>
        <property stdset="1">
            <name>title</name>
            <string>Notification configuration</string>
        </property>
        <vbox>
            <property stdset="1">
                <name>margin</name>
                <number>11</number>
            </property>
            <property stdset="1">
                <name>spacing</name>
                <number>6</number>
            </property>
            <widget>
                <class>QLayoutWidget</class>
                <property stdset="1">
                    <name>name</name>
                    <cstring>Layout5</cstring>
                </property>
                <hbox>
                    <property stdset="1">
                        <name>margin</name>
                        <number>0</number>
                    </property>
                    <property stdset="1">
                        <name>spacing</name>
                        <number>6</number>
                    </property>
                    <widget>
                        <class>QLabel</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>TextLabel1</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>&amp;Application:</string>
                        </property>
                        <property>
                            <name>buddy</name>
                            <cstring>ComboBox4</cstring>
                        </property>
                    </widget>
                    <widget>
                        <class>QComboBox</class>
                        <item>
                            <property>
                                <name>text</name>
                                <string>Konqueror</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>Kuickshow</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>KMail</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>StarOffice</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>KApache</string>
                            </property>
                        </item>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>ComboBox4</cstring>
                        </property>
                    </widget>
                </hbox>
            </widget>
            <widget>
                <class>QListView</class>
                <column>
                    <property>
                        <name>text</name>
                        <string>Events</string>
                    </property>
                    <property>
                        <name>clickable</name>
                        <bool>true</bool>
                    </property>
                    <property>
                        <name>resizeable</name>
                        <bool>true</bool>
                    </property>
                </column>
            <item>
                <property>
                    <name>text</name>
                    <string>You have new mail</string>
                </property>
                <property>
                    <name>pixmap</name>
                    <pixmap></pixmap>
                </property>
            </item>
            <item>
                <property>
                    <name>text</name>
                    <string>File not found: default.ida</string>
                </property>
                <property>
                    <name>pixmap</name>
                    <pixmap></pixmap>
                </property>
            </item>
            <item>
                <property>
                    <name>text</name>
                    <string>StarOffice ate all your memory</string>
                </property>
                <property>
                    <name>pixmap</name>
                    <pixmap></pixmap>
                </property>
            </item>
            <item>
                <property>
                    <name>text</name>
                    <string>File not found</string>
                </property>
                <property>
                    <name>pixmap</name>
                    <pixmap></pixmap>
                </property>
            </item>
                <property stdset="1">
                    <name>name</name>
                    <cstring>ListView1</cstring>
                </property>
            </widget>
            <widget>
                <class>QLayoutWidget</class>
                <property stdset="1">
                    <name>name</name>
                    <cstring>Layout4</cstring>
                </property>
                <grid>
                    <property stdset="1">
                        <name>margin</name>
                        <number>0</number>
                    </property>
                    <property stdset="1">
                        <name>spacing</name>
                        <number>6</number>
                    </property>
                    <widget row="0"  column="0" >
                        <class>QCheckBox</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>CheckBox2</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>Play &amp;sound</string>
                        </property>
                    </widget>
                    <widget row="1"  column="2" >
                        <class>QPushButton</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>PushButton1_2</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>...</string>
                        </property>
                    </widget>
                    <widget row="2"  column="2" >
                        <class>QPushButton</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>PushButton1_3</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>...</string>
                        </property>
                    </widget>
                    <widget row="0"  column="2" >
                        <class>QPushButton</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>PushButton1</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>...</string>
                        </property>
                    </widget>
                    <widget row="2"  column="0" >
                        <class>QCheckBox</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>CheckBox3</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>E&amp;xecute program</string>
                        </property>
                    </widget>
                    <widget row="2"  column="1" >
                        <class>QComboBox</class>
                        <item>
                            <property>
                                <name>text</name>
                                <string>/opt/kde2/share/sounds/foo.wav</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>bla.wav</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>foo.wav</string>
                            </property>
                        </item>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>ComboBox1_3</cstring>
                        </property>
                        <property stdset="1">
                            <name>editable</name>
                            <bool>true</bool>
                        </property>
                    </widget>
                    <widget row="0"  column="1" >
                        <class>QComboBox</class>
                        <item>
                            <property>
                                <name>text</name>
                                <string>/opt/kde2/share/sounds/foo.wav</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>bla.wav</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>foo.wav</string>
                            </property>
                        </item>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>ComboBox1</cstring>
                        </property>
                        <property stdset="1">
                            <name>editable</name>
                            <bool>true</bool>
                        </property>
                    </widget>
                    <widget row="1"  column="1" >
                        <class>QComboBox</class>
                        <item>
                            <property>
                                <name>text</name>
                                <string>/opt/kde2/share/sounds/foo.wav</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>bla.wav</string>
                            </property>
                        </item>
                        <item>
                            <property>
                                <name>text</name>
                                <string>foo.wav</string>
                            </property>
                        </item>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>ComboBox1_2</cstring>
                        </property>
                        <property stdset="1">
                            <name>editable</name>
                            <bool>true</bool>
                        </property>
                    </widget>
                    <widget row="1"  column="0" >
                        <class>QCheckBox</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>CheckBox1</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>&amp;Log to File</string>
                        </property>
                    </widget>
                </grid>
            </widget>
            <widget>
                <class>QCheckBox</class>
                <property stdset="1">
                    <name>name</name>
                    <cstring>CheckBox6</cstring>
                </property>
                <property stdset="1">
                    <name>text</name>
                    <string>&amp;Non-interruptive notification (show configured way description)</string>
                </property>
            </widget>
            <widget>
                <class>QLayoutWidget</class>
                <property stdset="1">
                    <name>name</name>
                    <cstring>Layout2</cstring>
                </property>
                <hbox>
                    <property stdset="1">
                        <name>margin</name>
                        <number>0</number>
                    </property>
                    <property stdset="1">
                        <name>spacing</name>
                        <number>6</number>
                    </property>
                    <widget>
                        <class>QCheckBox</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>CheckBox4</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>Show &amp;Messagebox</string>
                        </property>
                    </widget>
                    <spacer>
                        <property>
                            <name>name</name>
                            <cstring>Spacer1</cstring>
                        </property>
                        <property stdset="1">
                            <name>orientation</name>
                            <enum>Horizontal</enum>
                        </property>
                        <property stdset="1">
                            <name>sizeType</name>
                            <enum>Expanding</enum>
                        </property>
                        <property>
                            <name>sizeHint</name>
                            <size>
                                <width>20</width>
                                <height>20</height>
                            </size>
                        </property>
                    </spacer>
                    <widget>
                        <class>QCheckBox</class>
                        <property stdset="1">
                            <name>name</name>
                            <cstring>CheckBox5</cstring>
                        </property>
                        <property stdset="1">
                            <name>text</name>
                            <string>Print to Standard &amp;Error Output</string>
                        </property>
                    </widget>
                </hbox>
            </widget>
        </vbox>
    </widget>
</widget>
</UI>

>> Visit http://master.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