Code::Blocks
SVN r11506
|
#include <filepathpanel.h>
Public Member Functions | |
FilePathPanel (wxWindow *parent, wxWindowID id=-1) | |
virtual | ~FilePathPanel () |
wxString | GetFilename () const |
wxString | GetHeaderGuard () const |
bool | GetAddToProject () const |
void | SetAddToProject (bool add) |
int | GetTargetIndex () |
void | SetFilePathSelectionFilter (const wxString &filter) |
void | ShowHeaderGuard (bool show) |
Static Public Attributes | |
static const long | ID_STATICTEXT1 = wxNewId() |
static const long | ID_STATICTEXT2 = wxNewId() |
static const long | ID_TEXTCTRL1 = wxNewId() |
static const long | ID_BUTTON1 = wxNewId() |
static const long | ID_STATICTEXT3 = wxNewId() |
static const long | ID_TEXTCTRL2 = wxNewId() |
static const long | ID_CHECKBOX1 = wxNewId() |
static const long | ID_STATICTEXT4 = wxNewId() |
static const long | ID_CHECKLISTBOX2 = wxNewId() |
static const long | ID_BUTTON2 = wxNewId() |
static const long | ID_BUTTON3 = wxNewId() |
Private Member Functions | |
void | OntxtFilenameText (wxCommandEvent &event) |
void | OnbtnBrowseClick (wxCommandEvent &event) |
void | OnchkAddToProjectChange (wxCommandEvent &event) |
void | OnbtnAllClick (wxCommandEvent &event) |
void | OnbtnNoneClick (wxCommandEvent &event) |
void | ToggleVisibility (bool on) |
Private Attributes | |
wxButton * | btnAll |
wxStaticText * | lblGuard |
wxFlexGridSizer * | FlexGridSizer1 |
wxBoxSizer * | BoxSizer3 |
wxCheckListBox * | clbTargets |
wxBoxSizer * | BoxSizer2 |
wxCheckBox * | chkAddToProject |
wxTextCtrl * | txtFilename |
wxButton * | btnNone |
wxButton * | btnBrowse |
wxTextCtrl * | txtGuard |
wxBoxSizer * | BoxSizer6 |
wxString | m_ExtFilter |
int | m_Selection |
Definition at line 22 of file filepathpanel.h.
FilePathPanel::FilePathPanel | ( | wxWindow * | parent, |
wxWindowID | id = -1 |
||
) |
Definition at line 44 of file filepathpanel.cpp.
References _(), _T, wxBoxSizer::Add(), wxBoxSizer::Fit(), Manager::Get(), cbProject::GetActiveBuildTarget(), ProjectManager::GetActiveProject(), cbProject::GetBuildTarget(), cbProject::GetBuildTargetsCount(), Manager::GetProjectManager(), CompileTargetBase::GetTitle(), ID_TEXTCTRL1, OnbtnAllClick(), OnbtnBrowseClick(), OnbtnNoneClick(), OnchkAddToProjectChange(), OntxtFilenameText(), wxBoxSizer::SetSizeHints(), wxALIGN_CENTER_VERTICAL, wxALIGN_LEFT, wxALIGN_TOP, wxALL, wxBOTTOM, wxDefaultPosition, wxDefaultSize, wxDefaultValidator, wxEmptyString, wxEXPAND, wxFIXED_MINSIZE, wxHORIZONTAL, wxLB_HSCROLL, wxLB_SINGLE, wxLEFT, wxRIGHT, wxTAB_TRAVERSAL, wxTOP, and wxVERTICAL.
|
virtual |
Definition at line 131 of file filepathpanel.cpp.
|
inline |
Definition at line 31 of file filepathpanel.h.
References chkAddToProject, GetTargetIndex(), wxCheckBox::GetValue(), and SetAddToProject().
Referenced by WizFilePathPanel::OnPageChanging().
|
inline |
Definition at line 29 of file filepathpanel.h.
References txtFilename.
Referenced by WizFilePathPanel::OnPageChanging().
|
inline |
Definition at line 30 of file filepathpanel.h.
Referenced by WizFilePathPanel::OnPageChanging().
int FilePathPanel::GetTargetIndex | ( | ) |
Definition at line 145 of file filepathpanel.cpp.
References clbTargets, wxCheckListBox::GetCount(), wxCheckListBox::IsChecked(), and m_Selection.
Referenced by GetAddToProject(), and WizFilePathPanel::GetTargetIndex().
|
private |
Definition at line 202 of file filepathpanel.cpp.
References wxCheckListBox::Check(), clbTargets, and wxCheckListBox::GetCount().
Referenced by FilePathPanel().
|
private |
Definition at line 183 of file filepathpanel.cpp.
References _(), _T, Manager::Get(), ProjectManager::GetActiveProject(), CompileTargetBase::GetBasePath(), Manager::GetProjectManager(), m_ExtFilter, PlaceWindow(), txtFilename, wxFD_OVERWRITE_PROMPT, wxFD_SAVE, and wxID_OK.
Referenced by FilePathPanel().
|
private |
Definition at line 210 of file filepathpanel.cpp.
References wxCheckListBox::Check(), clbTargets, and wxCheckListBox::GetCount().
Referenced by FilePathPanel().
|
private |
Definition at line 197 of file filepathpanel.cpp.
References SetAddToProject().
Referenced by FilePathPanel().
|
private |
Definition at line 167 of file filepathpanel.cpp.
References _T, wxString::MakeUpper(), wxString::Replace(), txtFilename, txtGuard, and wxFileNameFromPath().
Referenced by FilePathPanel().
void FilePathPanel::SetAddToProject | ( | bool | add | ) |
Definition at line 135 of file filepathpanel.cpp.
References chkAddToProject, Manager::Get(), ProjectManager::GetActiveProject(), Manager::GetProjectManager(), wxCheckBox::SetValue(), and ToggleVisibility().
Referenced by GetAddToProject(), OnchkAddToProjectChange(), and WizFilePathPanel::WizFilePathPanel().
|
inline |
Definition at line 34 of file filepathpanel.h.
References m_ExtFilter.
Referenced by WizFilePathPanel::SetFilePathSelectionFilter().
|
inline |
Definition at line 35 of file filepathpanel.h.
References lblGuard, and txtGuard.
Referenced by WizFilePathPanel::WizFilePathPanel().
|
private |
Definition at line 218 of file filepathpanel.cpp.
References btnAll, btnNone, and clbTargets.
Referenced by SetAddToProject().
|
private |
Definition at line 71 of file filepathpanel.h.
|
private |
Definition at line 69 of file filepathpanel.h.
|
private |
Definition at line 77 of file filepathpanel.h.
|
private |
Definition at line 66 of file filepathpanel.h.
Referenced by ToggleVisibility().
|
private |
Definition at line 75 of file filepathpanel.h.
|
private |
Definition at line 74 of file filepathpanel.h.
Referenced by ToggleVisibility().
|
private |
Definition at line 72 of file filepathpanel.h.
Referenced by GetAddToProject(), and SetAddToProject().
|
private |
Definition at line 70 of file filepathpanel.h.
Referenced by GetTargetIndex(), OnbtnAllClick(), OnbtnNoneClick(), and ToggleVisibility().
|
private |
Definition at line 68 of file filepathpanel.h.
|
static |
Definition at line 45 of file filepathpanel.h.
|
static |
Definition at line 51 of file filepathpanel.h.
|
static |
Definition at line 52 of file filepathpanel.h.
|
static |
Definition at line 48 of file filepathpanel.h.
|
static |
Definition at line 50 of file filepathpanel.h.
|
static |
Definition at line 42 of file filepathpanel.h.
|
static |
Definition at line 43 of file filepathpanel.h.
|
static |
Definition at line 46 of file filepathpanel.h.
|
static |
Definition at line 49 of file filepathpanel.h.
|
static |
Definition at line 44 of file filepathpanel.h.
|
static |
Definition at line 47 of file filepathpanel.h.
|
private |
Definition at line 67 of file filepathpanel.h.
Referenced by ShowHeaderGuard().
|
private |
Definition at line 80 of file filepathpanel.h.
Referenced by OnbtnBrowseClick(), and SetFilePathSelectionFilter().
|
private |
Definition at line 81 of file filepathpanel.h.
Referenced by GetTargetIndex().
|
private |
Definition at line 73 of file filepathpanel.h.
Referenced by GetFilename(), OnbtnBrowseClick(), and OntxtFilenameText().
|
private |
Definition at line 76 of file filepathpanel.h.
Referenced by GetHeaderGuard(), OntxtFilenameText(), and ShowHeaderGuard().