1 #ifndef SIMSHELL_PTREEQTSTATE_H_INCLUDED
2 #define SIMSHELL_PTREEQTSTATE_H_INCLUDED
23 #include <boost/property_tree/ptree.hpp>
24 #include <QMainWindow>
84 static const std::map<Qt::DockWidgetArea, std::string> g_dock_widget_area_to_string;
85 static const std::map<std::string, Qt::DockWidgetArea> g_string_to_dock_widget_area;
90 #endif // end-of-include-guard
static boost::property_tree::ptree GetWidgetState(const QWidget *)
Get ptree representation of typical widget properties (hidden/shown, size, position, ...)
Utility for representing state of various Qt widgets as a ptree.
static void SetDockWidgetState(QDockWidget *, const boost::property_tree::ptree &)
Set state of given dock widget as represented by given ptree.
static void SetWidgetState(QWidget *, const boost::property_tree::ptree &)
Set state of given widget as represented by given ptree.
static boost::property_tree::ptree GetTreeViewState(const QTreeView *)
Get ptree representation of expand/collapsed state of items in given QTreeView.
see the online Qt documentation
static boost::property_tree::ptree GetDockWidgetState(const QDockWidget *)
Get ptree representatoin of dock widget-specific properties.
see the online Qt documentation
static boost::property_tree::ptree GetDockWidgetArea(const QMainWindow *, QDockWidget *)
Get DockWidgetArea of dock widget in main window as a ptree.
see the online Qt documentation
see the online Qt documentation
Namespace for generic graphical shell for simulators.
static void SetTreeViewState(QTreeView *, const boost::property_tree::ptree &)
Set expand/collapsed state of items in given QTreeView as represented by given ptree.