FX::FXPython_CtxHold Class Reference
[Python Support]

#include <FXPython.h>

Inheritance diagram for FX::FXPython_CtxHold:

Inheritance graph
[legend]

List of all members.


Detailed Description

Wraps context sets in an exception-proof fashion.

This little helper class works similarly to FX::QMtxHold in setting a context on construction and unsetting it on destruction. You can use undo() and redo() if needed.

Public Member Functions

 FXPython_CtxHold (FXPythonInterp *i=FXPythonInterp::current())
void undo ()
void redo ()


Constructor & Destructor Documentation

FX::FXPython_CtxHold::FXPython_CtxHold ( FXPythonInterp i = FXPythonInterp::current()  )  [inline]

Constructs an instance setting context to interpreter interp, defaulting to the current context.


Member Function Documentation

template<class obj = NullType, typename doaddr = NullType, typename undoaddr = NullType>
void FX::Generic::DoUndo< obj, doaddr, undoaddr >::undo (  )  [inline, inherited]

Undoes the action.

template<class obj = NullType, typename doaddr = NullType, typename undoaddr = NullType>
void FX::Generic::DoUndo< obj, doaddr, undoaddr >::redo (  )  [inline, inherited]

Redoes the action.


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 21:56:41 2008 for TnFOX by doxygen v1.5.6