]> git.saurik.com Git - wxWidgets.git/blob - samples/treelay/treelay.h
ItemHasChildren() should return TRUE for the items which have plus button as they...
[wxWidgets.git] / samples / treelay / treelay.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: treelay.h
3 // Purpose: wxTreeLayout sample
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 7/4/98
7 // RCS-ID: $Id$
8 // Copyright: (c) 1998 Julian Smart
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 // Define a new application
13 class MyApp: public wxApp
14 {
15 public:
16 bool OnInit();
17 void TreeTest(wxTreeLayoutStored& tree, wxDC& dc);
18 };
19
20 DECLARE_APP(MyApp)
21
22 class MyCanvas;
23
24 class MyFrame: public wxFrame
25 {
26 public:
27 MyCanvas *canvas;
28 MyFrame(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
29
30 void OnCloseWindow(wxCloseEvent& event);
31 void OnQuit(wxCommandEvent& event);
32 void OnAbout(wxCommandEvent& event);
33 void OnLeftRight(wxCommandEvent& event);
34 void OnTopBottom(wxCommandEvent& event);
35
36 DECLARE_EVENT_TABLE()
37 };
38
39 // Define a new canvas which can receive some events
40 class MyCanvas: public wxScrolledWindow
41 {
42 public:
43 MyCanvas(wxWindow *frame);
44 void OnPaint(wxPaintEvent& event);
45 void OnEvent(wxMouseEvent& event);
46 void OnChar(wxKeyEvent& event);
47 DECLARE_EVENT_TABLE()
48 };
49
50 #define TEST_QUIT 1
51 #define TEST_ABOUT 2
52 #define TEST_LEFT_RIGHT 3
53 #define TEST_TOP_BOTTOM 4
54