keduca
keducaeditorstartdialog.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 #ifndef KEDUCAEDITORSTARTDIALOG_H
00019 #define KEDUCAEDITORSTARTDIALOG_H
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024 
00025 #include "keducaeditorstartdialogbase.h"
00026 
00027 
00028 class KEducaBuilder;
00029 
00032 class KEducaEditorStartDialog : public KEducaEditorStartDialogBase{
00033     Q_OBJECT
00034 public:
00035     enum {Rejected=0, OpenDoc=1, OpenRecentDoc=2, Gallery=3, NewDoc=4}StartChoice;
00038     KEducaEditorStartDialog(KEducaBuilder * parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00041     virtual ~KEducaEditorStartDialog();
00042 
00043     KURL getURL()const;
00044     int exec();
00045 
00046 private:
00047     KURL _selectedURL;
00048     int _choice;
00049     unsigned int const _maxRecentDocumentItems;
00050     void buildRecentFilesList();
00051 
00052 protected slots:
00053     void accept();
00054 
00055 private slots:
00056     void slotChoiceChanged(int id);
00057 
00058 };
00059 #endif