1 #ifndef SIMPT_EDITOR_SIMPT_TISSUE_EDITOR_H_INCLUDED
2 #define SIMPT_EDITOR_SIMPT_TISSUE_EDITOR_H_INCLUDED
24 #include <boost/property_tree/ptree.hpp>
28 #include <QMainWindow>
33 class EditControlLogic;
36 class TissueGraphicsView;
56 bool OpenPath(
const std::string& path);
67 virtual void closeEvent(QCloseEvent* event);
73 void GenerateRegularPattern();
76 void GenerateVoronoiPattern();
108 void SetModifiedWithoutUndo();
114 void SetStatusBar(
const std::string& info);
121 void CreateActions();
131 virtual void InternalForceClose();
134 virtual bool InternalIsClean()
const;
137 virtual bool InternalSave();
140 std::shared_ptr<EditControlLogic> m_tissue;
141 boost::property_tree::ptree m_ptree;
145 std::string m_current_path;
147 QLabel* m_status_info;
153 #endif // end_of_include_guard
void dragEnterEvent(QDragEnterEvent *e)
Receive a message when something is dragged over the window.
Namespace for SimPT tissue editor package.
The graphical view on the tissue.
HasUnsavedChanges with the ability of displaying a "save-discard-cancel" dialog to the user before cl...
virtual ~TissueEditor()
Destructor.
virtual bool IsOpened() const
True if tissue has been opened, false otherwise.
Main GUI class for cell editor.
bool OpenPath(const std::string &path)
True iff file has been successfully opened (if another file is open, it is closed first)...
Undo Stack for actions performed on a tissue.
Manages the attribute and geometric ptree panel for a given tissue.
TissueEditor(QWidget *parent=nullptr)
Constructor with the parent of the window.
see the online Qt documentation
see the online Qt documentation
The actions in the menu bar of the workspace.
void dropEvent(QDropEvent *e)
Recive a message when a file is dropped on the window.
HasUnsavedChangesPrompt interface.