Go to the documentation of this file.00001
00002
00003
00004
00005
00007
00008 #ifndef __H3DViewer__
00009 #define __H3DViewer__
00010
00011 #include <wx/string.h>
00012 #include <wx/bitmap.h>
00013 #include <wx/image.h>
00014 #include <wx/icon.h>
00015 #include <wx/menu.h>
00016 #include <wx/gdicmn.h>
00017 #include <wx/font.h>
00018 #include <wx/colour.h>
00019 #include <wx/settings.h>
00020 #include <wx/treectrl.h>
00021 #include <wx/sizer.h>
00022 #include <wx/panel.h>
00023 #include <wx/grid.h>
00024 #include <wx/splitter.h>
00025 #include <wx/frame.h>
00026 #include <wx/stattext.h>
00027 #include <wx/listbox.h>
00028 #include <wx/button.h>
00029 #include <wx/checkbox.h>
00030 #include <wx/richtext/richtextctrl.h>
00031 #include <wx/dialog.h>
00032
00034
00035
00039 class TreeViewDialog : public wxFrame
00040 {
00041 private:
00042
00043 protected:
00044 wxMenuBar* m_menubar1;
00045 wxMenu* RightClickMenu;
00046 wxMenu* RightClickMenuGeometry;
00047 wxSplitterWindow* m_splitter1;
00048 wxPanel* m_panel1;
00049 wxPanel* m_panel2;
00050
00051
00052 virtual void OnClose( wxCloseEvent& event ){ event.Skip(); }
00053 virtual void OnIdle( wxIdleEvent& event ){ event.Skip(); }
00054 virtual void OnTreeViewCollapseAll( wxCommandEvent& event ){ event.Skip(); }
00055 virtual void OnTreeViewExpandAll( wxCommandEvent& event ){ event.Skip(); }
00056 virtual void OnTreeViewCollapseChildren( wxCommandEvent& event ){ event.Skip(); }
00057 virtual void OnTreeViewNodeWatch( wxCommandEvent& event ){ event.Skip(); }
00058 virtual void OnTreeViewSaveX3D( wxCommandEvent& event ){ event.Skip(); }
00059 virtual void OnTreeViewSaveSTL( wxCommandEvent& event ){ event.Skip(); }
00060 virtual void OnTreeRightClick( wxTreeEvent& event ){ event.Skip(); }
00061 virtual void OnNodeSelected( wxTreeEvent& event ){ event.Skip(); }
00062 virtual void OnCellEdit( wxGridEvent& event ){ event.Skip(); }
00063
00064
00065 public:
00066 wxTreeCtrl* TreeViewTree;
00067 wxGrid* FieldValuesGrid;
00068 TreeViewDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Scene tree view"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 594,453 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
00069 ~TreeViewDialog();
00070 void m_splitter1OnIdle( wxIdleEvent& )
00071 {
00072 m_splitter1->SetSashPosition( 346 );
00073 m_splitter1->Disconnect( wxEVT_IDLE, wxIdleEventHandler( TreeViewDialog::m_splitter1OnIdle ), NULL, this );
00074 }
00075
00076
00077 };
00078
00082 class FieldValuesDialog : public wxFrame
00083 {
00084 private:
00085
00086 protected:
00087
00088
00089 virtual void OnIdle( wxIdleEvent& event ){ event.Skip(); }
00090 virtual void OnCellEdit( wxGridEvent& event ){ event.Skip(); }
00091
00092
00093 public:
00094 wxGrid* FieldValuesGrid;
00095 FieldValuesDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 236,335 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
00096 ~FieldValuesDialog();
00097
00098 };
00099
00103 class PluginsDialog : public wxDialog
00104 {
00105 private:
00106
00107 protected:
00108 wxBoxSizer* PluginsSizer;
00109 wxStaticText* m_staticText1;
00110 wxListBox* InstalledPluginsList;
00111 wxBoxSizer* AddRemoveButtonSizer;
00112 wxButton* AddPluginButton;
00113 wxButton* RemovePluginButton;
00114
00115 wxRichTextCtrl* PluginInfoText;
00116
00117
00118 virtual void OnInstalledPluginSelected( wxCommandEvent& event ){ event.Skip(); }
00119 virtual void OnAddPluginButton( wxCommandEvent& event ){ event.Skip(); }
00120 virtual void OnRemovePluginButton( wxCommandEvent& event ){ event.Skip(); }
00121 virtual void OnDisablePluginCheckbox( wxCommandEvent& event ){ event.Skip(); }
00122 virtual void OnURLEvent( wxTextUrlEvent& event ){ event.Skip(); }
00123
00124
00125 public:
00126 wxCheckBox* DisablePluginsCheckBox;
00127 PluginsDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Plugins"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 420,326 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
00128 ~PluginsDialog();
00129
00130 };
00131
00132 #endif //__H3DViewer__