]> git.saurik.com Git - wxWidgets.git/blame - samples/treelay/treelay.h
applied patch 568329
[wxWidgets.git] / samples / treelay / treelay.h
CommitLineData
4414cc1d 1///////////////////////////////////////////////////////////////////////////////
07a9af32 2// Name: treelay.h
4414cc1d
JS
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
13class MyApp: public wxApp
14{
2f6c54eb
VZ
15public:
16 virtual bool OnInit();
17 virtual int OnExit();
94799627 18 void TreeTest(wxTreeLayoutStored& tree, wxDC& dc);
4414cc1d
JS
19};
20
21DECLARE_APP(MyApp)
22
23class MyCanvas;
24
25class MyFrame: public wxFrame
26{
27 public:
28 MyCanvas *canvas;
29 MyFrame(wxWindow *parent, const wxString& title, const wxPoint& pos, const wxSize& size);
30
31 void OnCloseWindow(wxCloseEvent& event);
32 void OnQuit(wxCommandEvent& event);
33 void OnAbout(wxCommandEvent& event);
34 void OnLeftRight(wxCommandEvent& event);
35 void OnTopBottom(wxCommandEvent& event);
36
37DECLARE_EVENT_TABLE()
38};
39
40// Define a new canvas which can receive some events
41class MyCanvas: public wxScrolledWindow
42{
43 public:
44 MyCanvas(wxWindow *frame);
45 void OnPaint(wxPaintEvent& event);
46 void OnEvent(wxMouseEvent& event);
47 void OnChar(wxKeyEvent& event);
48DECLARE_EVENT_TABLE()
49};
50
51#define TEST_QUIT 1
52#define TEST_ABOUT 2
53#define TEST_LEFT_RIGHT 3
54#define TEST_TOP_BOTTOM 4
55