diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-19 21:13:33 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-05-19 21:13:33 +0400 |
commit | 40ae17d2f6e2d5dbbe89321491572035c304872c (patch) | |
tree | 7f39fe42977a45878352e34d7bfdc1820ed980ff /source/blender/python | |
parent | 861398542f8ba71dd4783886adda21544d939763 (diff) |
UI
* Fix buttons jumping around when resizing and zoom. Part of this was
adding a tiny a 0.001f offset in UI_view2d_view_ortho, otherwise the
rounding is unpredictable (used to be 0.375f, but that was disabled).
* Fix various issues with zooming, panning panels. V2D_LOCKOFS_X/Y is
now taken into account in more places in the view2d code, to avoid
zooming into the center or panning out of the view.
* Remove "Free" align mode in buttons window (it's not really useful).
* View3D/Graph/Image editors now use the same PanelType system as the
buttons window, means some deprecated panel code could be removed.
* Some small visual tweaks for panels.
* View 2D Reset operator (Home key), to reset zoom and panning for panels.
* Added argument to set number buttons as sliders (slider=True for itemR).
* Ignore labels for button alignment (doesn't look right).
* Fix some use of context.main in py scripts, should get data from active
object instead.
* Fix autotexspace -> auto_texspace in py script.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_ui.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/source/blender/python/intern/bpy_ui.c b/source/blender/python/intern/bpy_ui.c index 471263d9d63..0f2142f4b62 100644 --- a/source/blender/python/intern/bpy_ui.c +++ b/source/blender/python/intern/bpy_ui.c @@ -179,32 +179,6 @@ static PyObject *Method_drawBlock( PyObject * self, PyObject * args ) Py_RETURN_NONE; } -static PyObject *Method_beginPanels( PyObject * self, PyObject * args ) -{ - bContext *C; - PyObject *py_context; - - if( !PyArg_ParseTuple( args, "O!i:beginPanels", &PyCObject_Type, &py_context) ) - return NULL; - - C= PyCObject_AsVoidPtr(py_context); - uiBeginPanels(C, CTX_wm_region(C)); - Py_RETURN_NONE; -} - -static PyObject *Method_endPanels( PyObject * self, PyObject * args ) -{ - bContext *C; - PyObject *py_context; - - if( !PyArg_ParseTuple( args, "O!:endPanels", &PyCObject_Type, &py_context) ) - return NULL; - - C= PyCObject_AsVoidPtr(py_context); - uiEndPanels(C, CTX_wm_region(C)); - Py_RETURN_NONE; -} - static PyObject *Method_popupBoundsBlock( PyObject * self, PyObject * args ) { PyObject *py_block; @@ -251,18 +225,6 @@ static PyObject *Method_blockSetFlag( PyObject * self, PyObject * args ) Py_RETURN_NONE; } -static PyObject *Method_newPanel( PyObject * self, PyObject * args ) -{ - PyObject *py_context, *py_area, *py_block; - char *panelname, *tabname; - int ofsx, ofsy, sizex, sizey; - - if( !PyArg_ParseTuple( args, "O!O!O!ssiiii:newPanel", &PyCObject_Type, &py_context, &PyCObject_Type, &py_area, &PyCObject_Type, &py_block, &panelname, &tabname, &ofsx, &ofsy, &sizex, &sizey)) - return NULL; - - return PyLong_FromSsize_t(uiNewPanel(PyCObject_AsVoidPtr(py_context), PyCObject_AsVoidPtr(py_area), PyCObject_AsVoidPtr(py_block), panelname, tabname, ofsx, ofsy, sizex, sizey)); -} - /* similar to Draw.c */ static PyObject *Method_register( PyObject * self, PyObject * args ) { @@ -402,9 +364,6 @@ static struct PyMethodDef ui_methods[] = { {"blockBeginAlign", (PyCFunction)Method_blockBeginAlign, METH_VARARGS, ""}, {"blockEndAlign", (PyCFunction)Method_blockEndAlign, METH_VARARGS, ""}, {"blockSetFlag", (PyCFunction)Method_blockSetFlag, METH_VARARGS, ""}, - {"newPanel", (PyCFunction)Method_newPanel, METH_VARARGS, ""}, - {"beginPanels", (PyCFunction)Method_beginPanels, METH_VARARGS, ""}, - {"endPanels", (PyCFunction)Method_endPanels, METH_VARARGS, ""}, {"register", (PyCFunction)Method_register, METH_VARARGS, ""}, // XXX not sure about this - registers current script with the ScriptSpace, like Draw.Register() {"registerKey", (PyCFunction)Method_registerKey, METH_VARARGS, ""}, // XXX could have this in another place too |