ToolMap
Loading...
Searching...
No Matches
newtemplateprjwizard.h
1/***************************************************************************
2 newtemplateprjwizard.h
3 -------------------
4 copyright : (C) 2011 CREALP Lucien Schreiber
5 ***************************************************************************/
6
7/***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef _NEWTEMPLATEPRJWIZARD_H
17#define _NEWTEMPLATEPRJWIZARD_H
18
19// For compilers that support precompilation, includes "wx/wx.h".
20#include <wx/wxprec.h>
21
22// Include wxWidgets' headers
23#ifndef WX_PRECOMP
24#include <wx/wx.h>
25#endif
26
27#include <wx/filefn.h>
28#include <wx/filepicker.h>
29#include <wx/wizard.h>
30
31#include "../core/backupmanager.h"
32
33const int ID_NEWPRJ_SOURCEDIRCTRL = wxID_HIGHEST + 3;
34const int ID_NEWPRJ_DESTDIRCTRL = wxID_HIGHEST + 4;
35const int ID_NEWPRJ_DESTNAMECTRL = wxID_HIGHEST + 5;
36
37class NewTemplatePrjWizard : public wxWizard {
38 private:
39 wxWizardPageSimple* m_SourcePage;
40 wxWizardPageSimple* m_DestinationPage;
41
42 wxFilePickerCtrl* m_SourceFileCtrl;
43 wxDirPickerCtrl* m_DestDirCtrl;
44 wxTextCtrl* m_DestNameCtrl;
45 wxStaticText* m_DateCtrl;
46 wxStaticText* m_CommentCtrl;
47
48 BackupFile* m_BackupFileData;
49
50 void OnUpdateNextBtn(wxIdleEvent& event);
51
52 void OnSourceDirChanged(wxFileDirPickerEvent& event);
53
54 void _CreateControls();
55
56 DECLARE_EVENT_TABLE();
57
58 public:
59 NewTemplatePrjWizard(wxWindow* parent, int id, const wxString& title);
60
61 virtual ~NewTemplatePrjWizard();
62
63 inline BackupFile* GetBackupFileData() const;
64
65 virtual bool TransferDataFromWindow();
66
67 int ShowWizard();
68};
69
70inline BackupFile* NewTemplatePrjWizard::GetBackupFileData() const {
71 return m_BackupFileData;
72}
73
74#endif
Definition backupmanager.h:35
Definition newtemplateprjwizard.h:37