Code::Blocks  SVN r11506
editorconfigurationdlg.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef EDITORCONFIGURATION_H
7 #define EDITORCONFIGURATION_H
8 
9 #include <map>
10 #include "scrollingdialog.h"
11 #include <wx/arrstr.h>
12 #include "settings.h"
13 
14 // forward decls
15 class cbStyledTextCtrl;
16 class EditorColourSet;
17 class wxListbookEvent;
18 
20 {
21  public:
24 
25  private:
26  void OnChooseFont(wxCommandEvent& event);
27  void OnChooseColour(wxCommandEvent& event);
29  void OnBoldItalicUline(wxCommandEvent& event);
30  void OnColourTheme(wxCommandEvent& event);
31  void OnAddColourTheme(wxCommandEvent& event);
34  void OnColourComponent(wxCommandEvent& event);
35  void OnColoursReset(wxCommandEvent& event);
36  void OnColoursCopyFrom(wxCommandEvent& event);
40  void OnEditKeywords(wxCommandEvent& event);
41  void OnEditFilemasks(wxCommandEvent& event);
42  void OnChangeLang(wxCommandEvent& event);
44  void OnDynamicCheck(wxCommandEvent& event);
47  void UpdateSampleFont(bool askForNewFont);
48  void OnCaretStyle(wxCommandEvent& event);
49 
50  void EndModal(int retCode);
51  private:
52  void OnPageChanged(wxListbookEvent& event);
53  void AddPluginPanels();
54  void LoadListbookImages();
55  void UpdateListbookImages();
56  void CreateColoursSample();
57  void ApplyColours();
58  void FillColourComponents();
59  void ReadColours();
60  void WriteColours();
61  void LoadThemes();
62  void ChangeTheme();
63  bool AskToSaveTheme();
64  void UpdateColourControls(const OptionColour *opt);
65  private:
67  {
69  int index;
70  };
71  typedef std::map<long, MenuItemLanguageOptionID> MenuIDToLanguageOption;
72  private:
79  ConfigurationPanelsArray m_PluginPanels;
80  wxString m_FontString; // This is to store font data temporarily
81  bool m_EnableChangebar; // remember whether changebar was enabled or not
82  bool m_EnableScrollWidthTracking; // remember whether scrollbarwidthtracking was enabled or not
83  MenuIDToLanguageOption m_MenuIDToLanguageOption;
85 
86  DECLARE_EVENT_TABLE()
87 };
88 
89 #endif // EDITORCONFIGURATION_H
void UpdateColourControls(const OptionColour *opt)
void OnMenuColoursCopyFrom(wxCommandEvent &event)
void OnColoursCopyAllFrom(wxCommandEvent &event)
std::map< long, MenuItemLanguageOptionID > MenuIDToLanguageOption
void OnChooseColour(wxCommandEvent &event)
void OnSetDefaultColour(wxCommandEvent &event)
void OnCaretStyle(wxCommandEvent &event)
void OnChooseFont(wxCommandEvent &event)
MenuIDToLanguageOption m_MenuIDToLanguageOption
void OnChangeDefCodeFileType(wxCommandEvent &event)
void OnColourComponent(wxCommandEvent &event)
void OnAddColourTheme(wxCommandEvent &event)
void OnDeleteColourTheme(wxCommandEvent &event)
EditorConfigurationDlg(wxWindow *parent)
void OnHighlightOccurrences(wxCommandEvent &event)
wxArrayString m_DefaultCode
will store the default code during configuration for each type
void OnRenameColourTheme(wxCommandEvent &event)
void UpdateSampleFont(bool askForNewFont)
void OnEditFilemasks(wxCommandEvent &event)
void OnBoldItalicUline(wxCommandEvent &event)
void OnPageChanged(wxListbookEvent &event)
void OnMultipleSelections(wxCommandEvent &event)
void OnDynamicCheck(wxCommandEvent &event)
void OnColoursCopyFrom(wxCommandEvent &event)
void OnChangeLang(wxCommandEvent &event)
void OnEditKeywords(wxCommandEvent &event)
ConfigurationPanelsArray m_PluginPanels
void OnColourTheme(wxCommandEvent &event)
void OnColoursReset(wxCommandEvent &event)
cbStyledTextCtrl * m_TextColourControl
void OnMenuColoursCopyAllFrom(wxCommandEvent &event)