|
|
@ -25,20 +25,12 @@
|
|
|
|
#include "boldmenuitem.h"
|
|
|
|
#include "boldmenuitem.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#include <tdepopupmenu.h>
|
|
|
|
#include <tdepopupmenu.h>
|
|
|
|
#if TDE_VERSION_MAJOR >= 3
|
|
|
|
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <kstddirs.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <kstdaction.h>
|
|
|
|
#include <kstdaction.h>
|
|
|
|
#include <tdeaction.h>
|
|
|
|
#include <tdeaction.h>
|
|
|
|
#include <tdeaboutapplication.h>
|
|
|
|
#include <tdeaboutapplication.h>
|
|
|
|
#if TDE_VERSION_MAJOR >= 3
|
|
|
|
|
|
|
|
#include <tdeapplication.h>
|
|
|
|
#include <tdeapplication.h>
|
|
|
|
#else
|
|
|
|
|
|
|
|
#include <kapp.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <kiconloader.h>
|
|
|
|
#include <kiconloader.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <tdeversion.h>
|
|
|
|
#include <tdeversion.h>
|
|
|
@ -64,12 +56,7 @@ static TQColor getActiveTextColor(TDEPopupMenu *menu)
|
|
|
|
|
|
|
|
|
|
|
|
KBSwitchTrayIcon::KBSwitchTrayIcon(KBConfig *conf){
|
|
|
|
KBSwitchTrayIcon::KBSwitchTrayIcon(KBConfig *conf){
|
|
|
|
TQPixmap pix;
|
|
|
|
TQPixmap pix;
|
|
|
|
#if TDE_VERSION_MAJOR >= 3
|
|
|
|
|
|
|
|
TDEActionCollection *actions = new TDEActionCollection(this);
|
|
|
|
TDEActionCollection *actions = new TDEActionCollection(this);
|
|
|
|
#define ACTION_PARENT actions
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define ACTION_PARENT this
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_kbconf = conf;
|
|
|
|
m_kbconf = conf;
|
|
|
|
//TQObject::connect(conf, TQ_SIGNAL(changed()), this, TQ_SLOT(updateMenuIcons()));
|
|
|
|
//TQObject::connect(conf, TQ_SIGNAL(changed()), this, TQ_SLOT(updateMenuIcons()));
|
|
|
@ -78,11 +65,11 @@ KBSwitchTrayIcon::KBSwitchTrayIcon(KBConfig *conf){
|
|
|
|
TQObject::connect(menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotMenuActivated(int)));
|
|
|
|
TQObject::connect(menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotMenuActivated(int)));
|
|
|
|
|
|
|
|
|
|
|
|
menu->insertSeparator();
|
|
|
|
menu->insertSeparator();
|
|
|
|
TDEAction *pref = KStdAction::preferences(this, TQ_SIGNAL(preferencesSelected()), ACTION_PARENT);
|
|
|
|
TDEAction *pref = KStdAction::preferences(this, TQ_SIGNAL(preferencesSelected()), actions);
|
|
|
|
pref->plug(menu);
|
|
|
|
pref->plug(menu);
|
|
|
|
TDEAction *help = KStdAction::help(this, TQ_SLOT(slotHelp()), ACTION_PARENT);
|
|
|
|
TDEAction *help = KStdAction::help(this, TQ_SLOT(slotHelp()), actions);
|
|
|
|
help->plug(menu);
|
|
|
|
help->plug(menu);
|
|
|
|
TDEAction *about = KStdAction::aboutApp(this, TQ_SLOT(slotAbout()), ACTION_PARENT);
|
|
|
|
TDEAction *about = KStdAction::aboutApp(this, TQ_SLOT(slotAbout()), actions);
|
|
|
|
about->plug(menu);
|
|
|
|
about->plug(menu);
|
|
|
|
|
|
|
|
|
|
|
|
/*TQString path = locate("icon", "hicolor/16x16/apps/locale.png");
|
|
|
|
/*TQString path = locate("icon", "hicolor/16x16/apps/locale.png");
|
|
|
|