export_CanvasWindow.cxx

Go to the documentation of this file.
00001 
00012 #ifdef _MSC_VER
00013 # pragma warning(disable:4231)  // nonstandard extension used 'extern' before...
00014 # pragma warning(disable:4251)  // needs to have dll-interface used by client
00015 # pragma warning(disable:4275)  // non dll-interface struct
00016 # pragma warning(disable:4800)  // 'int' : forcing value to bool 'true' or 'false' (performance warning)
00017 #endif
00018 
00019 // with Python 2.3, include before Qt headers to avoid conflict
00020 // with symbol `slots'
00021 #include <boost/python.hpp>
00022 
00023 #include "qt/CanvasWindow.h"
00024 
00025 using namespace boost::python;
00026 
00027 namespace hippodraw {
00028 namespace Python {
00029 
00030 void
00031 export_CanvasWindow()
00032 {
00033   class_ < CanvasWindow >
00034     ( "CanvasWindow",
00035       "The CanvasWindow class contains the Canvas and some controls via\n"
00036       "menu items and dialogs.",
00037       no_init )
00038 
00039     .def ( "show", &CanvasWindow::show,
00040            "show ( None ) -> None\n"
00041            "\n"
00042            "Brings the canvas window onto the screen." )
00043 
00044     .def ( "fileNew", &CanvasWindow::fileNew,
00045            "fileNew ( None ) -> None\n"
00046            "\n"
00047            "Creates a new CanvasWindow." )
00048     ;
00049 }
00050 
00051 } // namespace Python
00052 } // namespace hippodraw

Generated for HippoDraw Class Library by doxygen