korganizer
korganizer_part.h
Go to the documentation of this file.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 #ifndef KORGANIZER_PART_H
00026 #define KORGANIZER_PART_H
00027
00028 #include <kurl.h>
00029 #include <kparts/part.h>
00030
00031 #include <korganizer/mainwindow.h>
00032
00033 class CalendarView;
00034 class ActionManager;
00035
00036 namespace KCal {
00037 class Calendar;
00038 class Incidence;
00039 }
00040 using namespace KCal;
00041 namespace KParts {
00042 class StatusBarExtension;
00043 }
00044 namespace KOrg {
00045 class CalendarViewBase;
00046 }
00047
00048 class KOrganizerPart: public KParts::ReadOnlyPart,
00049 public KOrg::MainWindow
00050 {
00051 Q_OBJECT
00052 public:
00053 KOrganizerPart( QWidget *parentWidget, QObject *parent, const QVariantList & );
00054 virtual ~KOrganizerPart();
00055
00056 virtual KOrg::CalendarViewBase *view() const;
00057
00067 virtual bool openURL( const KUrl &url, bool merge = false );
00068
00070 virtual bool saveURL();
00071
00073 virtual bool saveAsURL( const KUrl &kurl );
00074
00076 virtual KUrl getCurrentURL() const;
00077
00078 virtual KXMLGUIFactory *mainGuiFactory() { return factory(); }
00079 virtual KXMLGUIClient *mainGuiClient() { return this; }
00080 virtual QWidget *topLevelWidget();
00081 virtual ActionManager *actionManager();
00082 virtual KActionCollection *getActionCollection() const { return actionCollection(); }
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 private:
00094 CalendarView *mView;
00095 ActionManager *mActionManager;
00096 KParts::StatusBarExtension *mStatusBarExtension;
00097 QWidget *mTopLevelWidget;
00098
00099 signals:
00100 void textChanged( const QString & );
00101 };
00102
00103 #endif