1 #include "WindowTool.h"
11 #include "MainWindow.h"
34 QString text =
"<b>Function: </b> Resize all linked viewports to the same \
35 size as the active viewport.";
59 icon.addPixmap(
toolIconDir() +
"/linked.png", QIcon::Normal, QIcon::On);
60 icon.addPixmap(
toolIconDir() +
"/unlinked.png", QIcon::Normal, QIcon::Off);
66 "<b>Function:</b> Used to link viewports. Some tools apply their \
67 functions to all linked viewports. For example, when the zoom tool \
68 is used on a linked viewport then all other linked viewports will zoom \
70 <p><b>Shortcut:</b> Ctrl+L</p> \
71 <p><b>Hint:</b> The icons <img src=\"" +
72 toolIconDir() +
"/linked.png\" width=22 height=22> and <img src=\"" +
73 toolIconDir() +
"/unlinked.png\" width=22 height=22> at the left edge \
74 of each viewport titlebar indicate the current link state</p> \
75 <p><b>Tools using Link:</b> Zoom, Pan, Blink, and Advanced Tracking </p>";
85 together. <p><b>Shortcut: </b> Ctrl+Shift+L");
94 <p><b>Shortcut: </b> Ctrl+Shift+U");
101 p_changeCursor->setWhatsThis(
"<b>Function: </b> Toggles the cursor shape between \
102 and arrow and crosshair cursor when cursor is over the \
119 connect(
p_cascadeWindows, SIGNAL(triggered()), ws->mdiArea(), SLOT(cascadeSubWindows()));
120 connect(
p_tileWindows, SIGNAL(triggered()), ws->mdiArea(), SLOT(tileSubWindows()));
121 connect(
p_prevWindow, SIGNAL(triggered()), ws->mdiArea(), SLOT(activatePreviousSubWindow()));
122 connect(
p_nextWindow, SIGNAL(triggered()), ws->mdiArea(), SLOT(activateNextSubWindow()));
123 connect(
p_closeWindow, SIGNAL(triggered()), ws->mdiArea(), SLOT(closeActiveSubWindow()));
124 connect(
p_closeAllWindows, SIGNAL(triggered()), ws->mdiArea(), SLOT(closeAllSubWindows()));
153 menu->addSeparator();
156 menu->addSeparator();
162 menu->addSeparator();
179 connect(cvp, SIGNAL(linkChanging(
bool)),
p_linkWindow, SLOT(setChecked(
bool)));
192 disconnect(cvp, SIGNAL(linkChanging(
bool)),
p_linkWindow, SLOT(setChecked(
bool)));
246 cvp->viewport()->cursor().shape() != Qt::ArrowCursor) {
247 cvp->viewport()->setCursor(Qt::ArrowCursor);
250 cvp->viewport()->cursor().shape() != Qt::CrossCursor) {
251 cvp->viewport()->setCursor(Qt::CrossCursor);
267 if(d->
isLinked()) d->parentWidget()->parentWidget()->resize(size);
Cube display widget for certain Isis MDI applications.
Widget to display Isis cubes for qt apps.
void setLinked(bool b)
Change the linked state of the viewport.
bool isLinked() const
Is the viewport linked with other viewports.