~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/plugins/scriptedwizard/filepathpanel.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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
 
4
 */
 
5
 
 
6
#ifndef FILEPATHPANEL_H
 
7
#define FILEPATHPANEL_H
 
8
 
 
9
#include <wx/wxprec.h>
 
10
 
 
11
#ifdef __BORLANDC__
 
12
    #pragma hdrstop
 
13
#endif
 
14
 
 
15
//(*Headers(FilePathPanel)
 
16
#include <wx/button.h>
 
17
#include <wx/checkbox.h>
 
18
#include <wx/checklst.h>
 
19
#include <wx/panel.h>
 
20
#include <wx/sizer.h>
 
21
#include <wx/stattext.h>
 
22
#include <wx/textctrl.h>
 
23
//*)
 
24
 
 
25
#include <wx/string.h>
 
26
 
 
27
class FilePathPanel: public wxPanel
 
28
{
 
29
        public:
 
30
 
 
31
                FilePathPanel(wxWindow* parent,wxWindowID id = -1);
 
32
                virtual ~FilePathPanel();
 
33
 
 
34
        wxString GetFilename() const { return txtFilename->GetValue(); }
 
35
        wxString GetHeaderGuard() const { return txtGuard->IsShown() ? txtGuard->GetValue() : _T(""); }
 
36
        bool GetAddToProject() const { return chkAddToProject->GetValue(); }
 
37
        void SetAddToProject(bool add);
 
38
        int GetTargetIndex();
 
39
        void SetFilePathSelectionFilter(const wxString& filter){ m_ExtFilter = filter; }
 
40
        void ShowHeaderGuard(bool show)
 
41
        {
 
42
            lblGuard->Show(show);
 
43
            txtGuard->Show(show);
 
44
        }
 
45
 
 
46
                //(*Identifiers(FilePathPanel)
 
47
                static const long ID_STATICTEXT1;
 
48
                static const long ID_STATICTEXT2;
 
49
                static const long ID_TEXTCTRL1;
 
50
                static const long ID_BUTTON1;
 
51
                static const long ID_STATICTEXT3;
 
52
                static const long ID_TEXTCTRL2;
 
53
                static const long ID_CHECKBOX1;
 
54
                static const long ID_STATICTEXT4;
 
55
                static const long ID_CHECKLISTBOX2;
 
56
                static const long ID_BUTTON2;
 
57
                static const long ID_BUTTON3;
 
58
                //*)
 
59
 
 
60
        private:
 
61
 
 
62
                //(*Handlers(FilePathPanel)
 
63
                void OntxtFilenameText(wxCommandEvent& event);
 
64
                void OnbtnBrowseClick(wxCommandEvent& event);
 
65
                void OnchkAddToProjectChange(wxCommandEvent& event);
 
66
                void OnbtnAllClick(wxCommandEvent& event);
 
67
                void OnbtnNoneClick(wxCommandEvent& event);
 
68
                //*)
 
69
 
 
70
                //(*Declarations(FilePathPanel)
 
71
                wxBoxSizer* BoxSizer2;
 
72
                wxTextCtrl* txtFilename;
 
73
                wxButton* btnBrowse;
 
74
                wxStaticText* lblGuard;
 
75
                wxTextCtrl* txtGuard;
 
76
                wxCheckBox* chkAddToProject;
 
77
                wxFlexGridSizer* FlexGridSizer1;
 
78
                wxCheckListBox* clbTargets;
 
79
                wxBoxSizer* BoxSizer6;
 
80
                wxButton* btnAll;
 
81
                wxButton* btnNone;
 
82
                wxBoxSizer* BoxSizer3;
 
83
                //*)
 
84
 
 
85
                wxString m_ExtFilter;
 
86
                int m_Selection;
 
87
 
 
88
                void ToggleVisibility(bool on);
 
89
 
 
90
                DECLARE_EVENT_TABLE()
 
91
};
 
92
 
 
93
#endif