5#include <QStackedWidget>
8#include "CubeViewport.h"
9#include "MdiCubeViewport.h"
12#include "RubberBandTool.h"
16#include "ViewportMainWindow.h"
35 QString tempFileName =
FileName(
"$ISISROOT/appdata/images/icons").
expanded();
61 result = m_toolList->rubberBandTool();
68 void Tool::setList(ToolList *currentList) {
69 m_toolList = currentList;
79 addTo(pViewPortMnWin->workspace());
82 addTo(pViewPortMnWin->toolPad());
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();
File name manipulation and expansion.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Cube display widget for certain Isis MDI applications.
void registerTool(Tool *tool)
Registers the tool given tool.
This was called the Qisis MainWindow.
QVector< MdiCubeViewport * > * cubeViewportList()
This method returns a Vector of MdiCubeViewports.
This is free and unencumbered software released into the public domain.