1 #ifndef WORKSPACE_VIEW_H_INCLUDED
2 #define WORKSPACE_VIEW_H_INCLUDED
26 #include <QItemSelectionModel>
31 class WorkspaceQtModel;
89 void SLOT_ProjectWidgetAction();
96 void SLOT_RenameDialog();
110 void SLOT_SelectionChanged(QItemSelection
const & selected, QItemSelection
const & deselected);
116 void ProjectRenamed(
const std::string& old_name,
const std::string& new_name);
141 QAction* action_open;
142 QAction* action_rename;
143 QAction* action_remove;
144 QAction* action_close;
146 std::shared_ptr<QWidget> project_widget;
147 std::string project_widget_project_name;
148 struct CallbackMapEntry {
149 Ws::IProject::WidgetCallback::Type callback;
150 std::string project_name;
152 std::map<QObject*, CallbackMapEntry> object_to_callback_map;
158 #endif // end_of_inclde_guard
virtual void mouseDoubleClickEvent(QMouseEvent *)
Reimplemented from QTreeView.
QAction * GetOpenAction() const
Get 'open' action object.
see the online Qt documentation
QAction * GetRemoveAction() const
Get 'remove' action object.
Interface for MyTreeView.
void ProjectRemoved(const std::string &project)
Emitted when user selected "delete" option on a project.
QTreeView with methods to import/export widget layout (x,y,width, ...) in ptree format.
virtual void contextMenuEvent(QContextMenuEvent *)
Reimplemented from QWidget.
QAction * GetRenameAction() const
Get 'rename' action object.
see the online Qt documentation
TreeView widget that uses WorkspaceQtModel as a model.
virtual void setModel(QAbstractItemModel *)
Set the model.
Namespace for generic graphical shell for simulators.
void ProjectRenamed(const std::string &old_name, const std::string &new_name)
Emitted when user renamed a project.
Abstraction of workspace on the filesystem.