VPTissue Reference Manual
SimShell::PTreeQtState Class Reference

Utility for representing state of various Qt widgets as a ptree. More...

#include <PTreeQtState.h>

Collaboration diagram for SimShell::PTreeQtState:
Collaboration graph

Static Public Member Functions

static boost::property_tree::ptree GetDockWidgetArea (const QMainWindow *, QDockWidget *)
 Get DockWidgetArea of dock widget in main window as a ptree.
 
static boost::property_tree::ptree GetDockWidgetState (const QDockWidget *)
 Get ptree representatoin of dock widget-specific properties.
 
static boost::property_tree::ptree GetTreeViewState (const QTreeView *)
 Get ptree representation of expand/collapsed state of items in given QTreeView.
 
static boost::property_tree::ptree GetWidgetState (const QWidget *)
 Get ptree representation of typical widget properties (hidden/shown, size, position, ...)
 
static void SetDockWidgetArea (QMainWindow *, QDockWidget *, const boost::property_tree::ptree &)
 
static void SetDockWidgetState (QDockWidget *, const boost::property_tree::ptree &)
 Set state of given dock widget as represented by given ptree.
 
static void SetTreeViewState (QTreeView *, const boost::property_tree::ptree &)
 Set expand/collapsed state of items in given QTreeView as represented by given ptree.
 
static void SetWidgetState (QWidget *, const boost::property_tree::ptree &)
 Set state of given widget as represented by given ptree.
 

Detailed Description

Utility for representing state of various Qt widgets as a ptree.

I'm not going into detail of what such a ptree looks like, you shouldn't construct one yourself. Just call GetState() and use the result for SetState() at another point in time.

See also
IHasPTreeState

Definition at line 40 of file PTreeQtState.h.


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