1 #ifndef PTREE_MENU_H_INCLUDED
2 #define PTREE_MENU_H_INCLUDED
24 #include <boost/property_tree/ptree.hpp>
47 PTreeMenu(QString
const& title, QString
const& path_prefix = QString(),
QWidget* parent = 0);
61 bool OpenPTree(boost::property_tree::ptree
const& pt,
int depth = -1);
64 void ItemTriggered(QString
const& subtree = QString());
81 void OpenPTreeInternal(boost::property_tree::ptree
const& pt,
int remaining_depth);
85 QAction* m_action_all;
87 QSignalMapper* m_signal_mapper;
94 #endif // end_of_inclde_guard
virtual bool InternalSave()
virtual ~PTreeMenu()
Destructor does not do a thing, except be virtual.
virtual bool IsOpened() const
Test whether menu is in opened state.
see the online Qt documentation
virtual bool InternalIsClean() const
virtual void InternalForceClose()
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
bool OpenPTree(boost::property_tree::ptree const &pt, int depth=-1)
Open a ptree.
PTreeMenu(QString const &title, QString const &path_prefix=QString(), QWidget *parent=0)
Namespace for generic graphical shell for simulators.