test_gui.h
Go to the documentation of this file.
00001 
00063 #ifndef COB_3D_MAPPING_TOOLS_TEST_GUI_H_
00064 #define COB_3D_MAPPING_TOOLS_TEST_GUI_H_
00065 
00066 #include <wx/wx.h>
00067 #include <wx/minifram.h>
00068 #include "cob_3d_mapping_tools/gui/impl/core.hpp"
00069 
00070 class FrameMain;
00071 class FrameTools;
00072 class ImagePanel;
00073 
00074 class MainApp: public wxApp
00075 {
00076   virtual bool OnInit();
00077 
00078 public:
00079   Gui::Core* gui;
00080   FrameMain* f_main;
00081   FrameTools* f_tools;
00082   ImagePanel* pane_;
00083 };
00084 
00085 class FrameMain : public wxFrame
00086 {
00087 public:
00088   FrameMain(const wxString& title, const wxPoint& pos, const wxSize& size, MainApp* app);
00089 
00090   MainApp* app_;
00091   //wxTextCtrl* stat_log;
00092 };
00093 
00094 class ImagePanel : public wxPanel
00095 {
00096 public:
00097   ImagePanel(wxFrame* parent);
00098 
00099   void paintEvent(wxPaintEvent& event);
00100   void render(wxDC& dc);
00101 
00102 
00103   wxString new_file_;
00104   wxImage img_;
00105   wxBitmap bmp_;
00106 
00107   DECLARE_EVENT_TABLE()
00108 };
00109 
00110 class FrameTools : public wxMiniFrame
00111 {
00112 public:
00113   FrameTools(const wxString& title, const wxPoint& pos, const wxSize& size, MainApp* app);
00114   void OnToolOpen(wxCommandEvent& event);
00115 
00116   MainApp* app_;
00117   wxButton* bt_tool_open;
00118   wxButton* bt_tool_1;
00119 
00120   DECLARE_EVENT_TABLE()
00121 };
00122 
00123 enum
00124 {
00125   BT_TOOL_Open = wxID_HIGHEST + 1,
00126   BT_TOOL_1,
00127 };
00128 
00129 #endif


cob_3d_mapping_tools
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:04:27