Isis 3 Programmer Reference
BlinkTool.h
1
#ifndef BlinkTool_h
2
#define BlinkTool_h
3
4
// This is the only include allowed in this file!
5
#include "
Tool.h
"
6
7
class
QDoubleSpinBox;
8
class
QDialog
;
9
class
QToolButton;
10
class
QSplitter;
11
class
QMenu
;
12
class
QVBoxLayout;
13
class
QHBoxLayout;
14
class
QPushButton;
15
class
QAction
;
16
class
QListWidget;
17
class
QListWidgetItem;
18
19
namespace
Isis
{
26
class
BlinkTool
:
public
Tool
{
27
Q_OBJECT
28
29
public
:
30
BlinkTool
(
QWidget
*parent);
31
void
addTo
(
QMenu
*menu);
32
void
addToPermanent
(
QToolBar
*perm);
33
void
writeSettings
();
34
void
readSettings
();
35
42
QString
menuName
()
const
{
43
return
"&Options"
;
44
};
45
46
protected
:
47
void
updateTool
();
48
bool
eventFilter
(
QObject
*o, QEvent *e);
49
50
private
slots:
51
void
toggleLink
(QListWidgetItem *item);
52
void
reverse
();
53
void
stop
();
54
void
start
();
55
void
advance
();
56
void
timeout
();
57
void
updateWindow
();
58
59
private
:
60
QAction
*
p_action
;
61
QWidget
*
p_blinkWindow
;
62
QListWidget *
p_listWidget
;
63
QDoubleSpinBox *
p_timeBox
;
64
bool
p_timerOn
;
65
QDialog
*
p_dialog
;
66
QSplitter *p_splitter;
67
};
68
};
69
70
#endif
71
Isis::BlinkTool::addTo
void addTo(QMenu *menu)
Adds this action to the given menu.
Definition:
BlinkTool.cpp:157
Isis::BlinkTool::writeSettings
void writeSettings()
Writes the current settings of this window so the next time this tool is used, certain user prefs...
Definition:
BlinkTool.cpp:316
Isis::BlinkTool
Definition:
BlinkTool.h:26
Isis::BlinkTool::start
void start()
Starts the blinking.
Definition:
BlinkTool.cpp:262
Isis::BlinkTool::updateTool
void updateTool()
Updates the blink tool.
Definition:
BlinkTool.cpp:177
Isis::BlinkTool::addToPermanent
void addToPermanent(QToolBar *perm)
Adds this action to the permanent tool bar.
Definition:
BlinkTool.cpp:168
Isis::BlinkTool::timeout
void timeout()
The blink tool's timer.
Definition:
BlinkTool.cpp:294
Isis::BlinkTool::p_timerOn
bool p_timerOn
Is the timer on?
Definition:
BlinkTool.h:64
Isis::BlinkTool::p_dialog
QDialog * p_dialog
Dialog widget.
Definition:
BlinkTool.h:65
Isis::BlinkTool::p_action
QAction * p_action
The action associated with this tool.
Definition:
BlinkTool.h:60
Isis::BlinkTool::stop
void stop()
Stops the blinking.
Definition:
BlinkTool.cpp:253
Isis::BlinkTool::eventFilter
bool eventFilter(QObject *o, QEvent *e)
Catches the events happening so we can make this tool do what we want.
Definition:
BlinkTool.cpp:357
Isis::BlinkTool::menuName
QString menuName() const
Returns the menu name.
Definition:
BlinkTool.h:42
Tool.h
Isis::BlinkTool::p_blinkWindow
QWidget * p_blinkWindow
The blink tool widget.
Definition:
BlinkTool.h:61
QMenu
Isis::BlinkTool::p_listWidget
QListWidget * p_listWidget
The list widget with the blink tool.
Definition:
BlinkTool.h:62
Isis::BlinkTool::p_timeBox
QDoubleSpinBox * p_timeBox
Time selection box.
Definition:
BlinkTool.h:63
Isis::BlinkTool::BlinkTool
BlinkTool(QWidget *parent)
Blink Tool Constructor.
Definition:
BlinkTool.cpp:31
QToolBar
Isis::BlinkTool::updateWindow
void updateWindow()
Repaints the blink tool window.
Definition:
BlinkTool.cpp:306
Isis::BlinkTool::advance
void advance()
Manual blinking.
Definition:
BlinkTool.cpp:273
Isis::BlinkTool::readSettings
void readSettings()
Reads the settings saved from the last time this tool was used.
Definition:
BlinkTool.cpp:331
Isis
Namespace for ISIS/Bullet specific routines.
Definition:
Apollo.h:31
Isis::Tool
Base class for the Qisis tools.
Definition:
Tool.h:81
QObject
QAction
QDialog
QWidget
Isis::BlinkTool::reverse
void reverse()
Reverses the order of the blinking.
Definition:
BlinkTool.cpp:232
Isis::BlinkTool::toggleLink
void toggleLink(QListWidgetItem *item)
Links/unlinks viewports.
Definition:
BlinkTool.cpp:217
src
qisis
objs
BlinkTool
BlinkTool.h