[wpdev-commits] wolfpack/python global.cpp,1.95,1.96
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-10-08 01:38:05
|
Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1:/tmp/cvs-serv22805/python
Modified Files:
global.cpp
Log Message:
Misc. Updates to the GUI
Index: global.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/global.cpp,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -d -r1.95 -r1.96
*** global.cpp 24 Sep 2003 00:13:21 -0000 1.95
--- global.cpp 8 Oct 2003 01:37:59 -0000 1.96
***************
*** 239,252 ****
}
- static PyObject* wpConsole_reloadScripts( PyObject* self, PyObject* args )
- {
- Q_UNUSED(self);
- Q_UNUSED(args);
-
- reloadScripts();
-
- return PyInt_FromLong( 1 );
- }
-
/*!
wolfpack.console
--- 239,242 ----
***************
*** 261,265 ****
{ "progressSkip", wpConsole_progressSkip, METH_NOARGS, "Prints a [skip] block" },
{ "getbuffer", wpConsole_getbuffer, METH_NOARGS, "Gets the linebuffer of the console" },
- { "reloadScripts", wpConsole_reloadScripts, METH_NOARGS, "Reloads Scripts and Definitions" },
{ "log", wpConsole_log, METH_VARARGS, NULL },
{ NULL, NULL, 0, NULL } // Terminator
--- 251,254 ----
***************
*** 1085,1088 ****
--- 1074,1091 ----
}
+ static PyObject* wpQueueReload( PyObject* self, PyObject* args )
+ {
+ Q_UNUSED(self);
+
+ unsigned int type = 0;
+
+ if( !PyArg_ParseTuple( args, "i:wolfpack.queuereload( type )", &type ) )
+ return 0;
+
+ queueReload( (eReloadType)type );
+
+ return PyInt_FromLong( 1 );
+ }
+
/*!
wolfpack
***************
*** 1132,1135 ****
--- 1135,1139 ----
{ "tickcount", wpTickcount, METH_NOARGS, "Returns the current Tickcount on Windows" },
{ "charbase", wpCharBase, METH_VARARGS, NULL },
+ { "queuereload", wpQueueReload, METH_VARARGS, NULL },
{ NULL, NULL, 0, NULL } // Terminator
};
|