ToolMap
Loading...
Searching...
No Matches
danglingnodes_dlg.h
1/***************************************************************************
2 danglingnodes_dlg.h
3 Display Dangling nodes Dialog
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
17// comment doxygen
18
19#ifndef _DANGLING_NODES_DLG_H_
20#define _DANGLING_NODES_DLG_H_
21
22// For compilers that support precompilation, includes "wx/wx.h".
23#include <wx/wxprec.h>
24
25// Include wxWidgets' headers
26#ifndef WX_PRECOMP
27#include <wx/wx.h>
28#endif
29
30const int ID_DLGDN_CLEAR = 22210;
31
32class DanglingNode_DLG : public wxDialog {
33 private:
34 wxListBox* m_LayerChoice;
35
36 void CreateControls();
37
38 int m_SelectedLayer;
39
40 // private event
41 void OnClearDangling(wxCommandEvent& event);
42
43 DECLARE_EVENT_TABLE();
44
45 public:
46 DanglingNode_DLG(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Dangling nodes"),
47 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
48 long style = wxDEFAULT_DIALOG_STYLE); //|wxRESIZE_BORDER );
50
51 void SetLayers(const wxArrayString& layers, int selected = wxNOT_FOUND);
52
53 virtual bool TransferDataFromWindow();
54
55 int GetSelectedLayer() {
56 return m_SelectedLayer;
57 }
58};
59
60#endif
Definition danglingnodes_dlg.h:32