Code::Blocks
SVN r11506
|
#include <projectfileoptionsdlg.h>
Public Member Functions | |
ProjectFileOptionsDlg (wxWindow *parent, ProjectFile *pf) | |
ProjectFileOptionsDlg (wxWindow *parent, const wxString &fileName) | |
~ProjectFileOptionsDlg () override | |
void | OnReadOnlyCheck (wxCommandEvent &event) |
void | OnCompilerCombo (wxCommandEvent &event) |
void | OnUpdateUI (wxUpdateUIEvent &event) |
void | EndModal (int retCode) override |
Public Member Functions inherited from wxScrollingDialog | |
wxScrollingDialog () | |
wxScrollingDialog (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const wxString &name=_("dialogBox")) | |
Public Member Functions inherited from wxDialog | |
virtual int | ShowModal () |
Private Member Functions | |
void | FillGeneralProperties () |
void | FillCompilers () |
void | UpdateBuildCommand () |
void | SaveBuildCommandSelection () |
bool | ToggleFileReadOnly (bool setReadOnly) |
Private Attributes | |
ProjectFile * | m_ProjectFile |
wxString | m_FileNameStr |
wxFileName | m_FileName |
int | m_LastBuildStageCompilerSel |
Definition at line 14 of file projectfileoptionsdlg.h.
ProjectFileOptionsDlg::ProjectFileOptionsDlg | ( | wxWindow * | parent, |
ProjectFile * | pf | ||
) |
Definition at line 144 of file projectfileoptionsdlg.cpp.
References _(), _T, ProjectFile::AutoGeneratedBy(), ProjectFile::buildTargets, wxCheckListBox::Check(), ProjectFile::compile, ProjectFile::compilerVar, ProjectFile::file, FillCompilers(), FillGeneralProperties(), wxXmlResource::Get(), cbProject::GetBuildTarget(), cbProject::GetBuildTargetsCount(), cbProject::GetCommonTopLevelPath(), CompileTargetBase::GetFilename(), wxFileName::GetFullPath(), ProjectFile::GetObjName(), ProjectFile::GetParentProject(), CompileTargetBase::GetTitle(), wxArrayString::Index(), ProjectFile::link, wxXmlResource::LoadObject(), m_FileNameStr, ProjectFile::relativeFilename, UpdateBuildCommand(), ProjectFile::weight, and wxEmptyString.
Definition at line 197 of file projectfileoptionsdlg.cpp.
References _(), _T, FillGeneralProperties(), wxXmlResource::Get(), wxXmlResource::LoadObject(), and m_FileNameStr.
|
override |
Definition at line 215 of file projectfileoptionsdlg.cpp.
|
override |
Definition at line 276 of file projectfileoptionsdlg.cpp.
References _T, ProjectFile::AddBuildTarget(), ProjectFile::compile, ProjectFile::compilerVar, ScriptBindings::EndModal(), Manager::Get(), wxCheckListBox::GetCount(), ProjectFile::GetParentProject(), Manager::GetProjectManager(), wxCheckListBox::GetString(), ProjectManager::GetUI(), wxCheckListBox::IsChecked(), wxString::IsEmpty(), ProjectFile::link, m_ProjectFile, cbProjectManagerUI::RebuildTree(), ProjectFile::RemoveBuildTarget(), SaveBuildCommandSelection(), cbProject::SetModified(), ProjectFile::weight, and wxID_OK.
|
private |
Definition at line 350 of file projectfileoptionsdlg.cpp.
References CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), CompilerFactory::GetCompilerIndex(), CompilerFactory::GetCompilersCount(), Compiler::GetName(), ProjectFile::GetParentProject(), m_LastBuildStageCompilerSel, m_ProjectFile, and wxChoice::SetSelection().
Referenced by ProjectFileOptionsDlg().
|
private |
Definition at line 308 of file projectfileoptionsdlg.cpp.
References _(), _T, wxFileName::Assign(), wxFile::Close(), CountLines(), wxFileName::FileExists(), wxString::Format(), Manager::Get(), EditorManager::GetColourSet(), EditorColourSet::GetCommentToken(), wxDateTime::GetDay(), Manager::GetEditorManager(), wxFileName::GetFullPath(), wxDateTime::GetHour(), EditorColourSet::GetLanguageForFilename(), wxDateTime::GetMinute(), wxFileName::GetModificationTime(), wxDateTime::GetMonth(), wxDateTime::GetSecond(), wxDateTime::GetYear(), HL_NONE, wxFileName::IsFileWritable(), m_FileName, and m_FileNameStr.
Referenced by ProjectFileOptionsDlg().
void ProjectFileOptionsDlg::OnCompilerCombo | ( | wxCommandEvent & | event | ) |
Definition at line 243 of file projectfileoptionsdlg.cpp.
References m_LastBuildStageCompilerSel, SaveBuildCommandSelection(), and UpdateBuildCommand().
void ProjectFileOptionsDlg::OnReadOnlyCheck | ( | wxCommandEvent & | event | ) |
Definition at line 219 of file projectfileoptionsdlg.cpp.
References _T, EditorManager::CheckForExternallyModifiedFiles(), LogManager::DebugLog(), F(), wxFileName::FileExists(), Manager::Get(), Manager::GetEditorManager(), Manager::GetLogManager(), wxString::IsEmpty(), wxFileName::IsFileWritable(), m_FileName, m_FileNameStr, ToggleFileReadOnly(), and wxString::wx_str().
void ProjectFileOptionsDlg::OnUpdateUI | ( | wxUpdateUIEvent & | event | ) |
Definition at line 256 of file projectfileoptionsdlg.cpp.
References m_ProjectFile.
|
private |
Definition at line 387 of file projectfileoptionsdlg.cpp.
References ProjectFile::customBuild, CompilerFactory::GetCompiler(), Compiler::GetID(), m_LastBuildStageCompilerSel, and m_ProjectFile.
Referenced by EndModal(), and OnCompilerCombo().
|
private |
Definition at line 397 of file projectfileoptionsdlg.cpp.
References _T, LogManager::DebugLog(), F(), Manager::Get(), Manager::GetLogManager(), wxFileName::IsFileWritable(), m_FileName, m_FileNameStr, and wxString::mb_str().
Referenced by OnReadOnlyCheck().
|
private |
Definition at line 366 of file projectfileoptionsdlg.cpp.
References _(), ctCompileObjectCmd, ctCompileResourceCmd, ProjectFile::customBuild, FileTypeOf(), ftHeader, ftResource, ftSource, Compiler::GetCommand(), CompilerFactory::GetCompiler(), Compiler::GetID(), wxChoice::GetSelection(), m_ProjectFile, and ProjectFile::relativeFilename.
Referenced by OnCompilerCombo(), and ProjectFileOptionsDlg().
|
private |
Definition at line 35 of file projectfileoptionsdlg.h.
Referenced by FillGeneralProperties(), OnReadOnlyCheck(), and ToggleFileReadOnly().
|
private |
Definition at line 34 of file projectfileoptionsdlg.h.
Referenced by FillGeneralProperties(), OnReadOnlyCheck(), ProjectFileOptionsDlg(), and ToggleFileReadOnly().
|
private |
Definition at line 36 of file projectfileoptionsdlg.h.
Referenced by FillCompilers(), OnCompilerCombo(), and SaveBuildCommandSelection().
|
private |
Definition at line 33 of file projectfileoptionsdlg.h.
Referenced by EndModal(), FillCompilers(), OnUpdateUI(), SaveBuildCommandSelection(), and UpdateBuildCommand().