• 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 <ksystemtray.h>
16 
17 #define karambaApp ((KarambaApplication*)tqApp)
18 
19 class karamba;
20 class KarambaIface;
21 class TDECmdLineArgs;
22 class ThemesDlg;
23 class dcopIface_stub;
24 class KHelpMenu;
25 class TDEAboutData;
26 
27 class KarambaApplication : public TDEApplication
28 {
29  TQ_OBJECT
30 
31 
32  friend class KarambaIface;
33 
34  private:
35  static int fd;
36  KHelpMenu* m_helpMenu;
37 
38  void showKarambaMenuExtension(bool show = true);
39  void setToolTip(const TQString &tip = TQString());
40 
41  protected:
42  KarambaIface* iface;
43  ThemesDlg* themeListWindow;
44  dcopIface_stub* dcopIfaceStub;
45  TQObjectList *karambaList;
46  KSystemTray* sysTrayIcon;
47 
48  public:
49  KarambaApplication();
50  ~KarambaApplication();
51 
52  TQString getMainKaramba();
53  TQStringList getKarambas();
54  bool themeExists(TQString pretty_name);
55  void initDcopStub(TQCString app = "");
56  void setUpSysTray(TDEAboutData* about);
57  void checkPreviousSession(TDEApplication &app, TQStringList &lst);
58  void checkCommandLine(TDECmdLineArgs *args, TQStringList &lst);
59  bool startThemes(TQStringList &lst);
60  KarambaIface* dcopIface() { return iface; };
61  dcopIface_stub* dcopStub() { return dcopIfaceStub; };
62  TQWidget* parentWindow() { return (TQWidget*)themeListWindow; };
63 
64  void addKaramba(karamba* k, bool reloading = false);
65  void deleteKaramba(karamba* k, bool reloading = false);
66  bool hasKaramba(karamba* k);
67 
68  static bool lockKaramba();
69  static void unlockKaramba();
70  static void checkSuperKarambaDir();
71 
72  public slots:
73  void buildToolTip();
74  void globalQuitSuperKaramba();
75  void globalShowThemeDialog();
76  void globalHideSysTray(bool hide = true);
77 
78  protected slots:
79  void quitSuperKaramba();
80  void showThemeDialog();
81  void hideSysTray(bool hide = true);
82 };
83 
84 #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.9.1
This website is maintained by Timothy Pearson.