ToolMap
Loading...
Searching...
No Matches
projectdefnew_dlg.h
1/***************************************************************************
2 projectdefnew_dlg.h
3 New Project creation first dialog
4 -------------------
5 copyright : (C) 2007 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17#ifndef _PROJECTDEFNEW_DLG_H_
18#define _PROJECTDEFNEW_DLG_H_
19
20#include <wx/statline.h>
21
22#include "../core/prjdefmemmanage.h" // for storing project def in memory
23#include "../core/tmvalidator.h" // for controls validation
24#include "../core/wxdirpickerctrlbest.h" // directory picker (best version)
25
26#define ID_DLGPD_PROJ_PATH_NEW 10019
27#define ID_DLGPD_PROJ_NAME_NEW 10020
28#define ID_DLGPD_PROJ_UNIT_NEW 10021
29#define ID_DLGPD_PROJ_PROJECTION_NEW 10022
30#define ID_PROJECTDEFNEW 10018
31// #define ID_TEXTCTRL1 10114
32// #define ID_TEXTCTRL2 10115
33#define SYMBOL_PROJECTDEFNEW_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX | wxTAB_TRAVERSAL
34#define SYMBOL_PROJECTDEFNEW_TITLE _("New project")
35#define SYMBOL_PROJECTDEFNEW_IDNAME ID_PROJECTDEFNEW
36#define SYMBOL_PROJECTDEFNEW_SIZE wxSize(400, 300)
37#define SYMBOL_PROJECTDEFNEW_POSITION wxDefaultPosition
38
39class ProjectDefNew : public wxDialog {
40 DECLARE_DYNAMIC_CLASS(ProjectDefNew)
41
42 DECLARE_EVENT_TABLE()
43 PrjDefMemManage* m_PrjDefinition;
44
45 // private functions
46 bool CheckIdleRules();
47
48 void OnIdleWait(wxIdleEvent& event);
49
50 public:
53
54 ProjectDefNew(wxWindow* parent, PrjDefMemManage* PrjDefinition, wxWindowID id = SYMBOL_PROJECTDEFNEW_IDNAME,
55 const wxString& caption = SYMBOL_PROJECTDEFNEW_TITLE,
56 const wxPoint& pos = SYMBOL_PROJECTDEFNEW_POSITION, const wxSize& size = SYMBOL_PROJECTDEFNEW_SIZE,
57 long style = SYMBOL_PROJECTDEFNEW_STYLE);
58
60 bool Create(wxWindow* parent, wxWindowID id = SYMBOL_PROJECTDEFNEW_IDNAME,
61 const wxString& caption = SYMBOL_PROJECTDEFNEW_TITLE,
62 const wxPoint& pos = SYMBOL_PROJECTDEFNEW_POSITION, const wxSize& size = SYMBOL_PROJECTDEFNEW_SIZE,
63 long style = SYMBOL_PROJECTDEFNEW_STYLE);
64
67
69 void Init();
70
72 void CreateControls();
73
74 PrjDefMemManage* GetProjectDefinition() {
75 return m_PrjDefinition;
76 }
77
78 wxDirPickerCtrlBest* m_DlgPD_Proj_Path;
79 wxTextCtrl* m_DlgPd_Proj_Name;
80 wxChoice* m_DlgPd_Proj_Unit;
81 wxChoice* m_DlgPd_Proj_Projection;
82 wxButton* m_DlgPd_Button_Ok;
83
84 virtual bool TransferDataFromWindow();
85};
86
87#endif
Definition prjdefmemmanage.h:54
Definition projectdefnew_dlg.h:39
bool Create(wxWindow *parent, wxWindowID id=SYMBOL_PROJECTDEFNEW_IDNAME, const wxString &caption=SYMBOL_PROJECTDEFNEW_TITLE, const wxPoint &pos=SYMBOL_PROJECTDEFNEW_POSITION, const wxSize &size=SYMBOL_PROJECTDEFNEW_SIZE, long style=SYMBOL_PROJECTDEFNEW_STYLE)
Creation.
Definition projectdefnew_dlg.cpp:63
~ProjectDefNew()
Destructor.
Definition projectdefnew_dlg.cpp:76
ProjectDefNew()
Constructors.
Definition projectdefnew_dlg.cpp:50
void Init()
Initialises member variables.
Definition projectdefnew_dlg.cpp:78
void CreateControls()
Creates the controls and sizers.
Definition projectdefnew_dlg.cpp:113
Definition wxdirpickerctrlbest.h:40