00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #if !defined(_PRINTER_H)
00013 #define _PRINTER_H
00014
00015
00016 #include <wx/wx.h>
00017 #include <wx/aboutdlg.h>
00018
00019 #include "libControl3Dp/space.h"
00020
00021
00022 class Printer_t: public wxFrame {
00023 public:
00024 Printer_t(const wxString& title);
00025
00026 private:
00027 void onQuit(wxCommandEvent& event);
00028 void onNew(wxCommandEvent& event);
00029 void onSave(wxCommandEvent& event);
00030 void onLoad(wxCommandEvent& event);
00031 void onSPSettings(wxCommandEvent& event);
00032
00033 void createMenubar(void);
00034 void createToolbar(void);
00035 void createStatusbar(void);
00036 void save(const std::string &fileName);
00037 void load(const std::string &fileName);
00038
00039 void onXslide(wxScrollEvent& event);
00040 void onYslide(wxScrollEvent& event);
00041 void onZslide(wxScrollEvent& event);
00042
00043 void ShowAboutDialog(wxCommandEvent& event);
00044 void InitAboutDialog(wxAboutDialogInfo& info);
00045
00046 private:
00047 Space_t<3> space;
00048
00049
00050 wxToolBar *toolbar;
00051
00052 static const wxChar *configFileTypes;
00053
00054 };
00055
00056 #endif //_PRINTER_H