18#ifndef _SNAPPING_PANEL_H_
19#define _SNAPPING_PANEL_H_
27#include <wx/spinctrl.h>
29#include "../core/tmsnappingmemory.h"
30#include "listgenreport.h"
31#include "managed_aui_wnd.h"
32#include "wxflatbutton.h"
38#define ID_SNAP_TOLERENCE_TXT 22000
39#define ID_SNAP_LIST 22001
40#define ID_SNAP_ADD 22002
41#define ID_SNAP_REMOVE 22003
42#define ID_SNAP_CLEAR 22004
43#define SNAPPING_PANEL_TITLE _("Snapping")
44#define SNAPPING_PANEL_SIZE wxSize(230, 150)
50 tmSnapping_DLG(wxWindow* parent, wxWindowID
id = wxID_ANY,
const wxString& title = wxEmptyString,
51 const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
52 long style = wxDEFAULT_DIALOG_STYLE);
56 virtual bool TransferDataToWindow();
58 virtual bool TransferDataFromWindow();
64 wxStaticText* m_LayerNameCtrl;
65 wxRadioButton* m_SnapNoneCtrl;
66 wxRadioButton* m_SnapBeginEndCtrl;
67 wxRadioButton* m_SnapAllCtrl;
77 wxSpinCtrl* m_TolerenceCtrl;
81 wxWindow* m_ParentEvt;
82 wxAuiPaneInfo m_PaneInfo;
85 wxPanel* _CreateControls();
87 void OnUpdateTolerence(wxSpinEvent& event);
89 void OnContextualMenu(wxContextMenuEvent& event);
91 void OnDClickList(wxListEvent& event);
96 Snapping_PANEL(wxWindow* parent, wxWindowID
id, wxAuiManager* auimanager);
105 m_Renderer = renderer;
116 void OnUpdateUIContextualMenuAdd(wxUpdateUIEvent& event);
118 void OnUpdateUIContextualMenuRemove(wxUpdateUIEvent& event);
121 return &m_SnappingMemory;
Definition database_tm.h:80
Definition datalistreportctrl.h:30
Definition managed_aui_wnd.h:32
The panel used for setting the snapping.
Definition snapping_panel.h:75
bool SaveSnappingStatus()
Save snapping status to the database.
Definition snapping_panel.cpp:251
void OnAddSnapping(wxCommandEvent &event)
Called when user press add snapping.
Definition snapping_panel.cpp:268
void OnRemoveSnapping(wxCommandEvent &event)
Called when user press remove snapping.
Definition snapping_panel.cpp:320
void LoadSnappingStatus()
Load the snapping from database.
Definition snapping_panel.cpp:206
Definition tmrenderer.h:99
Store snapping status into memory.
Definition tmsnappingmemory.h:59
Definition snapping_panel.h:48