2
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3
* http://www.gnu.org/licenses/gpl-3.0.html
6
#ifndef CLASSWIZARDDLG_H
7
#define CLASSWIZARDDLG_H
10
#include "scrollingdialog.h"
11
#include <wx/string.h>
16
class wxUpdateUIEvent;
18
class ClassWizardDlg : public wxScrollingDialog
22
ClassWizardDlg(wxWindow* parent);
26
const wxString& GetHeaderFilename() const { return m_Header; }
27
bool IsValidImplementationFilename() const { return m_GenerateImplementation && m_Implementation != _T(""); }
28
const wxString& GetImplementationFilename() const { return m_Implementation; }
29
bool AddPathToProject() const { return m_AddPathToProject; }
30
wxString GetIncludeDir();
33
struct MemberVar_impl { wxString Typ; wxString Var; wxString Get; wxString Set; int Scp; };
34
typedef struct MemberVar_impl MemberVar;
35
typedef std::vector<MemberVar> MemberVarsArray;
38
void OnUpdateUI(wxUpdateUIEvent& event);
39
void OnNameChange(wxCommandEvent& event);
40
void OnAncestorChange(wxCommandEvent& event);
41
void OnAddMemberVar(wxCommandEvent& event);
42
void OnRemoveMemberVar(wxCommandEvent& event);
43
void OnCommonDirClick(wxCommandEvent& event);
44
void OnLowerCaseClick(wxCommandEvent& event);
45
void OnIncludeDirClick(wxCommandEvent& event);
46
void OnImplDirClick(wxCommandEvent& event);
47
void OnHeaderChange(wxCommandEvent& event);
48
void OnOKClick(wxCommandEvent& event);
49
void OnCancelClick(wxCommandEvent& event);
50
void OnAddPathToProjectClick(wxCommandEvent& event);
58
void DoForceDirectory(const wxFileName & filename);
59
wxString DoMemVarRepr(const wxString & typ, const wxString & var, const int & scp);
63
wxString m_Implementation;
67
wxArrayString m_NameSpaces;
70
bool m_VirtualDestructor;
72
bool m_HasAssignmentOp;
76
wxString m_AncestorFilename;
77
wxString m_AncestorScope;
79
MemberVarsArray m_MemberVars;
83
bool m_AddPathToProject;
84
bool m_UseRelativePath;
87
wxString m_IncludeDir;
93
bool m_GenerateImplementation;
94
wxString m_HeaderInclude;
102
#endif // CLASSWIZARDDLG_H