ToolMap
Loading...
Searching...
No Matches
TreeMultiItemWindow.h
1//---------------------------------------------------------------------------
2// $RCSfile: TreeMultiItemWindow.h $
3// $Source: contrib/include/wx/treemultictrl/TreeMultiItemWindow.h $
4// $Revision: 1.73 $
5// $Date: Jan 4, 2006 6:42:02 PM $
6//---------------------------------------------------------------------------
7// Author: Jorgen Bodde
8// Copyright: (c) Jorgen Bodde
9// License: wxWidgets License
10//---------------------------------------------------------------------------
11
12#ifndef __TREEMULTIITEMWINDOW_HPP_
13#define __TREEMULTIITEMWINDOW_HPP_
14
15#ifdef __GNUG__
16#pragma interface "TreeMultiItemWindow.cpp"
17#endif
18
19#ifndef WX_PRECOMP
20#include <wx/wx.h>
21#endif
22
23#include <wx/dynarray.h>
24
25#include "TreeMultiItemBase.h"
26
28 private:
31 wxWindow* _window;
32
34 int _topSpacing, _frontSpacing;
35
37 bool _span;
38
39 public:
40 TreeMultiItemWindow(TreeMultiItemNode* parent, const wxString& name = wxEmptyString);
41
42 virtual ~TreeMultiItemWindow();
43
44 // IsClass method
46 return (TreeMultiItemWindow*)this;
47 };
48
52 void AssignWindow(wxWindow* wnd);
53
55 wxWindow* GetWindow() {
56 return _window;
57 };
58
59 /* Sets front spacing */
60 void SetFrontSpacing(int frontSpacing) {
61 _frontSpacing = frontSpacing;
62 };
63
64 /* Gets front spacing */
65 int GetFrontSpacing() const {
66 return _frontSpacing;
67 };
68
69 /* Sets top spacing */
70 void SetTopSpacing(int topSpacing) {
71 _topSpacing = topSpacing;
72 };
73
74 /* Gets top spacing */
75 int GetTopSpacing() const {
76 return _topSpacing;
77 };
78
79 /* Sets horizontal span, meaning when this is set the window
80 attached may be resized horizontally when the window is resized */
81 void SetHorizontalSpan(bool span) {
82 _span = span;
83 };
84
85 /* Sets horizontal span, meaning when this is set the window
86 attached may be resized horizontally when the window is resized */
87 bool GetHorizontalSpan() const {
88 return _span;
89 };
90
91#if (CHECKBOXVIEW)
93 virtual void SetCheckboxState(int state);
94#endif
95};
96
97#endif
Definition TreeMultiItemBase.h:30
Definition TreeMultiItemNode.h:41
Definition TreeMultiItemWindow.h:27
virtual TreeMultiItemWindow * IsTreeMultiItemWindow() const
Definition TreeMultiItemWindow.h:45
void AssignWindow(wxWindow *wnd)
Definition TreeMultiItemWindow.cpp:46
wxWindow * GetWindow()
Definition TreeMultiItemWindow.h:55