-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEditToolDialog.hpp
59 lines (46 loc) · 1.15 KB
/
EditToolDialog.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
////////////////////////////////////////////////////////////////////////////////
//! \file EditToolDialog.hpp
//! \brief The EditToolDialog class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef EDITTOOLDIALOG_HPP
#define EDITTOOLDIALOG_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/CommonUI.hpp>
#include "Tool.hpp"
#include <set>
////////////////////////////////////////////////////////////////////////////////
//! The dialog used to edit the defintion for a tool.
class EditToolDialog : public CDialog
{
public:
//! The set of tool names.
typedef std::set<tstring> ToolNames;
public:
//! Default constructor.
EditToolDialog();
//
// Members.
//
Tool m_tool; //! The tool being edited.
ToolNames m_usedNames; //! The set of tool names already in use.
private:
//
// Members.
//
//
// Controls.
//
CEditBox m_nameEditor; //! The tool name edit control.
CComboBox m_cmdLineEditor; //! The command line edit control.
//
// Message handlers.
//
//! Dialog initialisation handler.
virtual void OnInitDialog();
//! OK button handler.
virtual bool OnOk();
};
#endif // EDITTOOLDIALOG_HPP