1 #ifndef PTREE_CONTAINER_H_INCLUDED
2 #define PTREE_CONTAINER_H_INCLUDED
26 #include <boost/property_tree/ptree.hpp>
34 class PTreeEditorWindow;
56 bool Open(boost::property_tree::ptree
const & pt, QString
const & edit_path =
"");
91 virtual void SetPTreeState(
const boost::property_tree::ptree&);
94 void Applied(boost::property_tree::ptree
const &);
95 void StatusChanged(QString
const &);
108 void OpenPath(QString
const & path);
109 void RefreshMenu(boost::property_tree::ptree
const & pt);
122 #endif // end_of_inclde_guard
void SetOnlyEditData(bool)
If true, the user can't insert, move, delete or edit keys.
bool Open(boost::property_tree::ptree const &pt, QString const &edit_path="")
Open ptree with given edit path.
virtual void InternalForceClose()
QDockWidget with methods to import/export widget layout (x,y,width, ...) in ptree format...
Interface for objects that have non-critical state (metadata) information representable as a ptree...
see the online Qt documentation
QDockWidget * GetDock() const
Get the associated dock widget, containing the ptree editor.
PTreeMenu * GetMenu() const
Get the associated menu.
virtual bool InternalIsClean() const
Interface for HasUnsavedChanges.
Abstract class that represents the ability be in closed or opened state, and, if the latter...
A menu reflecting the structure of a ptree.
see the online Qt documentation
virtual boost::property_tree::ptree GetPTreeState() const
virtual bool IsOpened() const
virtual void SetPTreeState(const boost::property_tree::ptree &)
Namespace for generic graphical shell for simulators.
std::string GetEditPath() const
Get the current edit path.
virtual bool InternalSave()
Small editor widget for a Boost Property Tree object.
For a given ptree, constructs PTreeMenu, QDockWidget, PTreeEditorWindow.