~ubuntu-branches/debian/jessie/basket/jessie

« back to all changes in this revision

Viewing changes to src/global.h

  • Committer: Bazaar Package Importer
  • Author(s): Sune Vuorela
  • Date: 2008-06-25 20:11:23 UTC
  • mfrom: (4.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080625201123-06wsi9dla3rs3486
Tags: 1.0.2-5
* Also allow automake 1.10 usage - and just build-dep on automake i
  (Closes: #487981)
* Bye bye ana

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2003 by S�bastien Lao�t                                 *
3
 
 *   sebastien.laout@tuxfamily.org                                         *
 
2
 *   Copyright (C) 2003 by S�astien Laot                                 *
 
3
 *   slaout@linux62.org                                                    *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
6
6
 *   it under the terms of the GNU General Public License as published by  *
21
21
#ifndef GLOBAL_H
22
22
#define GLOBAL_H
23
23
 
 
24
#include <qstring.h>
 
25
#include "aboutdata.h"
 
26
 
 
27
class LikeBack;
24
28
class DebugWindow;
25
 
class Container;
26
 
class ContainerSystemTray;
 
29
class BackgroundManager;
 
30
class SystemTray;
 
31
class BNPView;
27
32
class KGlobalAccel;
28
 
class ClickCursorFeedback;
29
 
class QString;
 
33
class KMainWindow;
 
34
class KAboutData;
30
35
 
31
 
/** Handle all global variables of the BasKet project.
 
36
/** Handle all global variables of the application.
32
37
  * This file only declare classes : developer should include
33
38
  * the .h files of variables he use.
34
 
  * @author S�bastien Lao�t
 
39
  * @author S�astien Laot
35
40
  */
36
41
class Global
37
42
{
 
43
  private:
 
44
        static QString s_customSavesFolder;
38
45
  public:
39
 
        static DebugWindow          *debugWindow;
40
 
        static Container            *mainContainer;
41
 
        static ContainerSystemTray  *tray;
42
 
        static KGlobalAccel         *globalAccel;
43
 
        static ClickCursorFeedback  *clickCursorFeedback;
44
 
 
45
 
        static QString basketsFolder(); // Return e.g. "/home/username/.kde/share/apps/basket/"
 
46
        // Global Variables:
 
47
        static LikeBack          *likeBack;
 
48
        static DebugWindow       *debugWindow;
 
49
        static BackgroundManager *backgroundManager;
 
50
        static SystemTray        *systemTray;
 
51
        static BNPView           *bnpView;
 
52
        static KGlobalAccel      *globalAccel;
 
53
        static KConfig           *basketConfig;
 
54
        static AboutData          basketAbout;
 
55
 
 
56
        // Application Folders:
 
57
        static void setCustomSavesFolder(const QString &folder);
 
58
        static QString savesFolder();       /// << @return e.g. "/home/username/.kde/share/apps/basket/".
 
59
        static QString basketsFolder();     /// << @return e.g. "/home/username/.kde/share/apps/basket/baskets/".
 
60
        static QString backgroundsFolder(); /// << @return e.g. "/home/username/.kde/share/apps/basket/backgrounds/".
 
61
        static QString templatesFolder();   /// << @return e.g. "/home/username/.kde/share/apps/basket/templates/".
 
62
        static QString tempCutFolder();     /// << @return e.g. "/home/username/.kde/share/apps/basket/temp-cut/".   (was ".tmp/")
 
63
 
 
64
        // Various Things:
 
65
        static QString openNoteIcon();      /// << @return the icon used for the "Open" action on notes.
 
66
        static KMainWindow* mainWindow();
 
67
        static KConfig* config();
 
68
        static KAboutData* about() { return &basketAbout; };
46
69
};
47
70
 
48
71
#endif // GLOBAL_H