summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (side-by-side diff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /korganizer/mainwindow.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'korganizer/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.h115
1 files changed, 115 insertions, 0 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
new file mode 100644
index 0000000..ee4aaa6
--- a/dev/null
+++ b/korganizer/mainwindow.h
@@ -0,0 +1,115 @@
+#ifndef KORGE_MAINWINDOW_H
+#define KORGE_MAINWINDOW_H
+
+#include <qmainwindow.h>
+#include <qtimer.h>
+#include <qdict.h>
+
+#include <libkcal/incidence.h>
+#include "simplealarmclient.h"
+
+class QAction;
+class CalendarView;
+class KSyncProfile;
+#ifdef DESKTOP_VERSION
+
+#define QPEToolBar QToolBar
+#define QPEMenuBar QMenuBar
+#endif
+class QPEToolBar;
+
+namespace KCal {
+class CalendarLocal;
+}
+
+using namespace KCal;
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+ public:
+ MainWindow( QWidget *parent = 0, const char *name = 0, QString command = "");
+ ~MainWindow();
+ public slots:
+ void configureAgenda( int );
+ void recieve( const QCString& msg, const QByteArray& data );
+ static QString defaultFileName();
+ static QString resourcePath();
+ protected slots:
+ void setCaptionToDates();
+ int ringSync();
+ void multiSync( bool askforPrefs = false );
+ void about();
+ void faq();
+ void usertrans();
+ void features();
+ void synchowto();
+ void whatsNew();
+ void keyBindings();
+ void aboutAutoSaving();;
+ void aboutKnownBugs();
+
+ void processIncidenceSelection( Incidence * );
+
+ void importQtopia();
+ void importBday();
+ void importIcal();
+ void importFile( QString, bool );
+ void quickImportIcal();
+
+ void slotModifiedChanged( bool );
+
+ void save();
+ void configureToolBar( int );
+ void printSel();
+ void printCal();
+ void saveCalendar();
+ void loadCalendar();
+ void exportVCalendar();
+
+ void slotSyncMenu( int );
+ void syncSSH();
+ void confSync();
+ void syncSharp();
+ void syncLocalFile();
+ bool syncWithFile( QString, bool );
+ void quickSyncLocalFile();
+
+
+ protected:
+ void displayText( QString, QString);
+ void displayFile( QString, QString);
+
+ void enableIncidenceActions( bool );
+
+ private:
+ void saveOnClose();
+ int mCurrentSyncProfile;
+ void syncRemote( KSyncProfile* , bool ask = true);
+ void fillSyncMenu();
+ bool mFlagKeyPressed;
+ bool mBlockAtStartup;
+ QPEToolBar *iconToolBar;
+ void initActions();
+ void setDefaultPreferences();
+ void keyPressEvent ( QKeyEvent * ) ;
+ void keyReleaseEvent ( QKeyEvent * ) ;
+ QPopupMenu *configureToolBarMenu;
+ QPopupMenu *configureAgendaMenu, *syncMenu;
+ CalendarLocal *mCalendar;
+ CalendarView *mView;
+ QString getPassword();
+ QAction *mNewSubTodoAction;
+
+ QAction *mShowAction;
+ QAction *mEditAction;
+ QAction *mDeleteAction;
+ void closeEvent( QCloseEvent* ce );
+ SimpleAlarmClient mAlarmClient;
+ QTimer mSaveTimer;
+ bool mBlockSaveFlag;
+ bool mCalendarModifiedFlag;
+ QPixmap loadPixmap( QString );
+};
+
+#endif