korganizer_part.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 #ifndef KORGANIZER_PART_H
00025 #define KORGANIZER_PART_H
00026
00027 #include <kurl.h>
00028 #include <kparts/browserextension.h>
00029
00030
00031 #include <korganizer/mainwindow.h>
00032
00033
00034
00035 class KInstance;
00036 class KAboutData;
00037 class KOrganizerBrowserExtension;
00038 class KProcess;
00039
00040 class CalendarView;
00041 class ActionManager;
00042
00043 namespace KCal {
00044 class CalendarResources;
00045 class Calendar;
00046 class Incidence;
00047 }
00048 using namespace KCal;
00049 namespace KParts {
00050 class StatusBarExtension;
00051 }
00052 namespace KOrg {
00053 class CalendarViewBase;
00054 }
00055
00056 class KOrganizerPart: public KParts::ReadOnlyPart,
00057 public KOrg::MainWindow
00058 {
00059 Q_OBJECT
00060 public:
00061 KOrganizerPart( QWidget *parentWidget, const char *widgetName,
00062 QObject *parent, const char *name, const QStringList & );
00063 virtual ~KOrganizerPart();
00064
00065 static KAboutData *createAboutData();
00066
00067 virtual KOrg::CalendarViewBase *view() const;
00068
00070 virtual bool openURL( const KURL &url, bool merge = false );
00072 virtual bool saveURL();
00074 virtual bool saveAsURL( const KURL &kurl );
00075
00077 virtual KURL getCurrentURL() const;
00078
00079 virtual KXMLGUIFactory *mainGuiFactory() { return factory(); }
00080 virtual KXMLGUIClient *mainGuiClient() { return this; }
00081 virtual QWidget *topLevelWidget();
00082 virtual ActionManager *actionManager();
00083 virtual void showStatusMessage( const QString &message );
00084
00085 void setTitle() {};
00086
00087 public slots:
00088 void slotChangeInfo( Incidence * );
00089
00090 protected:
00091 virtual bool openFile();
00092
00093 protected slots:
00094 void startCompleted( KProcess * );
00095
00096 void configureKeyBindings();
00097
00098 private:
00099 CalendarView *mView;
00100 ActionManager *mActionManager;
00101 KOrganizerBrowserExtension *mBrowserExtension;
00102 KParts::StatusBarExtension *mStatusBarExtension;
00103
00104 signals:
00105 void textChanged( const QString & );
00106 };
00107
00108 class KOrganizerBrowserExtension : public KParts::BrowserExtension
00109 {
00110 Q_OBJECT
00111 friend class KOrganizerPart;
00112 public:
00113 KOrganizerBrowserExtension( KOrganizerPart *parent );
00114 virtual ~KOrganizerBrowserExtension();
00115 };
00116
00117 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.