forked from Heeks/heekscad-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDoubleInput.h
37 lines (29 loc) · 976 Bytes
/
DoubleInput.h
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
// DoubleInput.h
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#pragma once
#include "../interface/InputMode.h"
#include "../interface/LeftAndRight.h"
class CDoubleInput: public CInputMode, CLeftAndRight
{
public:
wxString m_title;
wxString m_value_title;
double m_value;
static bool m_success;
CDoubleInput(const wxChar* prompt, const wxChar* value_name, double initial_value);
virtual ~CDoubleInput(){}
// virtual functions for InputMode
const wxChar* GetTitle();
void OnMouse( wxMouseEvent& event );
virtual void GetProperties(std::list<Property *> *list);
void GetTools(std::list<Tool*>* t_list, const wxPoint* p);
};
class CLengthInput: public CDoubleInput
{
public:
CLengthInput(const wxChar* prompt, const wxChar* value_name, double initial_value);
virtual ~CLengthInput(){}
// virtual functions for InputMode
virtual void GetProperties(std::list<Property *> *list);
};