1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
#ifndef _PAGEGENARATOR_H_
#define _PAGEGENERATOR_H_
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "pagegenerator.cpp"
#endif
///INCLUDES
#include "wx/app.h"
#include "wx/grid.h"
#include "wx/treectrl.h"
#include "wx/spinctrl.h"
#include "wx/artprov.h"
#include "wx/clipbrd.h"
#include "wx/image.h"
#include "wx/colordlg.h"
#include "wx/wxhtml.h"
#include "wx/imaglist.h"
#include "wx/dataobj.h"
#include "wx/dcclient.h"
#include "wx/bmpbuttn.h"
#include "wx/menu.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
#include "wx/msgdlg.h"
#include "wx/textdlg.h"
#include "wx/splitter.h"
#include "wx/textctrl.h"
#include "wx/splitter.h"
#include "wx/mediactrl.h"
#include "wx/stattext.h"
#include "wx/aui/aui.h"
//#include "common/sample.xpm"
/////////
class wxPageGenerator : public wxWindow
{
enum
{
ID_Text1,
ID_Text2,
ID_RichText,
ID_Video,
ID_ButtonOK
};
public:
wxPageGenerator(wxWindow* parent, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,wxAuiManager* mgr = NULL)
: wxWindow(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize)
{
m_mgr = mgr;
}
private:
void OnPaint(wxPaintEvent& WXUNUSED(evt))
{
wxSize size = GetClientSize();
wxBoxSizer* s1= new wxBoxSizer(wxHORIZONTAL);
wxStaticText* t1 = new wxStaticText(this, ID_Text1, wxT("Diagnostic"), wxPoint(5,5), wxDefaultSize, 0, wxT("WxStaticText1"));
// t1->SetFont(wxFont(8, wxSWISS, wxNORMAL,wxNORMAL, false, wxT("Tahoma")));
s1->Add(t1,1,wxEXPAND);
wxStaticText* t2 = new wxStaticText(this, ID_Text2, wxT("Illustration"), wxPoint(size.x/2,5), wxDefaultSize, 0, wxT("WxStaticText2"));
// t2->SetFont(wxFont(8, wxSWISS, wxNORMAL,wxNORMAL, false, wxT("Tahoma")));
s1->Add(t2,1,wxEXPAND);
//wxTextCtrl* te1 = new wxTextCtrl(this, ID_RichText, wxT(""), wxDefaultPosition, wxDefaultSize, 0 );
// te1->SetMaxLength(0);
//Update();
//Refresh(true);
}
private:
wxAuiManager* m_mgr;
wxTextCtrl* m_text;
private:
void OnEraseBackground(wxEraseEvent& event)
{
event.Skip();
}
void OnSize(wxSizeEvent& WXUNUSED(evt))
{
Update();
//Refresh(true);
}
DECLARE_EVENT_TABLE()
};
#endif // _PAGEGENERATOR_H_ |
Partager