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

List:       kde-core-devel
Subject:    Configure Notifications standard action
From:       "Aaron J. Seigo" <aseigo () olympusproject ! org>
Date:       2002-07-21 4:59:19
[Download RAW message or body]

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

Hi...

in order to encourage and standardize the usage of the new notify config 
dialog in KDE applications, i'd like to add a standard action for it, as 
demonstrated in the attached patch.

- -- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

"Everything should be made as simple as possible, but not simpler"
    - Albert Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD4DBQE9Oj+n1rcusafx20MRAtGjAKCIQDeeP400qGVt4q9t1nkz4gbrsgCYrGhg
fwFE5a/KL3ddqtUp7clBNw==
=17VJ
-----END PGP SIGNATURE-----

["notifyStdAction.diff" (text/x-diff)]

Index: kstdaction.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kstdaction.cpp,v
retrieving revision 1.74
diff -u -3 -d -p -r1.74 kstdaction.cpp
--- kstdaction.cpp	2002/07/03 16:27:57	1.74
+++ kstdaction.cpp	2002/07/21 04:58:43
@@ -104,6 +104,7 @@ const KStdActionInfo g_rgActionInfo[] =
 	{ KeyBindings,   KStdAccel::AccelNone, "options_configure_keybinding", I18N_NOOP("Configure \
S&hortcuts..."), 0,"configure_shortcuts" },  { Preferences,   KStdAccel::AccelNone, \
"options_configure", I18N_NOOP("&Configure %1..."), 0, "configure" },  { ConfigureToolbars, \
KStdAccel::AccelNone, "options_configure_toolbars", I18N_NOOP("Configure Tool&bars..."), \
0,"configure_toolbars" }, +        { ConfigureNotifications, KStdAccel::AccelNone, \
"options_configure_notifications", I18N_NOOP("Configure &Notifications..."), 0, "knotify" },  
 	{ Help,          KStdAccel::Help, "help", 0, 0, "help" },
 	{ HelpContents,  KStdAccel::AccelNone, "help_contents", I18N_NOOP("%1 &Handbook"), 0, \
"contents" }, @@ -315,6 +316,8 @@ KAction *preferences( const QObject *rec
 	{ return KStdAction::create( Preferences, name, recvr, slot, parent ); }
 KAction *configureToolbars( const QObject *recvr, const char *slot, KActionCollection* parent, \
const char *name )  { return KStdAction::create( ConfigureToolbars, name, recvr, slot, parent \
); } +KAction *configureNotifications( const QObject *recvr, const char *slot, \
KActionCollection* parent, const char *name ) +        { return KStdAction::create( \
ConfigureNotifications, name, recvr, slot, parent ); }  KAction *help( const QObject *recvr, \
const char *slot, KActionCollection* parent, const char *name )  { return KStdAction::create( \
Help, name, recvr, slot, parent ); }  KAction *helpContents( const QObject *recvr, const char \
                *slot, KActionCollection* parent, const char *name )
Index: kstdaction.h
===================================================================
RCS file: /home/kde/kdelibs/kdeui/kstdaction.h,v
retrieving revision 1.26
diff -u -3 -d -p -r1.26 kstdaction.h
--- kstdaction.h	2002/06/30 18:33:18	1.26
+++ kstdaction.h	2002/07/21 04:58:43
@@ -143,7 +143,10 @@ namespace KStdAction
 		Preferences, ConfigureToolbars,
 
 		// Help Menu
-		Help, HelpContents, WhatsThis, TipofDay, ReportBug, AboutApp, AboutKDE
+		Help, HelpContents, WhatsThis, TipofDay, ReportBug, AboutApp, AboutKDE,
+
+                // Another settings menu item
+                ConfigureNotifications
 	};
 
 	/**
@@ -491,6 +494,14 @@ namespace KStdAction
 					const char *slot,
 					KActionCollection* parent,
 					const char *name = 0 );
+
+        /**
+        * The Configure Notifications dialog
+        */
+        KAction *configureNotifications(const QObject *recvr,
+                                        const char *slot,
+                                        KActionCollection *parent,
+                                        const char *name = 0);
 
 	/**
 	* Display the help.
Index: ui_standards.rc
===================================================================
RCS file: /home/kde/kdelibs/kdeui/ui_standards.rc,v
retrieving revision 1.24
diff -u -3 -d -p -r1.24 ui_standards.rc
--- ui_standards.rc	2002/07/03 16:27:57	1.24
+++ ui_standards.rc	2002/07/21 04:58:43
@@ -142,6 +142,7 @@
     <Separator/>
     <Action name="options_configure_keybinding"/>
     <Action name="options_configure_toolbars"/>
+    <Action name="options_configure_notifications"/>
     <Action name="options_configure_carddecks"/>
     <Action name="options_configure"/>
     <MergeLocal name="configure_merge"/>



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

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