~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

Viewing changes to src/include/cbtool.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

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 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_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