Code::Blocks
SVN r11506
|
#include <editorconfigurationdlg.h>
Classes | |
struct | MenuItemLanguageOptionID |
Public Member Functions | |
EditorConfigurationDlg (wxWindow *parent) | |
~EditorConfigurationDlg () | |
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 Types | |
typedef std::map< long, MenuItemLanguageOptionID > | MenuIDToLanguageOption |
Private Attributes | |
cbStyledTextCtrl * | m_TextColourControl |
EditorColourSet * | m_Theme |
HighlightLanguage | m_Lang |
int | m_DefCodeFileType |
wxArrayString | m_DefaultCode |
will store the default code during configuration for each type More... | |
bool | m_ThemeModified |
ConfigurationPanelsArray | m_PluginPanels |
wxString | m_FontString |
bool | m_EnableChangebar |
bool | m_EnableScrollWidthTracking |
MenuIDToLanguageOption | m_MenuIDToLanguageOption |
wxImageList * | m_pImageList |
Definition at line 19 of file editorconfigurationdlg.h.
struct EditorConfigurationDlg::MenuItemLanguageOptionID |
Definition at line 66 of file editorconfigurationdlg.h.
Class Members | ||
---|---|---|
int | index | |
wxString | langID |
|
private |
Definition at line 71 of file editorconfigurationdlg.h.
EditorConfigurationDlg::EditorConfigurationDlg | ( | wxWindow * | parent | ) |
Definition at line 98 of file editorconfigurationdlg.cpp.
References _(), _T, wxString::CmpNoCase(), wxXmlResource::Get(), Manager::Get(), ColourManager::GetColour(), Manager::GetColourManager(), Manager::GetConfigManager(), wxFontMapper::GetEncoding(), wxFontMapper::GetEncodingName(), wxFontMapper::GetSupportedEncodingsCount(), wxLocale::GetSystemEncodingName(), IdxToFileType, wxXmlResource::LoadObject(), wxString::Printf(), ConfigManager::Read(), ConfigManager::ReadBool(), ConfigManager::ReadInt(), wxChoice::SetSelection(), wxEmptyString, wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, wxSCI_CARETSTYLE_LINE, wxSCI_EOL_CRLF, wxSCI_EOL_LF, and wxT.
EditorConfigurationDlg::~EditorConfigurationDlg | ( | ) |
Definition at line 279 of file editorconfigurationdlg.cpp.
References m_pImageList, m_TextColourControl, and m_Theme.
|
private |
Definition at line 290 of file editorconfigurationdlg.cpp.
References _T, wxImageList::Add(), wxBookCtrlBase::AddPage(), cbLoadBitmap(), cgEditor, Manager::Get(), cbConfigurationPanel::GetBitmapBaseName(), PluginManager::GetConfigurationPanels(), wxImageList::GetImageCount(), wxBookCtrlBase::GetPageCount(), Manager::GetPluginManager(), cbConfigurationPanel::GetTitle(), wxString::IsEmpty(), ConfigManager::LocateDataFile(), m_pImageList, m_PluginPanels, sdDataGlobal, sdDataUser, wxBookCtrlBase::SetPageImage(), cbConfigurationPanel::SetParentDialog(), and UpdateListbookImages().
|
private |
Definition at line 431 of file editorconfigurationdlg.cpp.
References EditorColourSet::Apply(), m_Lang, m_TextColourControl, m_Theme, wxScintilla::StyleSetFont(), and wxSCI_STYLE_DEFAULT.
Referenced by CreateColoursSample(), OnColoursReset(), OnMenuColoursCopyAllFrom(), OnMenuColoursCopyFrom(), UpdateSampleFont(), and WriteColours().
|
private |
Definition at line 580 of file editorconfigurationdlg.cpp.
References _(), wxString::c_str(), cbMessageBox(), wxChoice::FindString(), EditorColourSet::GetName(), m_Theme, m_ThemeModified, wxString::Printf(), EditorColourSet::Save(), wxChoice::SetSelection(), wxCANCEL, wxID_CANCEL, wxID_YES, and wxYES_NO.
Referenced by OnColourTheme().
|
private |
Definition at line 603 of file editorconfigurationdlg.cpp.
References _(), _T, COLORSET_DEFAULT, CreateColoursSample(), wxChoice::FindString(), Manager::Get(), EditorColourSet::GetAllHighlightLanguages(), EditorManager::GetColourSet(), Manager::GetConfigManager(), wxArrayString::GetCount(), Manager::GetEditorManager(), EditorColourSet::GetHighlightLanguage(), EditorColourSet::GetName(), wxChoice::GetSelection(), m_Lang, m_Theme, m_ThemeModified, ConfigManager::Read(), wxChoice::SetSelection(), and wxNOT_FOUND.
Referenced by LoadThemes(), OnAddColourTheme(), OnColourTheme(), OnDeleteColourTheme(), and OnRenameColourTheme().
|
private |
Definition at line 371 of file editorconfigurationdlg.cpp.
References _T, ApplyColours(), wxXmlResource::AttachUnknownControl(), FillColourComponents(), wxXmlResource::Get(), EditorColourSet::GetSampleCode(), wxString::IsEmpty(), wxScintilla::LoadFile(), m_Lang, m_TextColourControl, m_Theme, wxScintilla::MarkerAdd(), wxScintilla::MarkerDeleteAll(), wxScintilla::SetCaretLineVisible(), wxScintilla::SetIndentationGuides(), wxScintilla::SetMarginType(), wxScintilla::SetMarginWidth(), wxScintilla::SetTabWidth(), wxID_ANY, wxSCI_IV_LOOKBOTH, wxSCI_IV_NONE, and wxSCI_MARGIN_NUMBER.
Referenced by ChangeTheme(), and OnChangeLang().
|
private |
Definition at line 993 of file editorconfigurationdlg.cpp.
References _T, wxArrayString::Add(), cbEditor::ClearHistory(), ScriptBindings::EndModal(), Manager::Get(), EditorManager::GetBuiltinEditor(), Manager::GetColourManager(), Manager::GetConfigManager(), EditorManager::GetEditor(), Manager::GetEditorManager(), EditorManager::GetEditorsCount(), EditorColourSet::GetName(), EditorManager::GetNotebook(), EditorManager::GetZoom(), IdxToFileType, m_DefaultCode, m_EnableChangebar, m_PluginPanels, m_Theme, cbConfigurationPanel::OnApply(), cbConfigurationPanel::OnCancel(), wxString::Printf(), ConfigManager::Read(), ColourManager::Save(), EditorColourSet::Save(), cbEditor::SetChangeCollection(), ColourManager::SetColour(), EditorManager::SetColourSet(), EditorManager::SetZoom(), cbAuiNotebook::SetZoom(), cbEditor::UnfoldAll(), ConfigManager::Write(), wxEmptyString, wxID_OK, and wxT.
|
private |
Definition at line 412 of file editorconfigurationdlg.cpp.
References EditorColourSet::GetOptionByIndex(), EditorColourSet::GetOptionCount(), m_Lang, m_Theme, OptionColour::name, and ReadColours().
Referenced by CreateColoursSample(), and OnChangeLang().
|
private |
Definition at line 321 of file editorconfigurationdlg.cpp.
References _T, wxImageList::Add(), cbLoadBitmap(), ConfigManager::GetDataFolder(), IMAGES_COUNT, and m_pImageList.
|
private |
Definition at line 559 of file editorconfigurationdlg.cpp.
References _T, ChangeTheme(), COLORSET_DEFAULT, ConfigManager::EnumerateSubPaths(), wxChoice::FindString(), Manager::Get(), Manager::GetConfigManager(), wxChoice::GetCount(), wxArrayString::GetCount(), ConfigManager::Read(), wxChoice::SetSelection(), wxArrayString::Sort(), and wxNOT_FOUND.
|
private |
Definition at line 687 of file editorconfigurationdlg.cpp.
References _(), ChangeTheme(), wxChoice::GetCount(), PlaceWindow(), wxChoice::SetSelection(), wxDialog::ShowModal(), and wxID_OK.
|
private |
Definition at line 983 of file editorconfigurationdlg.cpp.
References WriteColours().
|
private |
Definition at line 554 of file editorconfigurationdlg.cpp.
References wxSCI_CARETSTYLE_LINE.
|
private |
Definition at line 928 of file editorconfigurationdlg.cpp.
References m_DefaultCode, and m_DefCodeFileType.
|
private |
Definition at line 917 of file editorconfigurationdlg.cpp.
References CreateColoursSample(), FillColourComponents(), EditorColourSet::GetHighlightLanguage(), m_Lang, and m_Theme.
|
private |
Definition at line 939 of file editorconfigurationdlg.cpp.
References wxColourData::GetColour(), wxColourDialog::GetColourData(), PlaceWindow(), wxColourData::SetColour(), wxColourDialog::ShowModal(), WriteColours(), wxEmptyString, and wxID_OK.
|
private |
Definition at line 973 of file editorconfigurationdlg.cpp.
References UpdateSampleFont().
|
private |
Definition at line 978 of file editorconfigurationdlg.cpp.
References ReadColours().
|
private |
Definition at line 854 of file editorconfigurationdlg.cpp.
References wxMenu::Append(), EditorColourSet::GetAllHighlightLanguages(), wxArrayString::GetCount(), EditorColourSet::GetHighlightLanguage(), EditorConfigurationDlg::MenuItemLanguageOptionID::index, m_MenuIDToLanguageOption, m_Theme, OnMenuColoursCopyAllFrom(), and wxNewId().
|
private |
Definition at line 786 of file editorconfigurationdlg.cpp.
References wxMenu::Append(), wxMenu::AppendSubMenu(), wxMenu::FindItem(), EditorColourSet::GetAllHighlightLanguages(), wxArrayString::GetCount(), EditorColourSet::GetHighlightLanguage(), EditorColourSet::GetOptionByIndex(), EditorColourSet::GetOptionCount(), EditorConfigurationDlg::MenuItemLanguageOptionID::index, m_MenuIDToLanguageOption, m_Theme, OptionColour::name, OnMenuColoursCopyFrom(), wxNewId(), and wxNOT_FOUND.
|
private |
Definition at line 769 of file editorconfigurationdlg.cpp.
References _(), ApplyColours(), wxString::c_str(), cbMessageBox(), EditorColourSet::GetLanguageName(), HL_NONE, m_Lang, m_Theme, m_ThemeModified, wxString::Printf(), ReadColours(), EditorColourSet::Reset(), wxICON_QUESTION, wxID_YES, and wxYES_NO.
|
private |
Definition at line 655 of file editorconfigurationdlg.cpp.
References _(), AskToSaveTheme(), cbMessageBox(), ChangeTheme(), EditorColourSet::GetName(), m_Theme, wxRegEx::Matches(), wxOK, and wxT.
|
private |
Definition at line 704 of file editorconfigurationdlg.cpp.
References _(), _T, cbMessageBox(), ChangeTheme(), ConfigManager::DeleteSubPath(), wxChoice::FindString(), Manager::Get(), Manager::GetConfigManager(), EditorColourSet::GetName(), m_Theme, wxChoice::SetSelection(), wxID_YES, wxNOT_FOUND, and wxYES_NO.
|
private |
Definition at line 988 of file editorconfigurationdlg.cpp.
|
private |
Definition at line 757 of file editorconfigurationdlg.cpp.
References _(), _T, cbGetTextFromUser(), EditorColourSet::GetFileMasks(), EditorColourSet::GetLanguageName(), GetStringFromArray(), HL_NONE, wxString::IsEmpty(), m_Lang, m_Theme, and EditorColourSet::SetFileMasks().
|
private |
Definition at line 742 of file editorconfigurationdlg.cpp.
References wxScintilla::DescribeKeyWordSets(), GetArrayFromString(), HL_NONE, m_Lang, m_TextColourControl, m_Theme, PlaceWindow(), and wxT.
|
private |
|
private |
Definition at line 885 of file editorconfigurationdlg.cpp.
References ApplyColours(), OptionColour::back, OptionColour::bold, OptionColour::fore, EditorColourSet::GetOptionByIndex(), EditorColourSet::GetOptionByName(), EditorColourSet::GetOptionCount(), OptionColour::italics, m_Lang, m_MenuIDToLanguageOption, m_Theme, OptionColour::name, ReadColours(), OptionColour::underlined, and wxT.
Referenced by OnColoursCopyAllFrom().
|
private |
Definition at line 827 of file editorconfigurationdlg.cpp.
References ApplyColours(), OptionColour::back, OptionColour::bold, OptionColour::fore, EditorColourSet::GetOptionByIndex(), EditorColourSet::GetOptionByName(), EditorConfigurationDlg::MenuItemLanguageOptionID::index, OptionColour::italics, EditorConfigurationDlg::MenuItemLanguageOptionID::langID, m_Lang, m_MenuIDToLanguageOption, m_Theme, OptionColour::underlined, and UpdateColourControls().
Referenced by OnColoursCopyFrom().
|
private |
Definition at line 1193 of file editorconfigurationdlg.cpp.
|
private |
Definition at line 364 of file editorconfigurationdlg.cpp.
References UpdateListbookImages().
|
private |
Definition at line 718 of file editorconfigurationdlg.cpp.
References _(), _T, ChangeTheme(), ConfigManager::DeleteSubPath(), wxChoice::FindString(), Manager::Get(), Manager::GetConfigManager(), EditorColourSet::GetName(), wxChoice::GetSelection(), m_Theme, PlaceWindow(), EditorColourSet::Save(), EditorColourSet::SetName(), wxChoice::SetSelection(), wxChoice::SetString(), wxID_OK, and wxNOT_FOUND.
|
private |
Definition at line 959 of file editorconfigurationdlg.cpp.
References _(), wxSystemSettings::GetColour(), WriteColours(), and wxSYS_COLOUR_BTNFACE.
|
private |
Definition at line 442 of file editorconfigurationdlg.cpp.
References EditorColourSet::GetOptionByName(), m_Lang, m_Theme, and UpdateColourControls().
Referenced by FillColourComponents(), OnColourComponent(), OnColoursReset(), and OnMenuColoursCopyAllFrom().
|
private |
Definition at line 453 of file editorconfigurationdlg.cpp.
References _(), _T, OptionColour::back, OptionColour::bold, OptionColour::fore, wxSystemSettings::GetColour(), OptionColour::isStyle, OptionColour::italics, OptionColour::name, OptionColour::underlined, wxNullColour, and wxSYS_COLOUR_BTNFACE.
Referenced by OnMenuColoursCopyFrom(), and ReadColours().
|
private |
Definition at line 336 of file editorconfigurationdlg.cpp.
References _T, Manager::Get(), wxListbook::GetListView(), wxBookCtrlBase::GetPageText(), wxBookCtrlBase::GetSelection(), IMAGES_COUNT, m_pImageList, m_PluginPanels, wxBookCtrlBase::SetPageImage(), SetSettingsIconsStyle(), sisLargeIcons, and sisNoIcons.
Referenced by AddPluginPanels(), and OnPageChanged().
|
private |
Definition at line 524 of file editorconfigurationdlg.cpp.
References ApplyColours(), wxNativeFontInfo::FromString(), wxFontData::GetChosenFont(), wxFontDialog::GetFontData(), wxFont::GetNativeFontInfoDesc(), wxString::IsEmpty(), m_FontString, PlaceWindow(), wxFontData::SetInitialFont(), wxFont::SetNativeFontInfo(), wxFontDialog::ShowModal(), wxFONTFAMILY_MODERN, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, and wxID_OK.
Referenced by OnChooseFont().
|
private |
Definition at line 495 of file editorconfigurationdlg.cpp.
References ApplyColours(), OptionColour::back, OptionColour::bold, OptionColour::fore, wxSystemSettings::GetColour(), EditorColourSet::GetOptionByName(), OptionColour::italics, m_Lang, m_Theme, m_ThemeModified, OptionColour::underlined, EditorColourSet::UpdateOptionsWithSameName(), wxNullColour, and wxSYS_COLOUR_BTNFACE.
Referenced by OnBoldItalicUline(), OnChooseColour(), and OnSetDefaultColour().
|
private |
will store the default code during configuration for each type
Definition at line 77 of file editorconfigurationdlg.h.
Referenced by EndModal(), and OnChangeDefCodeFileType().
|
private |
Definition at line 76 of file editorconfigurationdlg.h.
Referenced by OnChangeDefCodeFileType().
|
private |
Definition at line 81 of file editorconfigurationdlg.h.
Referenced by EndModal().
|
private |
Definition at line 82 of file editorconfigurationdlg.h.
|
private |
Definition at line 80 of file editorconfigurationdlg.h.
Referenced by UpdateSampleFont().
|
private |
Definition at line 75 of file editorconfigurationdlg.h.
Referenced by ApplyColours(), ChangeTheme(), CreateColoursSample(), FillColourComponents(), OnChangeLang(), OnColoursReset(), OnEditFilemasks(), OnEditKeywords(), OnMenuColoursCopyAllFrom(), OnMenuColoursCopyFrom(), ReadColours(), and WriteColours().
|
private |
Definition at line 83 of file editorconfigurationdlg.h.
Referenced by OnColoursCopyAllFrom(), OnColoursCopyFrom(), OnMenuColoursCopyAllFrom(), and OnMenuColoursCopyFrom().
|
private |
Definition at line 84 of file editorconfigurationdlg.h.
Referenced by AddPluginPanels(), LoadListbookImages(), UpdateListbookImages(), and ~EditorConfigurationDlg().
|
private |
Definition at line 79 of file editorconfigurationdlg.h.
Referenced by AddPluginPanels(), EndModal(), and UpdateListbookImages().
|
private |
Definition at line 73 of file editorconfigurationdlg.h.
Referenced by ApplyColours(), CreateColoursSample(), OnEditKeywords(), and ~EditorConfigurationDlg().
|
private |
Definition at line 74 of file editorconfigurationdlg.h.
Referenced by ApplyColours(), AskToSaveTheme(), ChangeTheme(), CreateColoursSample(), EndModal(), FillColourComponents(), OnChangeLang(), OnColoursCopyAllFrom(), OnColoursCopyFrom(), OnColoursReset(), OnColourTheme(), OnDeleteColourTheme(), OnEditFilemasks(), OnEditKeywords(), OnMenuColoursCopyAllFrom(), OnMenuColoursCopyFrom(), OnRenameColourTheme(), ReadColours(), WriteColours(), and ~EditorConfigurationDlg().
|
private |
Definition at line 78 of file editorconfigurationdlg.h.
Referenced by AskToSaveTheme(), ChangeTheme(), OnColoursReset(), and WriteColours().