Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scripter2_scribus_scribusqapp.cpp
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #include "cmdvar.h"
00008 
00009 
00010 
00011 #include "scribusapp.h"
00012 
00013 extern ScribusQApp* ScQApp;
00014 
00015 void export_ScribusQApp()
00016 {
00017        using namespace boost::python;
00018 
00019        class_<ScribusQApp, bases<QApplication>, boost::noncopyable>("ScribusQApp",
00020                      "The core application",
00021                      no_init)
00022               .add_property("usingGUI", &ScribusQApp::usingGUI)
00023               .add_property("isMacGUI", &ScribusQApp::isMacGUI)
00024               .add_property("reverseDialogButtons", &ScribusQApp::reverseDialogButtons);
00025 
00026        scope().attr("ScQApp") = boost::ref(ScQApp);
00027 }
00028 
00029