Changeset View
Changeset View
Standalone View
Standalone View
krusader/krglobal.h
Show All 23 Lines | |||||
24 | 24 | | |||
25 | // QtGui | 25 | // QtGui | ||
26 | #include <QKeySequence> | 26 | #include <QKeySequence> | ||
27 | 27 | | |||
28 | #include <KConfigCore/KConfigGroup> | 28 | #include <KConfigCore/KConfigGroup> | ||
29 | 29 | | |||
30 | class KConfig; | 30 | class KConfig; | ||
31 | class KMountMan; | 31 | class KMountMan; | ||
32 | class KRarcHandler; | ||||
32 | class KrBookmarkHandler; | 33 | class KrBookmarkHandler; | ||
33 | class KRslots; | 34 | class KRslots; | ||
34 | class KrusaderView; | 35 | class KrusaderView; | ||
35 | class UserAction; | 36 | class UserAction; | ||
36 | class JobMan; | 37 | class JobMan; | ||
37 | class QWidget; | 38 | class QWidget; | ||
38 | class KrPanel; | 39 | class KrPanel; | ||
39 | 40 | | |||
40 | // global references to frequently used objects | 41 | // global references to frequently used objects | ||
41 | 42 | | |||
42 | class KrGlobal | 43 | class KrGlobal | ||
43 | { | 44 | { | ||
44 | public: | 45 | public: | ||
45 | static KConfig *config; // allow everyone to access the config | 46 | static KConfig *config; // allow everyone to access the config | ||
46 | static KMountMan *mountMan; // krusader's Mount Manager | 47 | static KMountMan *mountMan; // krusader's Mount Manager | ||
48 | static KRarcHandler *arcMan; //! Manages archives in several parts of the code | ||||
47 | static KrBookmarkHandler *bookman; | 49 | static KrBookmarkHandler *bookman; | ||
48 | static KRslots *slot; | 50 | static KRslots *slot; | ||
49 | static KrusaderView *mainView; // The GUI | 51 | static KrusaderView *mainView; // The GUI | ||
50 | static QWidget *mainWindow; | 52 | static QWidget *mainWindow; | ||
51 | static UserAction *userAction; | 53 | static UserAction *userAction; | ||
52 | static JobMan *jobMan; | 54 | static JobMan *jobMan; | ||
53 | // static ListPanel *activePanel; | 55 | // static ListPanel *activePanel; | ||
54 | static KrPanel *activePanel(); | 56 | static KrPanel *activePanel(); | ||
55 | 57 | | |||
56 | //HACK - used by [ListerTextArea|KrSearchDialog|LocateDlg]:keyPressEvent() | 58 | //HACK - used by [ListerTextArea|KrSearchDialog|LocateDlg]:keyPressEvent() | ||
57 | static QKeySequence copyShortcut; | 59 | static QKeySequence copyShortcut; | ||
58 | 60 | | |||
59 | // static void enableAction(const char *name, bool enable); | 61 | // static void enableAction(const char *name, bool enable); | ||
60 | // static QAction *getAction(const char *name); | 62 | // static QAction *getAction(const char *name); | ||
61 | 63 | | |||
62 | /** Version of saved configuration. Use this to detect configuration updates. */ | 64 | /** Version of saved configuration. Use this to detect configuration updates. */ | ||
63 | static const int sConfigVersion = 1; | 65 | static const int sConfigVersion = 1; | ||
64 | static int sCurrentConfigVersion; | 66 | static int sCurrentConfigVersion; | ||
65 | }; | 67 | }; | ||
66 | 68 | | |||
67 | #define krConfig KrGlobal::config | 69 | #define krConfig KrGlobal::config | ||
68 | #define krMtMan (*(KrGlobal::mountMan)) | 70 | #define krMtMan (*(KrGlobal::mountMan)) | ||
71 | #define krArcMan (*(KrGlobal::arcMan)) | ||||
69 | #define krBookMan KrGlobal::bookman | 72 | #define krBookMan KrGlobal::bookman | ||
70 | #define SLOTS KrGlobal::slot | 73 | #define SLOTS KrGlobal::slot | ||
71 | #define MAIN_VIEW KrGlobal::mainView | 74 | #define MAIN_VIEW KrGlobal::mainView | ||
72 | #define krMainWindow KrGlobal::mainWindow | 75 | #define krMainWindow KrGlobal::mainWindow | ||
73 | #define krUserAction KrGlobal::userAction | 76 | #define krUserAction KrGlobal::userAction | ||
74 | #define krJobMan KrGlobal::jobMan | 77 | #define krJobMan KrGlobal::jobMan | ||
75 | 78 | | |||
76 | #define ACTIVE_PANEL (KrGlobal::activePanel()) | 79 | #define ACTIVE_PANEL (KrGlobal::activePanel()) | ||
Show All 17 Lines |