]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/nplugin/samples/gui/gui.h
Added clipboard cut and paste
[wxWidgets.git] / utils / nplugin / samples / gui / gui.h
... / ...
CommitLineData
1/*
2 * File: gui.h
3 * Purpose: wxWindows 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
14class MyApp: public wxPluginApp
15{ public:
16 virtual wxFrame *OnInit(void);
17 virtual wxPluginFrame* OnNewInstance(const wxPluginData& data);
18};
19
20class MyApp;
21class MyFrame;
22class MyCanvas;
23
24class MyFrame: public wxPluginFrame
25{
26public:
27 MyFrame(const wxPluginData& data);
28 virtual ~MyFrame();
29
30 void OldOnMenuCommand(int id);
31
32private:
33 wxMenu* fileMenu;
34 wxMenuBar* menuBar;
35 MyCanvas* leftCanvas;
36 MyCanvas* rightCanvas;
37 wxSplitterWindow* splitter;
38};
39
40class MyCanvas: public wxScrolledWindow
41{
42public:
43 MyCanvas(wxWindow* parent, int x, int y, int w, int h);
44 virtual ~MyCanvas();
45
46 void OnPaint(wxPaintEvent& event);
47
48DECLARE_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