1 #ifndef MAIN_PTREE_EDITOR_H_INCLUDED
2 #define MAIN_PTREE_EDITOR_H_INCLUDED
24 #include <boost/property_tree/ptree.hpp>
25 #include <QMainWindow>
64 bool OpenPath(std::string
const & path);
72 bool SavePath(std::string
const & path);
75 virtual bool IsOpened()
const;
89 void SLOT_PromptClose();
99 void SLOT_OpenDialog();
105 bool SLOT_SaveAsDialog();
110 void SLOT_SetFullscreenMode(
bool);
115 void SLOT_AboutDialog();
120 void SLOT_SetClean(
bool);
129 virtual void closeEvent(QCloseEvent *event);
132 virtual void InternalForceClose();
135 virtual bool InternalIsClean()
const;
138 virtual bool InternalSave();
142 QAction* action_open;
143 QAction* action_save;
144 QAction* action_save_as;
145 QAction* action_close;
146 QAction* action_quit;
147 QAction* action_view_toolbar;
148 QAction* action_view_statusbar;
149 QAction* action_fullscreen;
150 QAction* action_about;
153 QStatusBar* statusbar;
155 std::string opened_path;
159 boost::property_tree::ptree root_pt;
160 std::string subtree_key;
162 static const QString g_caption;
163 static const QString g_caption_with_file;
169 #endif // end_of_inclde_guard
HasUnsavedChanges with the ability of displaying a "save-discard-cancel" dialog to the user before cl...
Namespace for SimPT shell package.
Namespace for graphical interface classes.
Qt model reflecting hierarchical structure of a ptree.
see the online Qt documentation
TreeView widget that presents an editable ptree to the user.
see the online Qt documentation
see the online Qt documentation
Namespace for generic graphical shell for simulators.
Stand-alone Property Tree editor.
HasUnsavedChangesPrompt interface.