ToolMap
Loading...
Searching...
No Matches
tmscalectrl.h
1/***************************************************************************
2 tmscalectrl.h
3 Contain scale control component
4 -------------------
5 copyright : (C) 2007 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16#ifndef _TM_SCALECTRL_H_
17#define _TM_SCALECTRL_H_
18
19#include <wx/wxprec.h>
20
21#ifndef WX_PRECOMP
22#include <wx/wx.h>
23#endif
24
25#include "../core/scale.h" // for ScaleTM
26#include "../database/database_tm.h" // for loading data from db
27
28// EVENT FOR SCALE CTRL
29DECLARE_EVENT_TYPE(tmEVT_SCALE_USER_CHANGED, -1)
30
31class tmScaleCtrlCombo : public wxComboBox {
32 private:
33 wxWindow* m_ParentEvent;
34 DECLARE_EVENT_TABLE();
35
36 protected:
37 public:
39
40 tmScaleCtrlCombo(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
41 const wxArrayString& arraystring);
42
44 ;
45 }
46
47 void InitScaleFromDatabase(const wxArrayLong& scale_values);
48
49 void SetValueScale(const long& scale);
50
51 void OnUserSetValue(wxCommandEvent& event);
52};
53
54#endif
Definition tmscalectrl.h:31