Isis 3 Programmer Reference
BlinkTool.h
1
#ifndef BlinkTool_h
2
#define BlinkTool_h
3
10
/* SPDX-License-Identifier: CC0-1.0 */
11
12
// This is the only include allowed in this file!
13
#include "Tool.h"
14
15
class
QDoubleSpinBox;
16
class
QDialog
;
17
class
QToolButton;
18
class
QSplitter;
19
class
QMenu
;
20
class
QVBoxLayout;
21
class
QHBoxLayout;
22
class
QPushButton;
23
class
QAction
;
24
class
QListWidget;
25
class
QListWidgetItem;
26
27
namespace
Isis
{
34
class
BlinkTool
:
public
Tool
{
35
Q_OBJECT
36
37
public
:
38
BlinkTool
(
QWidget
*parent);
39
void
addTo
(
QMenu
*menu);
40
void
addToPermanent
(
QToolBar
*perm);
41
void
writeSettings
();
42
void
readSettings
();
43
50
QString
menuName
()
const
{
51
return
"&Options"
;
52
};
53
54
protected
:
55
void
updateTool
();
56
bool
eventFilter
(
QObject
*o, QEvent *e);
57
58
private
slots:
59
void
toggleLink
(QListWidgetItem *item);
60
void
reverse
();
61
void
stop
();
62
void
start
();
63
void
advance
();
64
void
timeout
();
65
void
updateWindow
();
66
67
private
:
68
QAction
*
p_action
;
69
QWidget
*
p_blinkWindow
;
70
QListWidget *
p_listWidget
;
71
QDoubleSpinBox *
p_timeBox
;
72
bool
p_timerOn
;
73
QDialog
*
p_dialog
;
74
QSplitter *p_splitter;
75
};
76
};
77
78
#endif
Isis::BlinkTool
Definition
BlinkTool.h:34
Isis::BlinkTool::p_listWidget
QListWidget * p_listWidget
The list widget with the blink tool.
Definition
BlinkTool.h:70
Isis::BlinkTool::p_action
QAction * p_action
The action associated with this tool.
Definition
BlinkTool.h:68
Isis::BlinkTool::start
void start()
Starts the blinking.
Definition
BlinkTool.cpp:270
Isis::BlinkTool::addTo
void addTo(QMenu *menu)
Adds this action to the given menu.
Definition
BlinkTool.cpp:165
Isis::BlinkTool::advance
void advance()
Manual blinking.
Definition
BlinkTool.cpp:281
Isis::BlinkTool::stop
void stop()
Stops the blinking.
Definition
BlinkTool.cpp:261
Isis::BlinkTool::menuName
QString menuName() const
Returns the menu name.
Definition
BlinkTool.h:50
Isis::BlinkTool::p_dialog
QDialog * p_dialog
Dialog widget.
Definition
BlinkTool.h:73
Isis::BlinkTool::addToPermanent
void addToPermanent(QToolBar *perm)
Adds this action to the permanent tool bar.
Definition
BlinkTool.cpp:176
Isis::BlinkTool::toggleLink
void toggleLink(QListWidgetItem *item)
Links/unlinks viewports.
Definition
BlinkTool.cpp:225
Isis::BlinkTool::updateWindow
void updateWindow()
Repaints the blink tool window.
Definition
BlinkTool.cpp:314
Isis::BlinkTool::updateTool
void updateTool()
Updates the blink tool.
Definition
BlinkTool.cpp:185
Isis::BlinkTool::reverse
void reverse()
Reverses the order of the blinking.
Definition
BlinkTool.cpp:240
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:324
Isis::BlinkTool::BlinkTool
BlinkTool(QWidget *parent)
Blink Tool Constructor.
Definition
BlinkTool.cpp:39
Isis::BlinkTool::readSettings
void readSettings()
Reads the settings saved from the last time this tool was used.
Definition
BlinkTool.cpp:339
Isis::BlinkTool::p_blinkWindow
QWidget * p_blinkWindow
The blink tool widget.
Definition
BlinkTool.h:69
Isis::BlinkTool::p_timeBox
QDoubleSpinBox * p_timeBox
Time selection box.
Definition
BlinkTool.h:71
Isis::BlinkTool::p_timerOn
bool p_timerOn
Is the timer on?
Definition
BlinkTool.h:72
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:365
Isis::BlinkTool::timeout
void timeout()
The blink tool's timer.
Definition
BlinkTool.cpp:302
Isis::Tool
Base class for the Qisis tools.
Definition
Tool.h:67
QAction
QDialog
QMenu
QObject
QToolBar
QWidget
Isis
This is free and unencumbered software released into the public domain.
Definition
Apollo.h:16
src
qisis
objs
BlinkTool
BlinkTool.h