Some updates to go with changes in current CVS.
Added wxSplashScreen. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,15 +120,13 @@ static void *SwigwxXmlResourceTowxObject(void *ptr) {
|
||||
static PyObject *_wrap_new_wxXmlResourceEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
wxXmlResource * _result;
|
||||
bool _arg0 = (bool ) TRUE;
|
||||
int tempbool0 = (int) TRUE;
|
||||
char *_kwnames[] = { "use_locale", NULL };
|
||||
int _arg0 = (int ) (wxXRC_USE_LOCALE);
|
||||
char *_kwnames[] = { "flags", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxXmlResourceEmpty",_kwnames,&tempbool0))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxXmlResourceEmpty",_kwnames,&_arg0))
|
||||
return NULL;
|
||||
_arg0 = (bool ) tempbool0;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (wxXmlResource *)new_wxXmlResourceEmpty(_arg0);
|
||||
@@ -145,8 +143,8 @@ static PyObject *_wrap_new_wxXmlResourceEmpty(PyObject *self, PyObject *args, Py
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
static wxXmlResource *new_wxXmlResource(const wxString *filemask,bool use_locale) {
|
||||
wxXmlResource* res = new wxXmlResource(*filemask, use_locale);
|
||||
static wxXmlResource *new_wxXmlResource(const wxString *filemask,int flags) {
|
||||
wxXmlResource* res = new wxXmlResource(*filemask, flags);
|
||||
res->InitAllHandlers();
|
||||
return res;
|
||||
}
|
||||
@@ -155,14 +153,13 @@ static PyObject *_wrap_new_wxXmlResource(PyObject *self, PyObject *args, PyObjec
|
||||
PyObject * _resultobj;
|
||||
wxXmlResource * _result;
|
||||
wxString * _arg0;
|
||||
bool _arg1 = (bool ) TRUE;
|
||||
int _arg1 = (int ) (wxXRC_USE_LOCALE);
|
||||
PyObject * _obj0 = 0;
|
||||
int tempbool1 = (int) TRUE;
|
||||
char *_kwnames[] = { "filemask","use_locale", NULL };
|
||||
char *_kwnames[] = { "filemask","flags", NULL };
|
||||
char _ptemp[128];
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxXmlResource",_kwnames,&_obj0,&tempbool1))
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxXmlResource",_kwnames,&_obj0,&_arg1))
|
||||
return NULL;
|
||||
{
|
||||
#if PYTHON_API_VERSION >= 1009
|
||||
@@ -182,7 +179,6 @@ static PyObject *_wrap_new_wxXmlResource(PyObject *self, PyObject *args, PyObjec
|
||||
_arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
|
||||
#endif
|
||||
}
|
||||
_arg1 = (bool ) tempbool1;
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (wxXmlResource *)new_wxXmlResource(_arg0,_arg1);
|
||||
@@ -1287,6 +1283,8 @@ SWIGEXPORT(void) initxrcc() {
|
||||
SWIG_globals = SWIG_newvarlink();
|
||||
m = Py_InitModule("xrcc", xrccMethods);
|
||||
d = PyModule_GetDict(m);
|
||||
PyDict_SetItemString(d,"wxXRC_USE_LOCALE", PyInt_FromLong((long) wxXRC_USE_LOCALE));
|
||||
PyDict_SetItemString(d,"wxXRC_NO_SUBCLASSING", PyInt_FromLong((long) wxXRC_NO_SUBCLASSING));
|
||||
PyDict_SetItemString(d,"cvar", SWIG_globals);
|
||||
SWIG_addvarlink(SWIG_globals,"wxTheXmlResource",_wrap_wxTheXmlResource_get, _wrap_wxTheXmlResource_set);
|
||||
|
||||
|
@@ -32,6 +32,13 @@
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
enum wxXmlResourceFlags
|
||||
{
|
||||
wxXRC_USE_LOCALE = 1,
|
||||
wxXRC_NO_SUBCLASSING = 2
|
||||
};
|
||||
|
||||
|
||||
// This class holds XML resources from one or more .xml files
|
||||
// (or derived forms, either binary or zipped -- see manual for
|
||||
// details).
|
||||
@@ -39,14 +46,17 @@
|
||||
class wxXmlResource : public wxObject
|
||||
{
|
||||
public:
|
||||
// Ctor. If use_locale is TRUE, translatable strings are
|
||||
// translated via _(). You can disable it by passing use_locale=FALSE
|
||||
// (for example if you provide resource file for each locale)
|
||||
%name(wxXmlResourceEmpty)wxXmlResource(bool use_locale = TRUE); // TODO, a better %name
|
||||
// Ctor.
|
||||
// Flags: wxXRC_USE_LOCALE
|
||||
// translatable strings will be translated via _()
|
||||
// wxXRC_NO_SUBCLASSING
|
||||
// subclass property of object nodes will be ignored
|
||||
// (useful for previews in XRC editors)
|
||||
%name(wxXmlResourceEmpty)wxXmlResource(int flags = wxXRC_USE_LOCALE); // TODO, a better %name
|
||||
|
||||
%addmethods {
|
||||
wxXmlResource(const wxString* filemask, bool use_locale = TRUE) {
|
||||
wxXmlResource* res = new wxXmlResource(*filemask, use_locale);
|
||||
wxXmlResource(const wxString* filemask, int flags = wxXRC_USE_LOCALE) {
|
||||
wxXmlResource* res = new wxXmlResource(*filemask, flags);
|
||||
res->InitAllHandlers();
|
||||
return res;
|
||||
}
|
||||
|
@@ -135,5 +135,7 @@ wxXmlResource_GetXMLID = xrcc.wxXmlResource_GetXMLID
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
||||
wxXRC_USE_LOCALE = xrcc.wxXRC_USE_LOCALE
|
||||
wxXRC_NO_SUBCLASSING = xrcc.wxXRC_NO_SUBCLASSING
|
||||
cvar = xrcc.cvar
|
||||
wxTheXmlResource = wxXmlResourcePtr(xrcc.cvar.wxTheXmlResource)
|
||||
|
Reference in New Issue
Block a user