summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.h
Unidiff
Diffstat (limited to 'korganizer/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index 8dd55ac..076ab94 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -14,43 +14,46 @@
14#ifndef DESKTOP_VERSION 14#ifndef DESKTOP_VERSION
15#include <qcopchannel_qws.h> 15#include <qcopchannel_qws.h>
16#endif 16#endif
17class QAction; 17class QAction;
18class CalendarView; 18class CalendarView;
19class KSyncProfile; 19class KSyncProfile;
20#ifdef DESKTOP_VERSION 20#ifdef DESKTOP_VERSION
21 21
22#define QPEToolBar QToolBar 22#define QPEToolBar QToolBar
23#define QPEMenuBar QMenuBar 23#define QPEMenuBar QMenuBar
24#endif 24#endif
25class QPEToolBar; 25class QPEToolBar;
26class QPEMenuBar;
26 27
27 28
28namespace KCal { 29namespace KCal {
29class CalendarLocal; 30class CalendarLocal;
30} 31}
31 32
32using namespace KCal; 33using namespace KCal;
33 34
34class MainWindow : public QMainWindow 35class MainWindow : public QMainWindow
35{ 36{
36 Q_OBJECT 37 Q_OBJECT
37 public: 38 public:
38 MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); 39 MainWindow( QWidget *parent = 0, const char *name = 0, QString command = "");
39 ~MainWindow(); 40 ~MainWindow();
40 bool beamReceiveEnabled(); 41 bool beamReceiveEnabled();
41 static QString defaultFileName(); 42 static QString defaultFileName();
42 static QString syncFileName(); 43 static QString syncFileName();
43 static QString resourcePath(); 44 static QString resourcePath();
44 public slots: 45 public slots:
46 void updateWeekNum(const KCal::DateList &);
47 void updateWeek(QDate);
45 virtual void showMaximized (); 48 virtual void showMaximized ();
46 void configureAgenda( int ); 49 void configureAgenda( int );
47 void recieve( const QCString& msg, const QByteArray& data ); 50 void recieve( const QCString& msg, const QByteArray& data );
48 protected slots: 51 protected slots:
49 void setCaptionToDates(); 52 void setCaptionToDates();
50 void about(); 53 void about();
51 void licence(); 54 void licence();
52 void faq(); 55 void faq();
53 void usertrans(); 56 void usertrans();
54 void features(); 57 void features();
55 void synchowto(); 58 void synchowto();
56 void kdesynchowto(); 59 void kdesynchowto();
@@ -75,25 +78,26 @@ class MainWindow : public QMainWindow
75 void saveStopTimer(); 78 void saveStopTimer();
76 void configureToolBar( int ); 79 void configureToolBar( int );
77 void printSel(); 80 void printSel();
78 void printCal(); 81 void printCal();
79 void saveCalendar(); 82 void saveCalendar();
80 void loadCalendar(); 83 void loadCalendar();
81 void exportVCalendar(); 84 void exportVCalendar();
82 void fillFilterMenu(); 85 void fillFilterMenu();
83 void selectFilter( int ); 86 void selectFilter( int );
84 void exportToPhone( int ); 87 void exportToPhone( int );
85 void toggleBeamReceive(); 88 void toggleBeamReceive();
86 void disableBR(bool); 89 void disableBR(bool);
87 90 signals:
91 void selectWeek ( int );
88 private slots: 92 private slots:
89 void showConfigureAgenda(); 93 void showConfigureAgenda();
90 void getFile( bool ); 94 void getFile( bool );
91 void syncFileRequest(); 95 void syncFileRequest();
92 96
93 protected: 97 protected:
94 void displayText( QString, QString); 98 void displayText( QString, QString);
95 void enableIncidenceActions( bool ); 99 void enableIncidenceActions( bool );
96 100
97 private: 101 private:
98 bool mBRdisabled; 102 bool mBRdisabled;
99#ifndef DESKTOP_VERSION 103#ifndef DESKTOP_VERSION
@@ -107,24 +111,25 @@ class MainWindow : public QMainWindow
107 bool mBlockAtStartup; 111 bool mBlockAtStartup;
108 QPEToolBar *iconToolBar; 112 QPEToolBar *iconToolBar;
109 void initActions(); 113 void initActions();
110 void setDefaultPreferences(); 114 void setDefaultPreferences();
111 void keyPressEvent ( QKeyEvent * ) ; 115 void keyPressEvent ( QKeyEvent * ) ;
112 void keyReleaseEvent ( QKeyEvent * ) ; 116 void keyReleaseEvent ( QKeyEvent * ) ;
113 QPopupMenu *configureToolBarMenu; 117 QPopupMenu *configureToolBarMenu;
114 QPopupMenu *selectFilterMenu; 118 QPopupMenu *selectFilterMenu;
115 QPopupMenu *configureAgendaMenu, *syncMenu; 119 QPopupMenu *configureAgendaMenu, *syncMenu;
116 CalendarLocal *mCalendar; 120 CalendarLocal *mCalendar;
117 CalendarView *mView; 121 CalendarView *mView;
118 QAction *mNewSubTodoAction; 122 QAction *mNewSubTodoAction;
123 QPEMenuBar *menuBarWeek;
119 124
120 QAction *mShowAction; 125 QAction *mShowAction;
121 QAction *mEditAction; 126 QAction *mEditAction;
122 QAction *mDeleteAction; 127 QAction *mDeleteAction;
123 QAction *mCloneAction; 128 QAction *mCloneAction;
124 QAction *mMoveAction; 129 QAction *mMoveAction;
125 QAction *mBeamAction; 130 QAction *mBeamAction;
126 QAction *mCancelAction; 131 QAction *mCancelAction;
127 132
128 QAction *mToggleNav; 133 QAction *mToggleNav;
129 QAction *mToggleFilter; 134 QAction *mToggleFilter;
130 QAction *mToggleAllday; 135 QAction *mToggleAllday;