korganizer.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef KORGANIZER_H
00031 #define KORGANIZER_H
00032
00033 #include <kurl.h>
00034
00035 #include <korganizer/mainwindow.h>
00036 #include <korganizer/part.h>
00037 #include <kparts/mainwindow.h>
00038
00039 class KTempFile;
00040 class KRecentFilesAction;
00041 class KOWindowList;
00042 class KToggleAction;
00043 class KProcess;
00044 class KONewStuff;
00045 class ActionManager;
00046 class CalendarView;
00047
00048 namespace KCal { class CalendarResources; }
00049
00050 using namespace KCal;
00051
00052
00053 typedef KOrg::MainWindow KOrgMainWindow;
00054 typedef KParts::MainWindow KPartsMainWindow;
00055
00064 class KOrganizer : public KPartsMainWindow, public KOrgMainWindow
00065 {
00066 Q_OBJECT
00067 public:
00075 KOrganizer( const char *name = 0 );
00076 virtual ~KOrganizer();
00077
00078 void init( bool hasDocument );
00079
00080 KOrg::CalendarViewBase *view() const;
00081 ActionManager *actionManager() { return mActionManager; }
00082
00087 bool openURL( const KURL &url, bool merge = false );
00089 bool saveURL();
00091 bool saveAsURL( const KURL & kurl );
00093 KURL getCurrentURL() const;
00094
00095 virtual KXMLGUIFactory *mainGuiFactory() { return factory(); }
00096 virtual KXMLGUIClient *mainGuiClient() { return this; }
00097 virtual QWidget *topLevelWidget() { return this; }
00098
00099 public slots:
00101 void showStatusMessage( const QString & );
00102
00103 protected slots:
00104
00108 void readSettings();
00109
00111 void writeSettings();
00112
00114 void configureToolbars();
00115
00116 void toggleStatusBar();
00117
00118 void statusBarPressed( int );
00119
00121 void setTitle();
00122
00123 void setNumIncoming( int );
00124 void setNumOutgoing( int );
00125
00126 void newMainWindow( const KURL & );
00127
00128 void configureKeyBindings();
00129
00130 protected:
00131 void initActions();
00132
00133
00135 bool queryClose();
00136 bool queryExit();
00137
00138
00139 void saveProperties( KConfig * );
00140 void readProperties( KConfig * );
00141
00142 private:
00143 CalendarView *mCalendarView;
00144 KOrg::Part::List mParts;
00145
00146 KToggleAction *mStatusBarAction;
00147
00148
00149 enum { ID_HISTORY, ID_GENERAL, ID_ACTIVE, ID_MESSAGES_IN, ID_MESSAGES_OUT };
00150 ActionManager *mActionManager;
00151 };
00152
00153 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.