14 #include "tdeapplication.h" 15 #include <tdeversion.h> 16 #include <ksystemtray.h> 20 #if defined(TDE_MAKE_VERSION) 21 #if TDE_VERSION >= TDE_MAKE_VERSION(3,2,0) 24 #if TDE_VERSION >= TDE_MAKE_VERSION(3,3,0) 29 #define karambaApp ((KarambaApplication*)tqApp) 39 class KarambaApplication :
public TDEApplication
44 friend class KarambaIface;
48 KHelpMenu* m_helpMenu;
50 void showKarambaMenuExtension(
bool show =
true);
51 void setToolTip(
const TQString &tip = TQString());
55 ThemesDlg* themeListWindow;
56 dcopIface_stub* dcopIfaceStub;
57 TQObjectList *karambaList;
58 KSystemTray* sysTrayIcon;
62 ~KarambaApplication();
64 TQString getMainKaramba();
65 TQStringList getKarambas();
66 bool themeExists(TQString pretty_name);
67 void initDcopStub(TQCString app =
"");
68 void setUpSysTray(TDEAboutData* about);
69 void checkPreviousSession(TDEApplication &app, TQStringList &lst);
70 void checkCommandLine(TDECmdLineArgs *args, TQStringList &lst);
71 bool startThemes(TQStringList &lst);
72 KarambaIface* dcopIface() {
return iface; };
73 dcopIface_stub* dcopStub() {
return dcopIfaceStub; };
74 TQWidget* parentWindow() {
return (TQWidget*)themeListWindow; };
76 void addKaramba(karamba* k,
bool reloading =
false);
77 void deleteKaramba(karamba* k,
bool reloading =
false);
78 bool hasKaramba(karamba* k);
80 static bool lockKaramba();
81 static void unlockKaramba();
82 static void checkSuperKarambaDir();
86 void globalQuitSuperKaramba();
87 void globalShowThemeDialog();
88 void globalHideSysTray(
bool hide =
true);
91 void quitSuperKaramba();
92 void showThemeDialog();
93 void hideSysTray(
bool hide =
true);
96 #endif // KARAMBAAPP_H