ToolMap
Loading...
Searching...
No Matches
tocwindow_dlg.h
1
/***************************************************************************
2
tocwindow_dlg.h
3
Display the TOC, try using the wxDrawerWindow class
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 TOCWINDOW_DLG_H
20
#define TOCWINDOW_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
30
#include <wx/aui/framemanager.h>
31
#include <wx/aui/dockart.h>
32
#include <wx/tglbtn.h>
33
34
#include "../gis/tocctrl.h"
35
#include "wxflatbutton.h"
36
37
#define ID_TOCWINDOW_DLG 10035
38
#define ID_TREECTRL1 10127
39
#define ID_DLGTOC_ADD 10147
40
#define ID_DLGTOC_REMOVE 10145
41
#define SYMBOL_TOCWINDOW_DLG_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
42
#define SYMBOL_TOCWINDOW_DLG_TITLE _("Table of content")
43
#define SYMBOL_TOCWINDOW_DLG_IDNAME ID_TOCWINDOW_DLG
44
#define SYMBOL_TOCWINDOW_DLG_SIZE wxSize(220, 150)
45
#define SYMBOL_TOCWINDOW_DLG_POSITION wxDefaultPosition
46
47
class
TocWindowContent
:
public
wxEvtHandler {
48
private
:
49
DECLARE_DYNAMIC_CLASS(
TocWindowContent
);
50
51
TocCtrl
* m_TocCtrl;
52
53
public
:
54
TocWindowContent
();
55
56
~TocWindowContent
();
57
59
wxSizer*
CreateControls
(wxWindow* parent,
bool
call_fit = TRUE,
bool
set_sizer = TRUE);
60
61
virtual
void
Show() {
62
;
63
}
64
65
virtual
void
Hide() {
66
;
67
}
68
69
virtual
bool
IsShown() {
70
return
FALSE;
71
}
72
73
TocCtrl
* GetTocCtrl() {
74
return
m_TocCtrl;
75
}
76
};
77
78
class
TocWindowDlgGen
:
public
TocWindowContent
{
79
private
:
80
DECLARE_DYNAMIC_CLASS(
TocWindowDlgGen
);
81
82
void
Init();
83
84
wxAuiManager* m_TocAui;
85
wxPanel* m_ContentFrame;
86
wxWindow* m_ParentEvt;
87
88
// DECLARE_EVENT_TABLE();
89
90
public
:
91
TocWindowDlgGen
();
92
93
TocWindowDlgGen
(wxAuiManager* myAuiManager, wxWindow* parent, wxWindowID
id
= ID_TOCWINDOW_DLG,
94
const
wxString& title = SYMBOL_TOCWINDOW_DLG_TITLE);
95
96
~TocWindowDlgGen
();
97
98
virtual
void
Show();
99
100
virtual
void
Hide();
101
102
virtual
bool
IsShown();
103
104
/*void OnPressRemoveLayers(wxCommandEvent & event);
105
void OnPressAddLayers(wxCommandEvent & event);*/
106
};
107
108
#endif
TocCtrl
Definition
tocctrl.h:30
TocWindowContent
Definition
tocwindow_dlg.h:47
TocWindowContent::CreateControls
wxSizer * CreateControls(wxWindow *parent, bool call_fit=TRUE, bool set_sizer=TRUE)
Creates the controls and sizers.
Definition
tocwindow_dlg.cpp:33
TocWindowDlgGen
Definition
tocwindow_dlg.h:78
src
gui
tocwindow_dlg.h
Generated by
1.9.8