Isis Developer Reference
BlinkTool.h
Go to the documentation of this file.
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
Tool.h
Isis::BlinkTool
Definition
BlinkTool.h:34
Isis::BlinkTool::addTo
void addTo(QMenu *menu)
Adds this action to the given menu.
Definition
BlinkTool.cpp:165
Isis::BlinkTool::menuName
QString menuName() const
Returns the menu name.
Definition
BlinkTool.h:50
Isis::BlinkTool::addToPermanent
void addToPermanent(QToolBar *perm)
Adds this action to the permanent tool bar.
Definition
BlinkTool.cpp:176
Isis::BlinkTool::updateTool
void updateTool()
Updates the blink tool.
Definition
BlinkTool.cpp:185
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::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::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
ISIS3
isis
src
qisis
objs
BlinkTool
BlinkTool.h