~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/envvars/envvars_prjoptdlg.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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
 
4
 */
 
5
 
 
6
#ifndef ENVVARSPROJECTOPTIONSDLG_H
 
7
#define ENVVARSPROJECTOPTIONSDLG_H
 
8
 
 
9
#include <wx/event.h>
 
10
#include <wx/string.h>
 
11
 
 
12
#include "configurationpanel.h"
 
13
 
 
14
class EnvVars;
 
15
class cbProject;
 
16
 
 
17
// ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- -----
 
18
 
 
19
class EnvVarsProjectOptionsDlg : public cbConfigurationPanel
 
20
{
 
21
public:
 
22
  /// Ctor
 
23
           EnvVarsProjectOptionsDlg(wxWindow*  parent, EnvVars* plugin,
 
24
                                    cbProject* project);
 
25
  /// Dtor
 
26
  virtual ~EnvVarsProjectOptionsDlg();
 
27
 
 
28
  /// returns the title of the plugin configuration panel
 
29
  virtual wxString GetTitle() const
 
30
  { return _("EnvVars options"); }
 
31
 
 
32
  /// returns the title of the plugin's bitmap to use for settings
 
33
  virtual wxString GetBitmapBaseName() const
 
34
  { return _T("generic-plugin"); }
 
35
 
 
36
protected:
 
37
  /// Fires if the UI is being updated (wx event)
 
38
  void OnUpdateUI(wxUpdateUIEvent& event);
 
39
 
 
40
private:
 
41
  /// Fires if the "apply" button is pressed inside project settings
 
42
  virtual void OnApply();
 
43
 
 
44
  /// Fires if the "cancel" button is pressed inside project settings
 
45
  virtual void OnCancel()
 
46
  { ; }
 
47
 
 
48
  EnvVars*   m_pPlugin;  //!< pointer to the EnvVars plugin (the parent)
 
49
  cbProject* m_pProject; //!< pointer to the currently active C::B project
 
50
 
 
51
  DECLARE_EVENT_TABLE()
 
52
};
 
53
 
 
54
#endif // ENVVARSPROJECTOPTIONSDLG_H