2
* This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3
* http://www.gnu.org/licenses/gpl-3.0.html
6
#ifndef ENVVARS_CFGDLG_H
7
#define ENVVARS_CFGDLG_H
10
#include <wx/string.h>
11
#include <wx/window.h>
13
#include "configurationpanel.h"
18
// ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
20
class EnvVarsConfigDlg : public cbConfigurationPanel
24
EnvVarsConfigDlg(wxWindow* parent);
26
virtual ~EnvVarsConfigDlg()
29
/// returns the title of the plugin configuration panel
30
virtual wxString GetTitle() const
31
{ return _("Environment variables"); }
33
/// returns the title of the plugin's bitmap to use for configuration dialog
34
virtual wxString GetBitmapBaseName() const
35
{ return _T("envvars"); }
38
/// Fires if the UI is being updated (wx event)
39
void OnUpdateUI (wxUpdateUIEvent& event);
42
/// Fires if the "apply" button is pressed inside C::B settings
43
virtual void OnApply()
46
/// Fires if the "cancel" button is pressed inside C::B settings
47
virtual void OnCancel()
50
/// Load all settings (envvar sets) from global C::B config
52
/// Save all settings (envvar sets) to global C::B config
54
/// Save settings (of specific active envvar set) to global C::B config
55
void SaveSettingsActiveSet(wxString active_set);
57
/// Fires when a (new) envvar set is selected
58
void OnSetClick (wxCommandEvent& event);
59
/// Fires when the button to create an envvar set is pressed
60
void OnCreateSetClick (wxCommandEvent& event);
61
/// Fires when the button to clone an envvar set is pressed
62
void OnCloneSetClick (wxCommandEvent& event);
63
/// Fires when the button to remove an envvar set is pressed
64
void OnRemoveSetClick (wxCommandEvent& event);
66
/// Fires when the checkbox to toggle an envvar is changed
67
void OnToggleEnvVarClick(wxCommandEvent& event);
68
/// Fires when the button to add an envvar is pressed
69
void OnAddEnvVarClick (wxCommandEvent& event);
70
/// Fires when the button to edit an envvar is pressed
71
void OnEditEnvVarClick (wxCommandEvent& event);
72
/// Fires when the button to delete an envvar is pressed
73
void OnDeleteEnvVarClick(wxCommandEvent& event);
74
/// Fires when the button to clear all envvars is pressed
75
void OnClearEnvVarsClick(wxCommandEvent& event);
76
/// Fires when the button to set all envvars is pressed
77
void OnSetEnvVarsClick (wxCommandEvent& event);
79
/// Verifies that an envvar set is unique
80
bool VerifySetUnique(const wxChoice* choSet, wxString set);
85
#endif // ENVVARS_CFGDLG_H