~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/classwizard/classwizarddlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#ifndef CLASSWIZARDDLG_H
7
7
#define CLASSWIZARDDLG_H
8
8
 
9
 
#include <wx/dialog.h>
 
9
#include <wx/arrstr.h>
 
10
#include "scrollingdialog.h"
10
11
#include <wx/string.h>
11
12
 
 
13
#include <vector>
 
14
 
12
15
class wxCommandEvent;
13
16
class wxUpdateUIEvent;
14
17
 
15
 
class ClassWizardDlg : public wxDialog
 
18
class ClassWizardDlg : public wxScrollingDialog
16
19
{
17
20
    public:
18
 
        ClassWizardDlg(wxWindow* parent);
 
21
        // livecycle
 
22
         ClassWizardDlg(wxWindow* parent);
19
23
        ~ClassWizardDlg();
20
 
        const wxString& GetHeaderFilename() const { return m_Header; }
 
24
 
 
25
        // access
 
26
        const wxString& GetHeaderFilename()         const { return m_Header;         }
 
27
        bool  IsValidImplementationFilename()       const { return m_GenerateImplementation && m_Implementation != _T(""); }
21
28
        const wxString& GetImplementationFilename() const { return m_Implementation; }
 
29
 
22
30
    private:
 
31
        struct MemberVar_impl { wxString Typ; wxString Var; wxString Get; wxString Set; };
 
32
        typedef struct MemberVar_impl MemberVar;
 
33
        typedef std::vector<MemberVar> MemberVarsArray;
 
34
 
 
35
        // events
23
36
        void OnUpdateUI(wxUpdateUIEvent& event);
24
37
        void OnNameChange(wxCommandEvent& event);
25
38
        void OnAncestorChange(wxCommandEvent& event);
 
39
        void OnAddMemberVar(wxCommandEvent& event);
 
40
        void OnRemoveMemberVar(wxCommandEvent& event);
26
41
        void OnCommonDirClick(wxCommandEvent& event);
27
42
        void OnLowerCaseClick(wxCommandEvent& event);
28
43
        void OnIncludeDirClick(wxCommandEvent& event);
31
46
        void OnOKClick(wxCommandEvent& event);
32
47
        void OnCancelClick(wxCommandEvent& event);
33
48
 
 
49
        // methods
 
50
        bool DoHeader();
 
51
        bool DoImpl();
 
52
 
34
53
        void DoGuardBlock();
35
54
        void DoFileNames();
36
 
 
37
 
        wxString m_Header;
38
 
        wxString m_Implementation;
 
55
        void DoForceDirectory(const wxFileName & filename);
 
56
        wxString DoMemVarRepr(const wxString & typ, const wxString & var);
 
57
 
 
58
        // member variables
 
59
        wxString        m_Header;
 
60
        wxString        m_Implementation;
 
61
 
 
62
        wxString        m_Name;
 
63
        wxString        m_Arguments;
 
64
        wxArrayString   m_NameSpaces;
 
65
 
 
66
        bool            m_HasDestructor;
 
67
        bool            m_VirtualDestructor;
 
68
        bool            m_HasCopyCtor;
 
69
        bool            m_HasAssignmentOp;
 
70
 
 
71
        bool            m_Inherits;
 
72
        wxString        m_Ancestor;
 
73
        wxString        m_AncestorFilename;
 
74
        wxString        m_AncestorScope;
 
75
 
 
76
        MemberVarsArray m_MemberVars;
 
77
 
 
78
        bool            m_Documentation;
 
79
 
 
80
        bool            m_CommonDir;
 
81
        wxString        m_IncludeDir;
 
82
        wxString        m_ImplDir;
 
83
 
 
84
        bool            m_GuardBlock;
 
85
        wxString        m_GuardWord;
 
86
 
 
87
        bool            m_GenerateImplementation;
 
88
        wxString        m_HeaderInclude;
 
89
 
 
90
        wxString        m_TabStr;
 
91
        wxString        m_EolStr;
39
92
 
40
93
        DECLARE_EVENT_TABLE()
41
94
};