| 1 |
|
| 2 |
#ifndef _WX_MAIN_H_ |
| 3 |
#define _WX_MAIN_H_cxx . . $ `src/main.h:3:9`! |
| 4 |
|
| 5 |
|
| 6 |
#include <wx/defs.h> |
| 7 |
#include <wx/app.h> |
| 8 |
#include <wx/menu.h> |
| 9 |
#include <wx/dcclient.h> |
| 10 |
|
| 11 |
#include <wx/glcanvas.h> |
| 12 |
|
| 13 |
extern "C" |
| 14 |
{ |
| 15 |
//#include "lw.h" |
| 16 |
//#include "trackball.h" |
| 17 |
} |
| 18 |
|
| 19 |
/* information needed to display lightwave mesh */ |
| 20 |
//typedef struct |
| 21 |
//{ |
| 22 |
// gint do_init; /* true if initgl not yet called */ |
| 23 |
// bool do_init; |
| 24 |
// //lwObject *lwobject; /* lightwave object mesh */ |
| 25 |
// float beginx,beginy; /* position of mouse */ |
| 26 |
// float quat[4]; /* orientation of object */ |
| 27 |
// float zoom; /* field of view in degrees */ |
| 28 |
//} mesh_info; |
| 29 |
|
| 30 |
|
| 31 |
/* Define a new application type */ |
| 32 |
class MyAppcxx . . $ MyApp#: public wxAppcxx . . $ wxApp# |
| 33 |
{ |
| 34 |
public: |
| 35 |
bool OnInitcxx . . $ MyApp#OnInit(c9857a73d68e59ba).(); |
| 36 |
}; |
| 37 |
|
| 38 |
class MyToolbarcxx . . $ MyToolbar#: public wxPanelcxx . . $ wxPanel# |
| 39 |
{ |
| 40 |
public: |
| 41 |
MyToolbarcxx . . $ MyToolbar#MyToolbar(fcd022dc193f5758).(wxTopLevelWindowcxx . . $ wxTopLevelWindow# *parent, wxWindowIDcxx . . $ wxWindowID# id = wxID_ANYcxx . . $ wxID_ANY., |
| 42 |
const wxPointcxx . . $ wxPoint#& pos = wxDefaultPositioncxx . . $ wxDefaultPosition., |
| 43 |
const wxSizecxx . . $ wxSize#& size = wxDefaultSizecxx . . $ wxDefaultSize., long style = 0, |
| 44 |
const wxStringcxx . . $ wxString#& name = wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("ToolBar")); |
| 45 |
void OnDragcxx . . $ MyToolbar#OnDrag(7e6a1c70b0e99497).(wxMouseEventcxx . . $ wxMouseEvent# &event); |
| 46 |
wxSizercxx . . $ wxSizer# *topsizercxx . . $ MyToolbar#topsizer.; |
| 47 |
|
| 48 |
void UpdateGearsIconcxx . . $ MyToolbar#UpdateGearsIcon(b45ddcbc8423892c).(bool b); |
| 49 |
|
| 50 |
void UpdateGearsIconcxx . . $ MyToolbar#UpdateGearsIcon(49f6e7a06ebc5aa8).(); |
| 51 |
|
| 52 |
void SetTitleTextcxx . . $ MyToolbar#SetTitleText(867e7b693acc3d1f).( wxStringcxx . . $ wxString# = wxEmptyStringcxx . . $ wxString#wxString(1751db0bab16ee59). ); |
| 53 |
|
| 54 |
private: |
| 55 |
wxTopLevelWindowcxx . . $ wxTopLevelWindow# *parentcxx . . $ MyToolbar#parent.; |
| 56 |
|
| 57 |
wxStaticTextcxx . . $ wxStaticText# *titleTextcxx . . $ MyToolbar#titleText.; |
| 58 |
wxSizercxx . . $ wxSizer# *titleTextSizercxx . . $ MyToolbar#titleTextSizer.; |
| 59 |
|
| 60 |
bool gearPresentcxx . . $ MyToolbar#gearPresent.; |
| 61 |
wxStaticBitmapcxx . . $ wxStaticBitmap# *gearcxx . . $ MyToolbar#gear.; |
| 62 |
wxBoxSizercxx . . $ wxBoxSizer# *gearScxx . . $ MyToolbar#gearS.; |
| 63 |
|
| 64 |
DECLARE_EVENT_TABLEcxx . . $ `<external>/9123237030240659982/event.h:4796:9`!() |
| 65 |
}; |
| 66 |
|
| 67 |
/* Define a new frame type */ |
| 68 |
class TestGLCanvascxx . . $ TestGLCanvas#; |
| 69 |
|
| 70 |
class MyFramecxx . . $ MyFrame#: public wxFramecxx . . $ wxFrame# |
| 71 |
{ |
| 72 |
public: |
| 73 |
MyFramecxx . . $ MyFrame#MyFrame(d08e3261cede07af).(wxFramecxx . . $ wxFrame# *frame, const wxStringcxx . . $ wxString#& title, const wxPointcxx . . $ wxPoint#& pos, |
| 74 |
const wxSizecxx . . $ wxSize#& size, long style = wxDEFAULT_FRAME_STYLEcxx . . $ `<external>/10524890736914687764/toplevel.h:86:9`!); |
| 75 |
|
| 76 |
void OnExitcxx . . $ MyFrame#OnExit(f55e5a77ec619b42).(wxCommandEventcxx . . $ wxCommandEvent#& event); |
| 77 |
void OnOpenFilecxx . . $ MyFrame#OnOpenFile(f55e5a77ec619b42). (wxCommandEventcxx . . $ wxCommandEvent# & event); // open the open-file dialogs |
| 78 |
void OnReadFilecxx . . $ MyFrame#OnReadFile(867e7b693acc3d1f). (wxStringcxx . . $ wxString# filename); // reads the file |
| 79 |
void OnSaveSnapcxx . . $ MyFrame#OnSaveSnap(f55e5a77ec619b42). (wxCommandEventcxx . . $ wxCommandEvent# & event); |
| 80 |
void OnAboutcxx . . $ MyFrame#OnAbout(f55e5a77ec619b42). (wxCommandEventcxx . . $ wxCommandEvent# & event); |
| 81 |
void OnSizecxx . . $ MyFrame#OnSize(2b95f7f26403c12f).(wxSizeEventcxx . . $ wxSizeEvent#& event); |
| 82 |
void Maximizecxx . . $ MyFrame#Maximize(b45ddcbc8423892c).(bool max); |
| 83 |
//#if defined(_WIN32) |
| 84 |
void OnEraseBackgroundcxx . . $ MyFrame#OnEraseBackground(f5067e5101ec9e9).(wxEraseEventcxx . . $ wxEraseEvent#& event); |
| 85 |
//#endif |
| 86 |
void SetToolbarcxx . . $ MyFrame#SetToolbar(6b0ec63e9752136a).( MyToolbarcxx . . $ MyToolbar# *tb ) { m_tbcxx . . $ MyFrame#m_tb. = tb; } |
| 87 |
MyToolbarcxx . . $ MyToolbar# *GetToolbarcxx . . $ MyFrame#GetToolbar(9823672ec5e9bb7e).() { return m_tbcxx . . $ MyFrame#m_tb.; } |
| 88 |
|
| 89 |
void OnPaintcxx . . $ MyFrame#OnPaint(954efb20b042ed11).( wxPaintEventcxx . . $ wxPaintEvent#& WXUNUSEDcxx . . $ `<external>/14689491191722134862/defs.h:988:13`!(event) ); |
| 90 |
|
| 91 |
#if wxUSE_GLCANVAScxx . . $ `<external>/11560256600324905329/setup.h:557:9`! |
| 92 |
|
| 93 |
void SetCanvascxx . . $ MyFrame#SetCanvas(d9f9b3934768c619).( TestGLCanvascxx . . $ TestGLCanvas# *canvas ) { m_canvascxx . . $ MyFrame#m_canvas. = canvas; } |
| 94 |
|
| 95 |
TestGLCanvascxx . . $ TestGLCanvas# *GetCanvascxx . . $ MyFrame#GetCanvas(8d8252a2e6bb20ff).() { return m_canvascxx . . $ MyFrame#m_canvas.; } |
| 96 |
|
| 97 |
void OnKeyUpcxx . . $ MyFrame#OnKeyUp(f4be455c09aa147).( wxKeyEventcxx . . $ wxKeyEvent#& event ); |
| 98 |
void OnKeyDowncxx . . $ MyFrame#OnKeyDown(f4be455c09aa147).( wxKeyEventcxx . . $ wxKeyEvent#& event ); |
| 99 |
|
| 100 |
void ResetAOcxx . . $ MyFrame#ResetAO(49f6e7a06ebc5aa8).(); |
| 101 |
void OnIdlecxx . . $ MyFrame#OnIdle(73da8fdfecada611).(wxIdleEventcxx . . $ wxIdleEvent#& event); |
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
private: |
| 106 |
|
| 107 |
enumcxx . . $ MyFrame#$anonymous_type_0# {NATURALcxx . . $ MyFrame#NATURAL., CUSTOMcxx . . $ MyFrame#CUSTOM., FORCEDcxx . . $ MyFrame#FORCED.} resize_modecxx . . $ MyFrame#resize_mode.; |
| 108 |
TestGLCanvascxx . . $ TestGLCanvas# *m_canvascxx . . $ MyFrame#m_canvas.; |
| 109 |
#endif |
| 110 |
|
| 111 |
MyToolbarcxx . . $ MyToolbar# *m_tbcxx . . $ MyFrame#m_tb.; |
| 112 |
|
| 113 |
DECLARE_EVENT_TABLEcxx . . $ `<external>/9123237030240659982/event.h:4796:9`!() |
| 114 |
}; |
| 115 |
|
| 116 |
#if wxUSE_GLCANVAScxx . . $ `<external>/11560256600324905329/setup.h:557:9`! |
| 117 |
|
| 118 |
class TestGLCanvascxx . . $ TestGLCanvas#: public wxGLCanvascxx . . $ wxGLCanvas# |
| 119 |
{ |
| 120 |
public: |
| 121 |
TestGLCanvascxx . . $ TestGLCanvas#TestGLCanvas(bcdeeae89954f8a3).(wxWindowcxx . . $ wxWindow# *parent, wxWindowIDcxx . . $ wxWindowID# id = wxID_ANYcxx . . $ wxID_ANY., |
| 122 |
const wxPointcxx . . $ wxPoint#& pos = wxDefaultPositioncxx . . $ wxDefaultPosition., |
| 123 |
const wxSizecxx . . $ wxSize#& size = wxDefaultSizecxx . . $ wxDefaultSize., long style = 0, |
| 124 |
const wxStringcxx . . $ wxString#& name = wxTcxx . . $ `<external>/13533349018018911527/chartype.h:199:17`!("GLCanvas")); |
| 125 |
|
| 126 |
~cxx . . $ TestGLCanvas#`~TestGLCanvas`(ced63f7c635d850d).TestGLCanvascxx . . $ TestGLCanvas#(); |
| 127 |
|
| 128 |
void OnPaintcxx . . $ TestGLCanvas#OnPaint(954efb20b042ed11).(wxPaintEventcxx . . $ wxPaintEvent#& event); |
| 129 |
void OnSizecxx . . $ TestGLCanvas#OnSize(2b95f7f26403c12f).(wxSizeEventcxx . . $ wxSizeEvent#& event); |
| 130 |
void OnEraseBackgroundcxx . . $ TestGLCanvas#OnEraseBackground(f5067e5101ec9e9).(wxEraseEventcxx . . $ wxEraseEvent#& event); |
| 131 |
void OnMousecxx . . $ TestGLCanvas#OnMouse(7e6a1c70b0e99497).( wxMouseEventcxx . . $ wxMouseEvent#& event ); |
| 132 |
void OnKeyUpcxx . . $ TestGLCanvas#OnKeyUp(f4be455c09aa147).( wxKeyEventcxx . . $ wxKeyEvent#& event ); |
| 133 |
void OnKeyDowncxx . . $ TestGLCanvas#OnKeyDown(f4be455c09aa147).( wxKeyEventcxx . . $ wxKeyEvent#& event ); |
| 134 |
void InitGLcxx . . $ TestGLCanvas#InitGL(49f6e7a06ebc5aa8).(); |
| 135 |
|
| 136 |
void SceneChangedcxx . . $ TestGLCanvas#SceneChanged(49f6e7a06ebc5aa8).(); // redraw! |
| 137 |
|
| 138 |
bool initdonecxx . . $ TestGLCanvas#initdone.; |
| 139 |
|
| 140 |
bool shownHQcxx . . $ TestGLCanvas#shownHQ.; |
| 141 |
|
| 142 |
private: |
| 143 |
//wxWindow *parent; |
| •144 |
wxGLContextcxx . . $ wxGLContext# *m_glRCcxx . . $ TestGLCanvas#m_glRC.; |
| 145 |
DECLARE_EVENT_TABLEcxx . . $ `<external>/9123237030240659982/event.h:4796:9`!() |
| 146 |
}; |
| 147 |
|
| 148 |
#endif // #if wxUSE_GLCANVAS |
| 149 |
|
| 150 |
#endif // #ifndef _WX_MAIN_H_ |
| 151 |
|