~registry/codeblocks/trunk

« back to all changes in this revision

Viewing changes to src/include/editorconfigurationdlg.h

  • Committer: mandrav
  • Date: 2007-02-12 14:55:28 UTC
  • Revision ID: svn-v4:98b59c6a-2706-0410-b7d6-d2fa1a1880c9:trunk:3594
* First part of directories layout re-organization: moved all sdk header files to a new dir named "include".

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EDITORCONFIGURATION_H
 
2
#define EDITORCONFIGURATION_H
 
3
 
 
4
#include <wx/dialog.h>
 
5
#include <wx/arrstr.h>
 
6
#include "settings.h"
 
7
 
 
8
// forward decls
 
9
class cbStyledTextCtrl;
 
10
class EditorColourSet;
 
11
class wxListbookEvent;
 
12
 
 
13
class EditorConfigurationDlg : public wxDialog
 
14
{
 
15
        public:
 
16
                EditorConfigurationDlg(wxWindow* parent);
 
17
        ~EditorConfigurationDlg();
 
18
 
 
19
                void OnChooseFont(wxCommandEvent& event);
 
20
        void OnChooseColour(wxCommandEvent& event);
 
21
        void OnBoldItalicUline(wxCommandEvent& event);
 
22
                void OnColourTheme(wxCommandEvent& event);
 
23
                void OnAddColourTheme(wxCommandEvent& event);
 
24
                void OnDeleteColourTheme(wxCommandEvent& event);
 
25
                void OnRenameColourTheme(wxCommandEvent& event);
 
26
                void OnColourComponent(wxCommandEvent& event);
 
27
                void OnColoursReset(wxCommandEvent& event);
 
28
                void OnEditKeywords(wxCommandEvent& event);
 
29
                void OnEditFilemasks(wxCommandEvent& event);
 
30
                void OnChangeLang(wxCommandEvent& event);
 
31
                void OnChangeDefCodeFileType(wxCommandEvent& event);
 
32
                void OnAutoCompKeyword(wxCommandEvent& event);
 
33
                void OnAutoCompAdd(wxCommandEvent& event);
 
34
                void OnAutoCompDelete(wxCommandEvent& event);
 
35
                void OnDynamicCheck(wxCommandEvent& event);
 
36
                void UpdateSampleFont(bool askForNewFont);
 
37
 
 
38
                void EndModal(int retCode);
 
39
    private:
 
40
        void OnPageChanged(wxListbookEvent& event);
 
41
        void AddPluginPanels();
 
42
        void UpdateListbookImages();
 
43
                void CreateColoursSample();
 
44
                void CreateAutoCompText();
 
45
                void AutoCompUpdate(int index);
 
46
                void ApplyColours();
 
47
                void FillColourComponents();
 
48
                void ReadColours();
 
49
                void WriteColours();
 
50
                void LoadThemes();
 
51
                void ChangeTheme();
 
52
                bool AskToSaveTheme();
 
53
                cbStyledTextCtrl* m_TextColourControl;
 
54
                cbStyledTextCtrl* m_AutoCompTextControl;
 
55
                EditorColourSet* m_Theme;
 
56
                HighlightLanguage m_Lang;
 
57
                int m_DefCodeFileType;
 
58
                wxArrayString m_DefaultCode;  //!< will store the default code during configuration for each type
 
59
                bool m_ThemeModified;
 
60
                int m_LastAutoCompKeyword;
 
61
                AutoCompleteMap m_AutoCompMap;
 
62
        ConfigurationPanelsArray m_PluginPanels;
 
63
 
 
64
        DECLARE_EVENT_TABLE()
 
65
};
 
66
 
 
67
#endif // EDITORCONFIGURATION_H