• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
karambaapp.h
1 /***************************************************************************
2  * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org> *
3  * Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 
11 #ifndef KARAMBAAPP_H
12 #define KARAMBAAPP_H
13 
14 #include "tdeapplication.h"
15 #include <tdeversion.h>
16 #include <ksystemtray.h>
17 
18 #undef KDE_3_2
19 #undef KDE_3_3
20 #if defined(TDE_MAKE_VERSION)
21 #if TDE_VERSION >= TDE_MAKE_VERSION(3,2,0)
22 #define KDE_3_2
23 #endif
24 #if TDE_VERSION >= TDE_MAKE_VERSION(3,3,0)
25 #define KDE_3_3
26 #endif
27 #endif
28 
29 #define karambaApp ((KarambaApplication*)tqApp)
30 
31 class karamba;
32 class KarambaIface;
33 class TDECmdLineArgs;
34 class ThemesDlg;
35 class dcopIface_stub;
36 class KHelpMenu;
37 class TDEAboutData;
38 
39 class KarambaApplication : public TDEApplication
40 {
41  TQ_OBJECT
42 
43 
44  friend class KarambaIface;
45 
46  private:
47  static int fd;
48  KHelpMenu* m_helpMenu;
49 
50  void showKarambaMenuExtension(bool show = true);
51  void setToolTip(const TQString &tip = TQString());
52 
53  protected:
54  KarambaIface* iface;
55  ThemesDlg* themeListWindow;
56  dcopIface_stub* dcopIfaceStub;
57  TQObjectList *karambaList;
58  KSystemTray* sysTrayIcon;
59 
60  public:
61  KarambaApplication();
62  ~KarambaApplication();
63 
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; };
75 
76  void addKaramba(karamba* k, bool reloading = false);
77  void deleteKaramba(karamba* k, bool reloading = false);
78  bool hasKaramba(karamba* k);
79 
80  static bool lockKaramba();
81  static void unlockKaramba();
82  static void checkSuperKarambaDir();
83 
84  public slots:
85  void buildToolTip();
86  void globalQuitSuperKaramba();
87  void globalShowThemeDialog();
88  void globalHideSysTray(bool hide = true);
89 
90  protected slots:
91  void quitSuperKaramba();
92  void showThemeDialog();
93  void hideSysTray(bool hide = true);
94 };
95 
96 #endif // KARAMBAAPP_H

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.8.13
This website is maintained by Timothy Pearson.