42 #include <wx/aui/aui.h> 64 _T(
"notebook-appearance"),
101 m_pImageList(
nullptr)
109 XRCCTRL(*
this,
"wxID_OK",
wxButton)->SetDefault();
111 LoadListbookImages();
117 XRCCTRL(*
this,
"chkShowSplash",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/show_splash"),
true));
118 XRCCTRL(*
this,
"chkSingleInstance",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/single_instance"),
true));
120 static_cast<wxStaticBoxSizer*
>(XRCCTRL(*
this,
"chkUseIPC",
wxCheckBox)->GetContainingSizer())->GetStaticBox()->SetLabel(
_(
"Dynamic Data Exchange (will take place after restart)"));
122 bool useIpc = cfg->
ReadBool(
_T(
"/environment/use_ipc"),
true);
123 XRCCTRL(*
this,
"chkUseIPC",
wxCheckBox)->SetValue(useIpc);
124 XRCCTRL(*
this,
"chkRaiseViaIPC",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/raise_via_ipc"),
true));
125 XRCCTRL(*
this,
"chkRaiseViaIPC",
wxCheckBox)->Enable(useIpc);
127 XRCCTRL(*
this,
"chkAssociations",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/check_associations"),
true));
128 XRCCTRL(*
this,
"chkModifiedFiles",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/check_modified_files"),
true));
129 XRCCTRL(*
this,
"chkInvalidTargets",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/ignore_invalid_targets"),
true));
130 XRCCTRL(*
this,
"rbAppStart",
wxRadioBox)->SetSelection(cfg->
ReadBool(
_T(
"/environment/blank_workspace"),
true) ? 1 : 0);
131 XRCCTRL(*
this,
"chkProjectLayout",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/enable_project_layout"),
true));
132 XRCCTRL(*
this,
"chkEditorLayout",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/enable_editor_layout"),
false));
144 if (platform::windows)
145 combo->Enable(
false);
148 if (!platform::macosx && !platform::darwin)
150 combo->Append(
wxT(
"gnome-terminal -t $TITLE -x "));
151 combo->Append(
wxT(
"konsole -e "));
152 combo->Append(
wxT(
"xfce4-terminal -T $TITLE -x "));
153 combo->Append(
wxT(
"terminology -M -T $TITLE -e "));
156 if (!combo->SetStringSelection(terminal))
158 combo->Insert(terminal, 0);
159 combo->SetStringSelection(terminal);
164 XRCCTRL(*
this,
"txtOpenFolder",
wxTextCtrl)->SetValue(openFolderCommand);
167 bool do_place = cfg->
ReadBool(
_T(
"/dialog_placement/do_place"),
false);
168 XRCCTRL(*
this,
"chkDoPlace",
wxCheckBox)->SetValue(do_place);
169 XRCCTRL(*
this,
"chkPlaceHead",
wxCheckBox)->SetValue(cfg->
ReadInt(
_T(
"/dialog_placement/dialog_position"), 0) ==
pdlHead ? 1 : 0);
170 XRCCTRL(*
this,
"chkPlaceHead",
wxCheckBox)->Enable(do_place);
172 XRCCTRL(*
this,
"rbProjectOpen",
wxRadioBox)->SetSelection(pcfg->
ReadInt(
_T(
"/open_files"), 1));
173 XRCCTRL(*
this,
"rbToolbarSize",
wxRadioBox)->SetSelection(cfg->
ReadBool(
_T(
"/environment/toolbar_size"),
true) ? 1 : 0);
174 XRCCTRL(*
this,
"rbSettingsIconsSize",
wxRadioBox)->SetSelection(cfg->
ReadInt(
_T(
"/environment/settings_size"), 0));
175 XRCCTRL(*
this,
"chkShowStartPage",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/start_here_page"),
true));
176 XRCCTRL(*
this,
"spnLogFontSize",
wxSpinCtrl)->SetValue(mcfg->
ReadInt(
_T(
"/log_font_size"), 8));
178 bool en = mcfg->
ReadBool(
_T(
"/auto_hide"),
false);
179 XRCCTRL(*
this,
"chkAutoHideMessages",
wxCheckBox)->SetValue(en);
180 XRCCTRL(*
this,
"chkAutoShowMessagesOnSearch",
wxCheckBox)->SetValue(mcfg->
ReadBool(
_T(
"/auto_show_search"),
true));
181 XRCCTRL(*
this,
"chkAutoShowMessagesOnWarn",
wxCheckBox)->SetValue(mcfg->
ReadBool(
_T(
"/auto_show_build_warnings"),
true));
182 XRCCTRL(*
this,
"chkAutoShowMessagesOnErr",
wxCheckBox)->SetValue(mcfg->
ReadBool(
_T(
"/auto_show_build_errors"),
true));
183 XRCCTRL(*
this,
"chkAutoShowMessagesOnSearch",
wxCheckBox)->Enable(en);
184 XRCCTRL(*
this,
"chkAutoShowMessagesOnWarn",
wxCheckBox)->Enable(en);
185 XRCCTRL(*
this,
"chkAutoShowMessagesOnErr",
wxCheckBox)->Enable(en);
187 XRCCTRL(*
this,
"chkAutoFocusMessagesOnErr",
wxCheckBox)->SetValue(mcfg->
ReadBool(
_T(
"/auto_focus_build_errors"),
true));
188 XRCCTRL(*
this,
"chkSaveSelectionChangeInMP",
wxCheckBox)->SetValue(mcfg->
ReadBool(
_T(
"/save_selection_change_in_mp"),
true));
190 en = cfg->
ReadBool(
_T(
"/environment/view/dbl_clk_maximize"),
true);
191 XRCCTRL(*
this,
"chkDblClkMaximizes",
wxCheckBox)->SetValue(en);
196 int sub_idx = menuView->
FindItem(
_(
"Perspectives"));
203 for (
size_t i = 0; i < items.GetCount() && ! items[i]->IsSeparator() ; ++i)
205 XRCCTRL(*
this,
"choLayoutToToggle",
wxChoice)->Append(items[i]->GetLabelText(items[i]->GetItemLabelText()));
211 int sel = XRCCTRL(*
this,
"choLayoutToToggle",
wxChoice)->FindString( cfg->
Read(
_T(
"/environment/view/layout_to_toggle"),cfg->
Read(
_T(
"/main_frame/layout/default"))));
213 XRCCTRL(*
this,
"choLayoutToToggle",
wxChoice)->Enable(en);
215 bool i18n = cfg->
ReadBool(
_T(
"/locale/enable"),
false);
216 XRCCTRL(*
this,
"chkI18N",
wxCheckBox)->SetValue(i18n);
222 wxDir locDir(locPath);
230 }
while ( locDir.
GetNext(&locFName) );
234 XRCCTRL(*
this,
"cbxLanguage",
wxComboBox)->Enable(i18n);
242 XRCCTRL(*
this,
"cmbEditorTabs",
wxChoice)->SetSelection(cfg->
ReadInt(
_T(
"/environment/tabs_style"), 0));
243 XRCCTRL(*
this,
"cmbTabCloseStyle",
wxChoice)->SetSelection(cfg->
ReadInt(
_T(
"/environment/tabs_closestyle"), 0));
244 XRCCTRL(*
this,
"chkListTabs",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/tabs_list"), 0));
245 XRCCTRL(*
this,
"chkStackedBasedTabSwitching",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/tabs_stacked_based_switching"), 0));
246 bool enableTabMousewheel = cfg->
ReadBool(
_T(
"/environment/tabs_use_mousewheel"),
true);
247 bool modToAdvance = cfg->
ReadBool(
_T(
"/environment/tabs_mousewheel_advance"),
false);
248 XRCCTRL(*
this,
"chkNBUseMousewheel",
wxCheckBox)->SetValue(enableTabMousewheel);
249 XRCCTRL(*
this,
"rbNBModToAdvance",
wxRadioButton)->SetValue(modToAdvance);
250 XRCCTRL(*
this,
"rbNBModToMove",
wxRadioButton)->SetValue(!modToAdvance);
251 XRCCTRL(*
this,
"chkNBInvertAdvance",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/tabs_invert_advance"),
false));
252 XRCCTRL(*
this,
"chkNBInvertMove",
wxCheckBox)->SetValue(cfg->
ReadBool(
_T(
"/environment/tabs_invert_move"),
false));
253 XRCCTRL(*
this,
"txtMousewheelModifier",
wxTextCtrl)->SetValue(cfg->
Read(
_T(
"/environment/tabs_mousewheel_modifier"),
_T(
"Ctrl")));
255 XRCCTRL(*
this,
"rbNBModToAdvance",
wxRadioButton)->Enable(enableTabMousewheel);
256 XRCCTRL(*
this,
"rbNBModToMove",
wxRadioButton)->Enable(enableTabMousewheel);
257 XRCCTRL(*
this,
"chkNBInvertAdvance",
wxCheckBox)->Enable(enableTabMousewheel);
258 XRCCTRL(*
this,
"chkNBInvertMove",
wxCheckBox)->Enable(enableTabMousewheel);
259 XRCCTRL(*
this,
"txtMousewheelModifier",
wxTextCtrl)->Enable(enableTabMousewheel);
291 acfg->
Write(
wxT(
"/disabled_ret"), dialogs);
295 for (ConfigManagerContainer::StringSet::iterator i = dialogs.begin(); i != dialogs.end(); ++i)
296 clb->Append(AnnoyingDlgReturnToString(*i));
299 XRCCTRL(*
this,
"txtProxy",
wxTextCtrl)->SetValue(cfg->
Read(
_T(
"/network_proxy")));
301 FillApplicationColours();
305 XRCCTRL(*
this,
"chkAssociations",
wxCheckBox)->Enable(
false);
306 XRCCTRL(*
this,
"btnSetAssocs",
wxButton)->Enable(
false);
307 XRCCTRL(*
this,
"btnManageAssocs",
wxButton)->Enable(
false);
314 GetSizer()->SetSizeHints(
this);
329 const wxString noimg =
_T(
"images/settings/generic-plugin");
378 lb->SetImageList(
nullptr);
384 for (
size_t i = 0; i < IMAGES_COUNT +
m_PluginPanels.GetCount(); ++i)
392 while (label.Replace(
_T(
" & "),
_T(
" && ")))
394 XRCCTRL(*
this,
"lblBigTitle",
wxStaticText)->SetLabel(label);
395 XRCCTRL(*
this,
"pnlTitleInfo",
wxPanel)->Layout();
405 if (event.GetOldSelection() != -1 &&
event.GetSelection() != -1)
430 wxWindow* sender = FindWindowById(event.GetId());
431 data.
SetColour(sender->GetBackgroundColour());
438 sender->SetBackgroundColour(colour);
461 bool en = XRCCTRL(*
this,
"chkAutoHideMessages",
wxCheckBox)->GetValue();
462 XRCCTRL(*
this,
"chkAutoShowMessagesOnSearch",
wxCheckBox)->Enable(en);
463 XRCCTRL(*
this,
"chkAutoShowMessagesOnWarn",
wxCheckBox)->Enable(en);
464 XRCCTRL(*
this,
"chkAutoShowMessagesOnErr",
wxCheckBox)->Enable(en);
469 XRCCTRL(*
this,
"chkRaiseViaIPC",
wxCheckBox)->Enable(event.IsChecked());
474 XRCCTRL(*
this,
"choLayoutToToggle",
wxChoice)->Enable(event.IsChecked());
487 #if defined(__WXMAC__) || defined(__WXCOCOA__) 496 XRCCTRL(*
this,
"txtMousewheelModifier",
wxTextCtrl)->SetValue(keys);
501 bool en = (bool)XRCCTRL(*
this,
"chkNBUseMousewheel",
wxCheckBox)->GetValue();
502 XRCCTRL(*
this,
"rbNBModToAdvance",
wxRadioButton)->Enable(en);
504 XRCCTRL(*
this,
"chkNBInvertAdvance",
wxCheckBox)->Enable(en);
505 XRCCTRL(*
this,
"chkNBInvertMove",
wxCheckBox)->Enable(en);
510 XRCCTRL(*
this,
"chkPlaceHead",
wxCheckBox)->Enable(event.IsChecked());
520 XRCCTRL(*
this,
"cbxLanguage",
wxComboBox)->Enable(event.IsChecked());
539 cfg->
Write(
_T(
"/environment/show_splash"), (
bool) XRCCTRL(*
this,
"chkShowSplash",
wxCheckBox)->GetValue());
540 cfg->
Write(
_T(
"/environment/single_instance"), (
bool) XRCCTRL(*
this,
"chkSingleInstance",
wxCheckBox)->GetValue());
541 cfg->
Write(
_T(
"/environment/use_ipc"), (
bool) XRCCTRL(*
this,
"chkUseIPC",
wxCheckBox)->GetValue());
542 cfg->
Write(
_T(
"/environment/raise_via_ipc"), (
bool) XRCCTRL(*
this,
"chkRaiseViaIPC",
wxCheckBox)->GetValue());
543 cfg->
Write(
_T(
"/environment/check_associations"), (
bool) XRCCTRL(*
this,
"chkAssociations",
wxCheckBox)->GetValue());
544 cfg->
Write(
_T(
"/environment/check_modified_files"), (
bool) XRCCTRL(*
this,
"chkModifiedFiles",
wxCheckBox)->GetValue());
545 cfg->
Write(
_T(
"/environment/ignore_invalid_targets"), (
bool) XRCCTRL(*
this,
"chkInvalidTargets",
wxCheckBox)->GetValue());
546 cfg->
Write(
_T(
"/console_shell"), XRCCTRL(*
this,
"txtConsoleShell",
wxTextCtrl)->GetValue());
547 cfg->
Write(
_T(
"/console_terminal"), XRCCTRL(*
this,
"cbConsoleTerm",
wxComboBox)->GetValue());
548 cfg->
Write(
_T(
"/open_containing_folder"), XRCCTRL(*
this,
"txtOpenFolder",
wxTextCtrl)->GetValue());
551 cfg->
Write(
_T(
"/environment/blank_workspace"), (
bool) XRCCTRL(*
this,
"rbAppStart",
wxRadioBox)->GetSelection() ?
true :
false);
552 cfg->
Write(
_T(
"/environment/enable_project_layout"), (
bool) XRCCTRL(*
this,
"chkProjectLayout",
wxCheckBox)->GetValue());
553 cfg->
Write(
_T(
"/environment/enable_editor_layout"), (
bool) XRCCTRL(*
this,
"chkEditorLayout",
wxCheckBox)->GetValue());
554 pcfg->
Write(
_T(
"/open_files"), (
int) XRCCTRL(*
this,
"rbProjectOpen",
wxRadioBox)->GetSelection());
555 cfg->
Write(
_T(
"/environment/toolbar_size"), (
bool) XRCCTRL(*
this,
"rbToolbarSize",
wxRadioBox)->GetSelection() == 1);
556 cfg->
Write(
_T(
"/environment/settings_size"), (
int) XRCCTRL(*
this,
"rbSettingsIconsSize",
wxRadioBox)->GetSelection());
557 mcfg->
Write(
_T(
"/auto_hide"), (
bool) XRCCTRL(*
this,
"chkAutoHideMessages",
wxCheckBox)->GetValue());
558 mcfg->
Write(
_T(
"/auto_show_search"), (
bool) XRCCTRL(*
this,
"chkAutoShowMessagesOnSearch",
wxCheckBox)->GetValue());
559 mcfg->
Write(
_T(
"/auto_show_build_warnings"), (
bool) XRCCTRL(*
this,
"chkAutoShowMessagesOnWarn",
wxCheckBox)->GetValue());
560 mcfg->
Write(
_T(
"/auto_show_build_errors"), (
bool) XRCCTRL(*
this,
"chkAutoShowMessagesOnErr",
wxCheckBox)->GetValue());
561 mcfg->
Write(
_T(
"/auto_focus_build_errors"), (
bool) XRCCTRL(*
this,
"chkAutoFocusMessagesOnErr",
wxCheckBox)->GetValue());
562 mcfg->
Write(
_T(
"/save_selection_change_in_mp"), (
bool) XRCCTRL(*
this,
"chkSaveSelectionChangeInMP",
wxCheckBox)->GetValue());
564 cfg->
Write(
_T(
"/environment/start_here_page"), (
bool) XRCCTRL(*
this,
"chkShowStartPage",
wxCheckBox)->GetValue());
566 cfg->
Write(
_T(
"/environment/view/dbl_clk_maximize"), (
bool)XRCCTRL(*
this,
"chkDblClkMaximizes",
wxCheckBox)->GetValue());
567 cfg->
Write(
_T(
"/environment/view/layout_to_toggle"), XRCCTRL(*
this,
"choLayoutToToggle",
wxChoice)->GetStringSelection());
569 cfg->
Write(
_T(
"/locale/enable"), (
bool) XRCCTRL(*
this,
"chkI18N",
wxCheckBox)->GetValue());
576 mcfg->
Write(
_T(
"/log_font_size"), (
int) XRCCTRL(*
this,
"spnLogFontSize",
wxSpinCtrl)->GetValue());
578 cfg->
Write(
_T(
"/dialog_placement/do_place"), (
bool) XRCCTRL(*
this,
"chkDoPlace",
wxCheckBox)->GetValue());
582 cfg->
Write(
_T(
"/environment/tabs_style"), (
int) XRCCTRL(*
this,
"cmbEditorTabs",
wxChoice)->GetSelection());
583 cfg->
Write(
_T(
"/environment/tabs_closestyle"), (
int) XRCCTRL(*
this,
"cmbTabCloseStyle",
wxChoice)->GetSelection());
584 cfg->
Write(
_T(
"/environment/tabs_list"), (
bool) XRCCTRL(*
this,
"chkListTabs",
wxCheckBox)->GetValue());
585 bool tab_switcher_mode = (bool) XRCCTRL(*
this,
"chkStackedBasedTabSwitching",
wxCheckBox)->GetValue();
586 if (
Manager::Get()->GetConfigManager(
_T(
"app"))->ReadBool(
_T(
"/environment/tabs_stacked_based_switching")) != tab_switcher_mode)
588 if (tab_switcher_mode)
593 cfg->
Write(
_T(
"/environment/tabs_stacked_based_switching"), tab_switcher_mode);
595 bool enableMousewheel = (bool) XRCCTRL(*
this,
"chkNBUseMousewheel",
wxCheckBox)->GetValue();
596 cfg->
Write(
_T(
"/environment/tabs_use_mousewheel"), enableMousewheel);
598 cfg->
Write(
_T(
"/environment/tabs_mousewheel_modifier"), key.
IsEmpty()?
_T(
"Ctrl"):key);
599 cfg->
Write(
_T(
"/environment/tabs_mousewheel_advance"), (
bool) XRCCTRL(*
this,
"rbNBModToAdvance",
wxRadioButton)->GetValue());
600 cfg->
Write(
_T(
"/environment/tabs_invert_advance"), (
bool) XRCCTRL(*
this,
"chkNBInvertAdvance",
wxCheckBox)->GetValue());
601 cfg->
Write(
_T(
"/environment/tabs_invert_move"), (
bool) XRCCTRL(*
this,
"chkNBInvertMove",
wxCheckBox)->GetValue());
609 cfg->
Write(
_T(
"/environment/aui/border_size"), (
int) XRCCTRL(*
this,
"spnAuiBorder",
wxSpinCtrl)->GetValue());
610 cfg->
Write(
_T(
"/environment/aui/sash_size"), (
int) XRCCTRL(*
this,
"spnAuiSash",
wxSpinCtrl)->GetValue());
611 cfg->
Write(
_T(
"/environment/aui/caption_size"), (
int) XRCCTRL(*
this,
"spnAuiCaption",
wxSpinCtrl)->GetValue());
612 cfg->
Write(
_T(
"/environment/aui/active_caption_colour"), XRCCTRL(*
this,
"btnAuiActiveCaptionColour",
wxButton)->GetBackgroundColour());
613 cfg->
Write(
_T(
"/environment/aui/active_caption_gradient_colour"), XRCCTRL(*
this,
"btnAuiActiveCaptionGradientColour",
wxButton)->GetBackgroundColour());
614 cfg->
Write(
_T(
"/environment/aui/active_caption_text_colour"), XRCCTRL(*
this,
"btnAuiActiveCaptionTextColour",
wxButton)->GetBackgroundColour());
615 cfg->
Write(
_T(
"/environment/aui/inactive_caption_colour"), XRCCTRL(*
this,
"btnAuiInactiveCaptionColour",
wxButton)->GetBackgroundColour());
616 cfg->
Write(
_T(
"/environment/aui/inactive_caption_gradient_colour"), XRCCTRL(*
this,
"btnAuiInactiveCaptionGradientColour",
wxButton)->GetBackgroundColour());
617 cfg->
Write(
_T(
"/environment/aui/inactive_caption_text_colour"), XRCCTRL(*
this,
"btnAuiInactiveCaptionTextColour",
wxButton)->GetBackgroundColour());
634 for (
size_t i = 0; i < lb->
GetCount(); ++i)
640 acfg->
Write(
_T(
"/disabled_ret"), dialogs);
643 cfg->
Write(
_T(
"/network_proxy"), XRCCTRL(*
this,
"txtProxy",
wxTextCtrl)->GetValue());
674 AppColoursClientData(
const wxString &id_) : id(id_) {}
686 bool fillCategories = (categories->
GetCount() == 0);
687 std::set<wxString> setCategories;
689 wxString category = categories->GetStringSelection();
695 for (ColourManager::ColourDefMap::const_iterator it = colours.begin(); it != colours.end(); ++it)
697 if (!it->second.IsValid())
699 if (category.
empty())
700 list->Append(it->second.category +
wxT(
" : ") + it->second.name,
new AppColoursClientData(it->first));
701 else if (category == it->second.category)
702 list->Append(it->second.name,
new AppColoursClientData(it->first));
704 setCategories.insert(it->second.category);
709 categories->Append(
_(
"All"));
710 categories->Select(0);
711 for (std::set<wxString>::const_iterator it = setCategories.begin(); it != setCategories.end(); ++it)
712 categories->Append(*it);
729 const AppColoursClientData *data =
static_cast<AppColoursClientData*
>(
event.GetClientObject());
734 btnColour->Enable(
false);
735 btnDefault->Enable(
false);
740 const ColourManager::ColourDefMap::const_iterator it = colours.find(data->id);
741 if (it != colours.end())
743 std::map<wxString, wxColour>::const_iterator colourIt =
m_ChangedAppColours.find(data->id);
745 btnColour->SetBackgroundColour(colourIt->second);
747 btnColour->SetBackgroundColour(it->second.value);
749 btnDefault->SetBackgroundColour(it->second.defaultValue);
750 btnColour->Enable(
true);
751 btnDefault->Enable(
true);
757 btnColour->Enable(
false);
758 btnDefault->Enable(
false);
767 const AppColoursClientData *data;
768 data =
static_cast<AppColoursClientData*
>(list->GetClientObject(list->GetSelection()));
773 const ColourManager::ColourDefMap::const_iterator it = colours.find(data->id);
774 if (it == colours.end())
776 wxColour oldColour = it->second.value;
779 oldColour = changedIt->second;
783 if (event.GetId() == XRCID(
"btnColour"))
794 else if (event.GetId() == XRCID(
"btnDefaultColour"))
797 btnColour->SetBackgroundColour(it->second.defaultValue);
811 manager->
SetColour(it->first, it->second);
wxString AfterLast(wxUniChar ch) const
wxString F(const wxChar *msg,...)
sprintf-like function
void OnPageChanged(wxListbookEvent &event)
void EndModal(int retCode)
virtual bool AddPage(wxWindow *page, const wxString &text, bool select=false, int imageId=NO_IMAGE)
void OnResetDefaultColours(wxCommandEvent &event)
PluginManager * GetPluginManager() const
virtual bool SetPageImage(size_t page, int image)=0
virtual int GetSelection() const=0
Data folder in user's dir.
ConfigurationPanelsArray m_PluginPanels
ConfigManager * GetConfigManager(const wxString &name_space) const
int ReadInt(const wxString &name, int defaultVal=0)
void OnSettingsIconsSize(wxCommandEvent &event)
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
SettingsIconsStyle
Icons styles for settings dialogs.
virtual void SetColour(int id, const wxColour &colour)=0
DLLIMPORT const wxString DEFAULT_CONSOLE_TERM
DLLIMPORT const wxString cbDEFAULT_OPEN_FOLDER_CMD
void OnPageChanging(wxListbookEvent &event)
virtual int GetSelection() const
virtual wxString GetString(unsigned int n) const
bool GetFirst(wxString *filename, const wxString &filespec=wxEmptyString, int flags=wxDIR_DEFAULT) const
DLLIMPORT wxBitmap cbLoadBitmap(const wxString &filename, wxBitmapType bitmapType=wxBITMAP_TYPE_PNG)
This function loads a bitmap from disk.
void GetConfigurationPanels(int group, wxWindow *parent, ConfigurationPanelsArray &arrayToFill)
void RebuildNotebookStack()
bool ReadBool(const wxString &name, bool defaultVal=false)
static const int cgCompiler
Compiler related.
virtual wxString GetTitle() const =0
wxColour ReadColour(const wxString &name, const wxColour &defaultVal= *wxBLACK)
void OnManageAssocs(wxCommandEvent &event)
bool wxDirExists(const wxString &dirname)
virtual size_t GetPageCount() const
virtual void OnApply()=0
Called when the user chooses to apply the configuration.
void OnClickAppColour(wxCommandEvent &event)
virtual void OnCancel()=0
Called when the user chooses to cancel the configuration.
wxString BeforeLast(wxUniChar ch, wxString *rest=NULL) const
void OnDblClickMaximizes(wxCommandEvent &event)
wxString AnnoyingDlgReturnToString(const wxString &caption)
void WriteApplicationColours()
std::map< wxString, wxColour > m_ChangedAppColours
static const int cgEditor
Editor related.
bool IsChecked(unsigned int item) const
virtual unsigned int GetCount() const
virtual void SetMetric(int id, int new_val)=0
void OnAutoHide(wxCommandEvent &event)
void LoadListbookImages()
static const wxLanguageInfo * FindLanguageInfo(const wxString &locale)
static wxString LocateDataFile(const wxString &filename, int search_dirs=sdAllKnown)
Locate a file in an installation- and platform-independent way.
EditorManager * GetEditorManager() const
wxImageList * m_pImageList
void OnSetAssocs(wxCommandEvent &event)
void Write(const wxString &name, const wxString &value, bool ignoreEmpty=false)
virtual int GetImageCount() const
void UpdateListbookImages()
const wxString base_imgs[]
DLLIMPORT const wxString DEFAULT_CONSOLE_SHELL
bool Exists(const wxString &name)
wxFrame * GetAppFrame() const
virtual void EndModal(int retCode)
virtual wxColour GetColour(int id)=0
void OnHeadCheck(wxCommandEvent &event)
static void InvertMoveDirection(bool invert=false)
Change direction of tab-moving with mousewheel.
std::map< wxString, wxString > m_AnnoyingDlgReturnMap
static wxColour GetColour(wxSystemColour index)
wxString Read(const wxString &key, const wxString &defaultVal=wxEmptyString)
void OnChooseAppColourCategory(wxCommandEvent &event)
static void UseModToAdvance(bool use=false)
Use modkey to advance through tabs with mousewheel.
void OnChooseColour(wxCommandEvent &event)
std::set< wxString > StringSet
const wxString & _(const wxString &string)
Base class for plugin configuration panels.
void OnMousewheelModifier(wxKeyEvent &event)
wxEventType wxEVT_KEY_DOWN
virtual int GetMetric(int id)=0
void OnPlaceCheck(wxCommandEvent &event)
virtual wxString GetBitmapBaseName() const =0
static wxString GetDataFolder(bool global=true)
ColourManager * GetColourManager() const
static void SetModKeys(wxString keys=_T("Strg"))
Sets the modifier keys for scrolling.
bool GetNext(wxString *filename) const
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
const ColourDefMap & GetColourDefinitions() const
virtual ~EnvironmentSettingsDlg()
void OnChooseAppColourItem(wxCommandEvent &event)
void OnUseTabMousewheel(wxCommandEvent &event)
DLLIMPORT void SetSettingsIconsStyle(wxListCtrl *lc, SettingsIconsStyle style)
Set the icons style for the supplied list control.
wxString StringToAnnoyingDlgReturn(const wxString &caption)
void FillApplicationColours()
std::map< wxString, ColourDef > ColourDefMap
int Add(const wxBitmap &bitmap, const wxBitmap &mask=wxNullBitmap)
virtual wxString GetPageText(size_t nPage) const=0
void OnI18NCheck(wxCommandEvent &event)
void SetColour(const wxString &id, const wxColour &colour)
static wxXmlResource * Get()
ConfigManagerContainer::StringSet ReadSSet(const wxString &name)
wxColourData & GetColourData()
void SetColour(const wxColour &colour)
void DeleteNotebookStack()
void SetParentDialog(wxWindow *dialog)
Sets the panel's parent dialog.
wxListView * GetListView() const
bool wxGetKeyState(wxKeyCode key)
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)
virtual unsigned int GetCount() const
static void InvertAdvanceDirection(bool invert=false)
Change direction of tab-advancing with mousewheel.
void OnUseIpcCheck(wxCommandEvent &event)