Code::Blocks
SVN r11506
include
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
:
16
enum
eLaunchOption
17
{
18
LAUNCH_NEW_CONSOLE_WINDOW
,
19
LAUNCH_HIDDEN
,
20
LAUNCH_VISIBLE
,
21
LAUNCH_VISIBLE_DETACHED
22
};
23
24
cbTool
() {
m_LaunchOption
=
LAUNCH_NEW_CONSOLE_WINDOW
;
m_MenuId
= -1; }
25
// getters
26
wxString
GetName
()
const
{
return
m_Name
;}
27
wxString
GetCommand
()
const
{
return
m_Command
;}
28
wxString
GetParams
()
const
{
return
m_Params
;}
29
wxString
GetWorkingDir
()
const
{
return
m_WorkingDir
;}
30
eLaunchOption
GetLaunchOption
()
const
{
return
m_LaunchOption
;}
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
:
40
wxString
m_Name
;
41
wxString
m_Command
;
42
wxString
m_Params
;
43
wxString
m_WorkingDir
;
44
eLaunchOption
m_LaunchOption
;
45
int
m_MenuId
;
46
};
47
48
#endif // CBTOOL_H
cbTool::m_MenuId
int m_MenuId
Definition:
cbtool.h:45
cbTool::cbTool
cbTool()
Definition:
cbtool.h:24
string.h
cbTool
Definition:
cbtool.h:13
cbTool::GetLaunchOption
eLaunchOption GetLaunchOption() const
Definition:
cbtool.h:30
cbTool::GetParams
wxString GetParams() const
Definition:
cbtool.h:28
cbTool::GetName
wxString GetName() const
Definition:
cbtool.h:26
cbTool::eLaunchOption
eLaunchOption
Definition:
cbtool.h:16
cbTool::GetMenuId
int GetMenuId() const
Definition:
cbtool.h:31
cbTool::GetCommand
wxString GetCommand() const
Definition:
cbtool.h:27
wxString
cbTool::SetWorkingDir
void SetWorkingDir(const wxString &WorkingDir)
Definition:
cbtool.h:36
cbTool::m_LaunchOption
eLaunchOption m_LaunchOption
Definition:
cbtool.h:44
cbTool::m_Params
wxString m_Params
Definition:
cbtool.h:42
cbTool::SetMenuId
void SetMenuId(int MenuId)
Definition:
cbtool.h:38
cbTool::LAUNCH_VISIBLE
Definition:
cbtool.h:20
cbTool::m_Command
wxString m_Command
Definition:
cbtool.h:41
cbTool::m_Name
wxString m_Name
Definition:
cbtool.h:40
cbTool::GetWorkingDir
wxString GetWorkingDir() const
Definition:
cbtool.h:29
cbTool::SetLaunchOption
void SetLaunchOption(eLaunchOption LaunchOption)
Definition:
cbtool.h:37
cbTool::LAUNCH_HIDDEN
Definition:
cbtool.h:19
cbTool::LAUNCH_NEW_CONSOLE_WINDOW
Definition:
cbtool.h:18
cbTool::SetCommand
void SetCommand(const wxString &Command)
Definition:
cbtool.h:34
cbTool::SetParams
void SetParams(const wxString &Params)
Definition:
cbtool.h:35
cbTool::m_WorkingDir
wxString m_WorkingDir
Definition:
cbtool.h:43
cbTool::SetName
void SetName(const wxString &Name)
Definition:
cbtool.h:33
cbTool::LAUNCH_VISIBLE_DETACHED
Definition:
cbtool.h:21
Generated by
1.8.13