Files correlati : Commento : Spostamento in libraries delle librerie esterne di Campo per una maggiore pulizia e organizzazione git-svn-id: svn://10.65.10.50/branches/R_10_00@24150 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * File:	gui.h
 | |
|  * Purpose:	wxWidgets plugin with a few GUI elements
 | |
|  * Author:	Julian Smart
 | |
|  * Created:	1997
 | |
|  * Updated:	
 | |
|  * Copyright:   (c) Julian Smart
 | |
|  */
 | |
| 
 | |
| #ifndef __GUIH__
 | |
| #define __GUIH__
 | |
| 
 | |
| // Define a new application type
 | |
| class MyApp: public wxPluginApp
 | |
| { public:
 | |
|     virtual wxFrame *OnInit(void);
 | |
|     virtual wxPluginFrame* OnNewInstance(const wxPluginData& data);
 | |
| };
 | |
| 
 | |
| class MyApp;
 | |
| class MyFrame;
 | |
| class MyCanvas;
 | |
| 
 | |
| class MyFrame: public wxPluginFrame
 | |
| {
 | |
| public:
 | |
| 	MyFrame(const wxPluginData& data);
 | |
| 	virtual ~MyFrame();
 | |
| 
 | |
| 	void OldOnMenuCommand(int id);
 | |
| 
 | |
| private:
 | |
| 	wxMenu*		fileMenu;
 | |
| 	wxMenuBar*	menuBar;
 | |
| 	MyCanvas*	leftCanvas;
 | |
| 	MyCanvas*	rightCanvas;
 | |
|     wxSplitterWindow* splitter;
 | |
| };
 | |
| 
 | |
| class MyCanvas: public wxScrolledWindow
 | |
| {
 | |
| public:
 | |
| 	MyCanvas(wxWindow* parent, int x, int y, int w, int h);
 | |
| 	virtual ~MyCanvas();
 | |
| 
 | |
| 	void OnPaint(wxPaintEvent& event);
 | |
| 
 | |
| DECLARE_EVENT_TABLE()
 | |
| };
 | |
| 
 | |
| // ID for the menu quit command
 | |
| #define SPLIT_QUIT          1
 | |
| #define SPLIT_HORIZONTAL    2
 | |
| #define SPLIT_VERTICAL      3
 | |
| #define SPLIT_UNSPLIT       4
 | |
| 
 | |
| 
 | |
| #endif
 | |
| 
 |