~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/compilergcc/compileroptionsdlg.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
class CompilerOptionsDlg : public cbConfigurationPanel
27
27
{
28
 
        public:
29
 
                CompilerOptionsDlg(wxWindow* parent, CompilerGCC* compiler, cbProject* project = 0L, ProjectBuildTarget* target = 0L);
30
 
                ~CompilerOptionsDlg();
 
28
    public:
 
29
        CompilerOptionsDlg(wxWindow* parent, CompilerGCC* compiler, cbProject* project = 0L, ProjectBuildTarget* target = 0L);
 
30
        ~CompilerOptionsDlg();
31
31
 
32
32
        virtual wxString GetTitle() const { return _("Global compiler settings"); }
33
33
        virtual wxString GetBitmapBaseName() const { return _T("compiler"); }
34
34
        virtual void OnApply();
35
35
        virtual void OnCancel(){}
36
 
        private:
 
36
    private:
37
37
        enum CustomVarActionType
38
38
        {
39
39
            CVA_Add,
47
47
            wxString            m_Key;
48
48
            wxString            m_KeyValue;
49
49
        };
50
 
                void TextToOptions();
51
 
                void OptionsToText();
52
 
                void DoFillCompilerSets(int compilerIdx);
53
 
                void DoFillCompilerPrograms();
54
 
                void DoFillVars();
55
 
                void DoFillOthers();
56
 
                void DoFillCategories();
57
 
                void DoFillOptions();
58
 
                void DoFillCompilerDependentSettings();
59
 
                void DoSaveCompilerDependentSettings();
60
 
                void DoFillTree();
61
 
                void DoSaveOptions();
62
 
                void DoLoadOptions();
63
 
                void DoSaveCompilerPrograms();
64
 
                void DoSaveVars();
65
 
                void CompilerChanged();
66
 
                void UpdateCompilerForTargets(int compilerIdx);
67
 
                void AutoDetectCompiler();
68
 
                wxListBox* GetDirsListBox();
 
50
        void TextToOptions();
 
51
        void OptionsToText();
 
52
        void DoFillCompilerSets(int compilerIdx);
 
53
        void DoFillCompilerPrograms();
 
54
        void DoFillVars();
 
55
        void DoFillOthers();
 
56
        void DoFillCategories();
 
57
        void DoFillOptions();
 
58
        void DoFillCompilerDependentSettings();
 
59
        void DoSaveCompilerDependentSettings();
 
60
        void DoFillTree();
 
61
        void DoSaveOptions();
 
62
        void DoLoadOptions();
 
63
        void DoSaveCompilerPrograms();
 
64
        void DoSaveVars();
 
65
        void CompilerChanged();
 
66
        void UpdateCompilerForTargets(int compilerIdx);
 
67
        void AutoDetectCompiler();
 
68
        wxListBox* GetDirsListBox();
69
69
        CompileOptionsBase* GetVarsOwner();
70
70
        void ProjectTargetCompilerAdjust(); //!< checks if compiler changed for project/target and takes actions accordingly
71
71
 
72
 
                void OnRealApply(); // user clicked the "Apply" button (so not the Ok button !!!)
73
 
                void OnTreeSelectionChange(wxTreeEvent& event);
74
 
                void OnTreeSelectionChanging(wxTreeEvent& event);
75
 
                void OnCompilerChanged(wxCommandEvent& event);
76
 
                void OnCategoryChanged(wxCommandEvent& event);
77
 
                void OnOptionToggled(wxCommandEvent& event);
78
 
                void OnAddDirClick(wxCommandEvent& event);
79
 
                void OnEditDirClick(wxCommandEvent& event);
80
 
                void OnRemoveDirClick(wxCommandEvent& event);
81
 
                void OnClearDirClick(wxCommandEvent& event);
82
 
                void OnCopyDirsClick(wxCommandEvent& event);
83
 
                void OnAddVarClick(wxCommandEvent& event);
84
 
                void OnEditVarClick(wxCommandEvent& event);
85
 
                void OnRemoveVarClick(wxCommandEvent& event);
86
 
                void OnClearVarClick(wxCommandEvent& event);
87
 
                void OnSetDefaultCompilerClick(wxCommandEvent& event);
88
 
                void OnAddCompilerClick(wxCommandEvent& event);
89
 
                void OnEditCompilerClick(wxCommandEvent& event);
90
 
                void OnRemoveCompilerClick(wxCommandEvent& event);
91
 
                void OnResetCompilerClick(wxCommandEvent& event);
92
 
                void OnAddLibClick(wxCommandEvent& event);
93
 
                void OnEditLibClick(wxCommandEvent& event);
94
 
                void OnRemoveLibClick(wxCommandEvent& event);
95
 
                void OnClearLibClick(wxCommandEvent& event);
96
 
                void OnCopyLibsClick(wxCommandEvent& event);
97
 
                void OnMoveLibUpClick(wxSpinEvent& event);
98
 
                void OnMoveLibDownClick(wxSpinEvent& event);
99
 
                void OnMoveDirUpClick(wxSpinEvent& event);
100
 
                void OnMoveDirDownClick(wxSpinEvent& event);
101
 
                void OnMasterPathClick(wxCommandEvent& event);
102
 
                void OnAutoDetectClick(wxCommandEvent& event);
103
 
                void OnSelectProgramClick(wxCommandEvent& event);
104
 
                void OnAdvancedClick(wxCommandEvent& event);
105
 
                void OnAddExtraPathClick(wxCommandEvent& event);
106
 
                void OnEditExtraPathClick(wxCommandEvent& event);
107
 
                void OnRemoveExtraPathClick(wxCommandEvent& event);
108
 
                void OnClearExtraPathClick(wxCommandEvent& event);
109
 
                void OnUpdateUI(wxUpdateUIEvent& event);
110
 
                void OnDirty(wxCommandEvent& event); // some controls who change their value -> dirty
111
 
                void OnMyCharHook(wxKeyEvent& event);
 
72
        void OnRealApply(); // user clicked the "Apply" button (so not the Ok button !!!)
 
73
        void OnTreeSelectionChange(wxTreeEvent& event);
 
74
        void OnTreeSelectionChanging(wxTreeEvent& event);
 
75
        void OnCompilerChanged(wxCommandEvent& event);
 
76
        void OnCategoryChanged(wxCommandEvent& event);
 
77
        void OnOptionToggled(wxCommandEvent& event);
 
78
        void OnAddDirClick(wxCommandEvent& event);
 
79
        void OnEditDirClick(wxCommandEvent& event);
 
80
        void OnRemoveDirClick(wxCommandEvent& event);
 
81
        void OnClearDirClick(wxCommandEvent& event);
 
82
        void OnCopyDirsClick(wxCommandEvent& event);
 
83
        void OnAddVarClick(wxCommandEvent& event);
 
84
        void OnEditVarClick(wxCommandEvent& event);
 
85
        void OnRemoveVarClick(wxCommandEvent& event);
 
86
        void OnClearVarClick(wxCommandEvent& event);
 
87
        void OnSetDefaultCompilerClick(wxCommandEvent& event);
 
88
        void OnAddCompilerClick(wxCommandEvent& event);
 
89
        void OnEditCompilerClick(wxCommandEvent& event);
 
90
        void OnRemoveCompilerClick(wxCommandEvent& event);
 
91
        void OnResetCompilerClick(wxCommandEvent& event);
 
92
        void OnAddLibClick(wxCommandEvent& event);
 
93
        void OnEditLibClick(wxCommandEvent& event);
 
94
        void OnRemoveLibClick(wxCommandEvent& event);
 
95
        void OnClearLibClick(wxCommandEvent& event);
 
96
        void OnCopyLibsClick(wxCommandEvent& event);
 
97
        void OnMoveLibUpClick(wxSpinEvent& event);
 
98
        void OnMoveLibDownClick(wxSpinEvent& event);
 
99
        void OnMoveDirUpClick(wxSpinEvent& event);
 
100
        void OnMoveDirDownClick(wxSpinEvent& event);
 
101
        void OnMasterPathClick(wxCommandEvent& event);
 
102
        void OnAutoDetectClick(wxCommandEvent& event);
 
103
        void OnSelectProgramClick(wxCommandEvent& event);
 
104
        void OnAdvancedClick(wxCommandEvent& event);
 
105
        void OnAddExtraPathClick(wxCommandEvent& event);
 
106
        void OnEditExtraPathClick(wxCommandEvent& event);
 
107
        void OnRemoveExtraPathClick(wxCommandEvent& event);
 
108
        void OnClearExtraPathClick(wxCommandEvent& event);
 
109
        void OnIgnoreAddClick(wxCommandEvent& event);
 
110
        void OnIgnoreRemoveClick(wxCommandEvent& event);
 
111
        void OnUpdateUI(wxUpdateUIEvent& event);
 
112
        void OnDirty(wxCommandEvent& event); // some controls who change their value -> dirty
 
113
        void OnMyCharHook(wxKeyEvent& event);
112
114
 
113
 
                CompilerGCC* m_Compiler;
114
 
                CompilerOptions m_Options;
 
115
        CompilerGCC* m_Compiler;
 
116
        CompilerOptions m_Options;
115
117
        wxArrayString m_LinkerOptions;
116
118
        wxArrayString m_LinkLibs;
117
119
        wxArrayString m_CompilerOptions;
118
 
                int m_CurrentCompilerIdx;
119
 
                cbProject* m_pProject;
120
 
                ProjectBuildTarget* m_pTarget;
121
 
                bool m_bDirty;                                  //!< true if a setting has changed since last save
122
 
                std::vector<CustomVarAction>    m_CustomVarActions; //!< the actions carried out on the custom vars that need to be saved/applied
123
 
                wxString m_NewProjectOrTargetCompilerId; //!< keeps track of the changes of compiler of the selected project/target
124
 
 
125
 
                bool m_BuildingTree; //!< flag to ignore tree changing events while building it
126
 
 
127
 
                DECLARE_EVENT_TABLE()
 
120
        int m_CurrentCompilerIdx;
 
121
        cbProject* m_pProject;
 
122
        ProjectBuildTarget* m_pTarget;
 
123
        bool m_bDirty;                    //!< true if a setting has changed since last save
 
124
        std::vector<CustomVarAction>    m_CustomVarActions; //!< the actions carried out on the custom vars that need to be saved/applied
 
125
        wxString m_NewProjectOrTargetCompilerId; //!< keeps track of the changes of compiler of the selected project/target
 
126
 
 
127
        bool m_BuildingTree; //!< flag to ignore tree changing events while building it
 
128
 
 
129
        DECLARE_EVENT_TABLE()
128
130
};
129
131
 
130
132
#endif // COMPILEROPTIONSDLG_H
131