]> git.saurik.com Git - wxWidgets.git/blob - utils/nplugin/samples/gui/gui.h
added and documented SplitVolume() and GetPathTerminators(); corrected SetPath()...
[wxWidgets.git] / utils / nplugin / samples / gui / gui.h
1 /*
2 * File: gui.h
3 * Purpose: wxWidgets plugin with a few GUI elements
4 * Author: Julian Smart
5 * Created: 1997
6 * Updated:
7 * Copyright: (c) Julian Smart
8 */
9
10 #ifndef __GUIH__
11 #define __GUIH__
12
13 // Define a new application type
14 class MyApp: public wxPluginApp
15 { public:
16 virtual wxFrame *OnInit(void);
17 virtual wxPluginFrame* OnNewInstance(const wxPluginData& data);
18 };
19
20 class MyApp;
21 class MyFrame;
22 class MyCanvas;
23
24 class MyFrame: public wxPluginFrame
25 {
26 public:
27 MyFrame(const wxPluginData& data);
28 virtual ~MyFrame();
29
30 void OldOnMenuCommand(int id);
31
32 private:
33 wxMenu* fileMenu;
34 wxMenuBar* menuBar;
35 MyCanvas* leftCanvas;
36 MyCanvas* rightCanvas;
37 wxSplitterWindow* splitter;
38 };
39
40 class MyCanvas: public wxScrolledWindow
41 {
42 public:
43 MyCanvas(wxWindow* parent, int x, int y, int w, int h);
44 virtual ~MyCanvas();
45
46 void OnPaint(wxPaintEvent& event);
47
48 DECLARE_EVENT_TABLE()
49 };
50
51 // ID for the menu quit command
52 #define SPLIT_QUIT 1
53 #define SPLIT_HORIZONTAL 2
54 #define SPLIT_VERTICAL 3
55 #define SPLIT_UNSPLIT 4
56
57
58 #endif
59