~ubuntu-branches/ubuntu/karmic/rkward/karmic

« back to all changes in this revision

Viewing changes to rkward/rkglobals.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2006-11-06 16:30:00 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 feisty)
  • Revision ID: james.westby@ubuntu.com-20061106163000-qi8ju75eqecrfay7
* new upstream release
* depend on either php4-cli or php5-cli

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
class RKwardApp;
21
21
class RInterface;
22
22
class RObjectList;
23
 
class RKEditorManager;
24
23
class RKModificationTracker;
25
24
class RKComponentMap;
26
25
class KHelpDlg;
27
26
class RControlWindow;
28
 
 
29
 
// deletes the given char*, if it is not a special value. Does not set to 0.
30
 
#define DELETE_STRING(x) if (x && (x != RKGlobals::empty_char) && (x != RKGlobals::unknown_char)) { delete x; };
 
27
class QString;
31
28
 
32
29
/**
33
30
This class basically keeps some static pointers which are needed all over the place, so they won't have to be passed around.
43
40
/** destructor. Do not use. No instance needed of this class. Only static stuff inside */
44
41
        ~RKGlobals ();
45
42
 
46
 
/// static pointer to the app
47
 
        static RKwardApp *rkApp () { return app; }
48
43
/// static pointer to the RInterface
49
44
        static RInterface *rInterface () { return rinter; };
50
 
/// static pointer to the RObjectList
51
 
        static RObjectList *rObjectList () { return list; };
52
 
/// static pointer to the RKEditorManager
53
 
        static RKEditorManager *editorManager () { return manager; };
54
45
/// static pointer to the RKModificationTracker
55
46
        static RKModificationTracker *tracker () { return mtracker; };
56
47
/// static pointer to the RKComponentMap
60
51
/// static pointer to the RControlWindow
61
52
        static RControlWindow *controlWindow () { return rcontrol; };
62
53
 
63
 
/// an empty char
64
 
        static char *empty_char;
65
 
/// an unknown value
66
 
        static char *unknown_char;
67
54
/// a NA double
68
55
        static double na_double;
69
56
        
71
58
        static int marginHint ();
72
59
/// returns KDialog::spacingHint (), without the need to include kdialog.h in all the sources
73
60
        static int spacingHint ();
 
61
 
 
62
        static void deleteStrings (QString **strings, int count);
 
63
 
74
64
private:
75
65
        friend class RKwardApp;
76
 
        static RKwardApp *app;
77
66
        static RInterface *rinter;
78
 
        static RObjectList *list;
79
 
        static RKEditorManager *manager;
80
67
        static RKModificationTracker *mtracker;
81
68
        static RKComponentMap *cmap;
82
69
        static KHelpDlg *helpdlg;