ksync Library API Documentation

ksync.h

00001 #ifndef KSYNC_H
00002 #define KSYNC_H
00003 // $Id: ksync.h,v 1.2 2002/05/15 17:23:57 gioele Exp $ 
00004 
00005 #include <kapplication.h>
00006 #include <kmainwindow.h>
00007 #include <kaccel.h>
00008 #include <kaction.h>
00009 
00010 class KSyncView;
00011 
00026 class KSync : public KMainWindow
00027 {
00028   Q_OBJECT
00029 
00030   friend class KSyncView;
00031 
00032   public:
00035     KSync(QWidget* parent=0, const char* name=0);
00036     ~KSync();
00037 
00040     void openDocumentFile(const KURL& url=0);
00045   protected:
00049     void saveOptions();
00052     void readOptions();
00054     void initActions();
00057     void initStatusBar();
00060     void initView();
00067     virtual bool queryClose();
00074     virtual bool queryExit();
00079     virtual void saveProperties(KConfig *_cfg);
00084     virtual void readProperties(KConfig *_cfg);
00085 
00086   public slots:
00088     void slotFileNewWindow();
00090     void slotFileNew();
00092     void slotFileOpen();
00094     void slotFileOpenRecent(const KURL& url);
00096     void slotFileSave();
00098     void slotFileSaveAs();
00100     void slotFileClose();
00102     void slotFilePrint();
00106     void slotFileQuit();
00110     void slotEditCut();
00113     void slotEditCopy();
00116     void slotEditPaste();
00119     void slotViewToolBar();
00122     void slotViewStatusBar();
00126     void slotStatusMsg(const QString &text);
00127 
00128   private:
00130     KConfig *config;
00136     KSyncView *mView;
00137 
00138     // KAction pointers to enable/disable actions
00139     KAction* fileNewWindow;
00140     KAction* fileNew;
00141     KAction* fileOpen;
00142     KRecentFilesAction* fileOpenRecent;
00143     KAction* fileSave;
00144     KAction* fileSaveAs;
00145     KAction* fileClose;
00146     KAction* filePrint;
00147     KAction* fileQuit;
00148     KAction* editCut;
00149     KAction* editCopy;
00150     KAction* editPaste;
00151     KToggleAction* viewToolBar;
00152     KToggleAction* viewStatusBar;
00153 };
00154  
00155 #endif // KSYNC_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:48 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001