5 #include <QStackedWidget> 12 #include "RubberBandTool.h" 16 #include "ViewportMainWindow.h" 61 result = m_toolList->rubberBandTool();
68 void Tool::setList(ToolList *currentList) {
69 m_toolList = currentList;
114 QStackedWidget *activeToolBarStack = m_toolList->toolBarStack(toolbar);
133 emit clearWarningSignal();
149 emit toolActivated();
179 emit viewportChanged();
191 connect(
m_cvp, SIGNAL(scaleChanged()),
192 this, SLOT(scaleChanged()));
194 if (rubberBandTool()) {
195 connect(rubberBandTool(), SIGNAL(measureChange()),
196 this, SLOT(updateMeasure()));
198 connect(rubberBandTool(), SIGNAL(bandingComplete()),
199 this, SLOT(rubberBandComplete()));
202 connect(
m_cvp, SIGNAL(mouseEnter()),
203 this, SLOT(mouseEnter()));
209 this, SLOT(
mouseMove(QPoint)), Qt::DirectConnection);
212 this, SLOT(
mouseMove(QPoint, Qt::MouseButton)), Qt::DirectConnection);
214 connect(
m_cvp, SIGNAL(mouseLeave()),
215 this, SLOT(mouseLeave()));
242 disconnect(
m_cvp, SIGNAL(scaleChanged()),
243 this, SLOT(scaleChanged()));
245 if (rubberBandTool()) {
246 disconnect(rubberBandTool(), SIGNAL(measureChange()),
247 this, SLOT(updateMeasure()));
249 disconnect(rubberBandTool(), SIGNAL(bandingComplete()),
250 this, SLOT(rubberBandComplete()));
253 disconnect(
m_cvp, SIGNAL(mouseEnter()),
254 this, SLOT(mouseEnter()));
263 this, SLOT(
mouseMove(QPoint, Qt::MouseButton)));
265 disconnect(
m_cvp, SIGNAL(mouseLeave()),
266 this, SLOT(mouseLeave()));
308 if (m_toolList && m_toolList->toolBarStack()) {
359 emit clearWarningSignal();
368 emit clearWarningSignal();
381 emit clearWarningSignal();
Cube display widget for certain Isis MDI applications.
QToolBar * activeToolBar()
Returns the active toolbar.
void registerTool(Tool *tool)
Registers the tool given tool.
File name manipulation and expansion.
QVector< MdiCubeViewport *> * cubeViewportList()
This method returns a Vector of MdiCubeViewports.
QToolBar * permanentToolBar()
Returns the permanent toolbar.
This was called the Qisis MainWindow.
QMenu * getMenu(const QString &name)
Returns the menu with menu name = name.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
ToolPad * toolPad()
Returns the toolpad.
Workspace * workspace()
Returns the current workspace.
Namespace for ISIS/Bullet specific routines.