#include <toolbox_model.h>
Public Slots | |
void | activeProjectChanged (ProjectModel *new_model, ProjectModel *previous_model) |
void | modelChanged () |
This slot is called whenever the current project model emits layoutChanged, and calls updateEnabledTools. | |
void | selectedItemChanged (const QItemSelection &selected, const QItemSelection &deselected) |
This slot is called when the selection in cloud browser changes. Updates enabling of tools. | |
void | selectedToolChanged (const QModelIndex ¤t, const QModelIndex &previous) |
void | toolAction () |
Signals | |
void | enqueueToolAction (AbstractTool *tool) |
Public Member Functions | |
void | addTool (ToolFactory *tool_factory) |
void | enableAllTools () |
void | setSelectionModel (QItemSelectionModel *selection_model) |
ToolBoxModel (QTreeView *tool_view=0, QTreeView *parameter_view=0, QObject *parent=0) | |
ToolBoxModel (const ToolBoxModel &to_copy) | |
void | updateEnabledTools (const QItemSelection current_selection) |
Enables/Disables Tools based on currently selected items from model. | |
virtual | ~ToolBoxModel () |
Private Member Functions | |
QStandardItem * | addToolGroup (QString tool_group_name) |
Private Attributes | |
QTreeView * | parameter_view_ |
ProjectModel * | project_model_ |
QItemSelectionModel * | selection_model_ |
QSet< QStandardItem * > | tool_items |
QTreeView * | tool_view_ |
Definition at line 62 of file toolbox_model.h.
pcl::cloud_composer::ToolBoxModel::ToolBoxModel | ( | QTreeView * | tool_view = 0 , |
QTreeView * | parameter_view = 0 , |
||
QObject * | parent = 0 |
||
) |
Definition at line 8 of file toolbox_model.cpp.
pcl::cloud_composer::ToolBoxModel::ToolBoxModel | ( | const ToolBoxModel & | to_copy | ) |
Definition at line 17 of file toolbox_model.cpp.
pcl::cloud_composer::ToolBoxModel::~ToolBoxModel | ( | ) | [virtual] |
Definition at line 22 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::activeProjectChanged | ( | ProjectModel * | new_model, |
ProjectModel * | previous_model | ||
) | [slot] |
Definition at line 76 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::addTool | ( | ToolFactory * | tool_factory | ) |
Definition at line 27 of file toolbox_model.cpp.
QStandardItem * pcl::cloud_composer::ToolBoxModel::addToolGroup | ( | QString | tool_group_name | ) | [private] |
Definition at line 54 of file toolbox_model.cpp.
Definition at line 141 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::enqueueToolAction | ( | AbstractTool * | tool | ) | [signal] |
void pcl::cloud_composer::ToolBoxModel::modelChanged | ( | ) | [slot] |
This slot is called whenever the current project model emits layoutChanged, and calls updateEnabledTools.
Definition at line 150 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::selectedItemChanged | ( | const QItemSelection & | selected, |
const QItemSelection & | deselected | ||
) | [slot] |
This slot is called when the selection in cloud browser changes. Updates enabling of tools.
Definition at line 135 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::selectedToolChanged | ( | const QModelIndex & | current, |
const QModelIndex & | previous | ||
) | [slot] |
Definition at line 103 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::setSelectionModel | ( | QItemSelectionModel * | selection_model | ) |
Definition at line 48 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::toolAction | ( | ) | [slot] |
Definition at line 118 of file toolbox_model.cpp.
void pcl::cloud_composer::ToolBoxModel::updateEnabledTools | ( | const QItemSelection | current_selection | ) |
Enables/Disables Tools based on currently selected items from model.
Definition at line 155 of file toolbox_model.cpp.
QTreeView* pcl::cloud_composer::ToolBoxModel::parameter_view_ [private] |
Definition at line 110 of file toolbox_model.h.
Definition at line 114 of file toolbox_model.h.
QItemSelectionModel* pcl::cloud_composer::ToolBoxModel::selection_model_ [private] |
Definition at line 111 of file toolbox_model.h.
QSet<QStandardItem*> pcl::cloud_composer::ToolBoxModel::tool_items [private] |
Definition at line 112 of file toolbox_model.h.
QTreeView* pcl::cloud_composer::ToolBoxModel::tool_view_ [private] |
Definition at line 109 of file toolbox_model.h.