Code::Blocks  SVN r11506
cbtool.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 CBTOOL_H
7 #define CBTOOL_H
8 
9 #include <wx/string.h>
10 
11 #define CB_TOOLS_SEPARATOR _T("---separator---")
12 
13 class cbTool
14 {
15  public:
17  {
22  };
23 
25  // getters
26  wxString GetName() const {return m_Name;}
27  wxString GetCommand() const {return m_Command;}
28  wxString GetParams() const {return m_Params;}
31  int GetMenuId() const {return m_MenuId;}
32  // setters
33  void SetName(const wxString& Name) {m_Name = Name;}
34  void SetCommand(const wxString& Command) {m_Command = Command;}
35  void SetParams(const wxString& Params) {m_Params = Params;}
36  void SetWorkingDir(const wxString& WorkingDir) {m_WorkingDir = WorkingDir;}
37  void SetLaunchOption(eLaunchOption LaunchOption) {m_LaunchOption = LaunchOption;}
38  void SetMenuId(int MenuId) {m_MenuId = MenuId;}
39  private:
45  int m_MenuId;
46 };
47 
48 #endif // CBTOOL_H
int m_MenuId
Definition: cbtool.h:45
cbTool()
Definition: cbtool.h:24
Definition: cbtool.h:13
eLaunchOption GetLaunchOption() const
Definition: cbtool.h:30
wxString GetParams() const
Definition: cbtool.h:28
wxString GetName() const
Definition: cbtool.h:26
eLaunchOption
Definition: cbtool.h:16
int GetMenuId() const
Definition: cbtool.h:31
wxString GetCommand() const
Definition: cbtool.h:27
void SetWorkingDir(const wxString &WorkingDir)
Definition: cbtool.h:36
eLaunchOption m_LaunchOption
Definition: cbtool.h:44
wxString m_Params
Definition: cbtool.h:42
void SetMenuId(int MenuId)
Definition: cbtool.h:38
wxString m_Command
Definition: cbtool.h:41
wxString m_Name
Definition: cbtool.h:40
wxString GetWorkingDir() const
Definition: cbtool.h:29
void SetLaunchOption(eLaunchOption LaunchOption)
Definition: cbtool.h:37
void SetCommand(const wxString &Command)
Definition: cbtool.h:34
void SetParams(const wxString &Params)
Definition: cbtool.h:35
wxString m_WorkingDir
Definition: cbtool.h:43
void SetName(const wxString &Name)
Definition: cbtool.h:33