]> git.saurik.com Git - wxWidgets.git/blame - samples/treelay/treelay.h
New module definition file to keep .dll build compilable.
[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{
15 public:
16 bool OnInit();
94799627 17 void TreeTest(wxTreeLayoutStored& tree, wxDC& dc);
4414cc1d
JS
18};
19
20DECLARE_APP(MyApp)
21
22class MyCanvas;
23
24class 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
36DECLARE_EVENT_TABLE()
37};
38
39// Define a new canvas which can receive some events
40class 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);
47DECLARE_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