USGS

Isis 3.0 Object Programmers' Reference

Home

Qisis::BlinkTool Class Reference

Inheritance diagram for Qisis::BlinkTool:

Inheritance graph
[legend]
Collaboration diagram for Qisis::BlinkTool:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 18 of file BlinkTool.h.

Public Member Functions

 BlinkTool (QWidget *parent)
 Blink Tool Constructor.
void addTo (QMenu *menu)
 Adds this action to the given menu.
void addToPermanent (QToolBar *perm)
 Adds this action to the permanent tool bar.
void writeSettings ()
 Writes the current settings of this window so the next time this tool is used, certain user prefs.
void readSettings ()
 Reads the settings saved from the last time this tool was used.

Protected Member Functions

QString menuName () const
 Returns the menu name.
void updateTool ()
 Updates the blink tool.
bool eventFilter (QObject *o, QEvent *e)
 Catches the events happening so we can make this tool do what we want.

Private Slots

void toggleLink (QListWidgetItem *item)
 Links/unlinks viewports.
void reverse ()
 Reverses the order of the blinking.
void stop ()
 Stops the blinking.
void start ()
 Starts the blinking.
void advance ()
 Manual blinking.
void timeout ()
 The blink tool's timer.
void updateWindow ()
 Repaints the blink tool window.

Private Attributes

QAction * p_action
 The action associated with this tool.
QWidgetp_blinkWindow
 The blink tool widget.
QListWidget * p_listWidget
 The list widget with the blink tool.
QDoubleSpinBox * p_timeBox
 Time selection box.
bool p_timerOn
 Is the timer on?
QDialogp_dialog
 Dialog widget.


Constructor & Destructor Documentation

Qisis::BlinkTool::BlinkTool ( QWidget parent  ) 

Blink Tool Constructor.

Parameters:
parent 

Definition at line 17 of file BlinkTool.cpp.

References advance(), p_action, p_blinkWindow, p_dialog, p_listWidget, p_timeBox, p_timerOn, readSettings(), reverse(), start(), stop(), toggleLink(), and updateWindow().


Member Function Documentation

void Qisis::BlinkTool::addTo ( QMenu *  menu  ) 

Adds this action to the given menu.

Parameters:
menu 

Definition at line 143 of file BlinkTool.cpp.

References p_action.

void Qisis::BlinkTool::addToPermanent ( QToolBar *  perm  ) 

Adds this action to the permanent tool bar.

Parameters:
perm 

Definition at line 154 of file BlinkTool.cpp.

References p_action.

void Qisis::BlinkTool::advance (  )  [private, slot]

Manual blinking.

Definition at line 259 of file BlinkTool.cpp.

References d, p_listWidget, p_timerOn, and size.

Referenced by BlinkTool(), and timeout().

bool Qisis::BlinkTool::eventFilter ( QObject *  o,
QEvent *  e 
) [protected]

Catches the events happening so we can make this tool do what we want.

Parameters:
o 
e 
Returns:
bool

Definition at line 338 of file BlinkTool.cpp.

References d, p_blinkWindow, p_listWidget, writeSettings(), x, and y.

QString Qisis::BlinkTool::menuName (  )  const [inline, protected]

Returns the menu name.

Returns:
QString

Definition at line 36 of file BlinkTool.h.

void Qisis::BlinkTool::readSettings (  ) 

Reads the settings saved from the last time this tool was used.

Definition at line 316 of file BlinkTool.cpp.

References Isis::Filename::Expanded(), p_dialog, p_timeBox, and size.

Referenced by BlinkTool().

void Qisis::BlinkTool::reverse (  )  [private, slot]

Reverses the order of the blinking.

Definition at line 218 of file BlinkTool.cpp.

References d, p_listWidget, p_timerOn, and size.

Referenced by BlinkTool().

void Qisis::BlinkTool::start (  )  [private, slot]

Starts the blinking.

Definition at line 248 of file BlinkTool.cpp.

References p_timeBox, p_timerOn, and timeout().

Referenced by BlinkTool(), and timeout().

void Qisis::BlinkTool::stop (  )  [private, slot]

Stops the blinking.

Definition at line 239 of file BlinkTool.cpp.

References p_timerOn.

Referenced by BlinkTool().

void Qisis::BlinkTool::timeout (  )  [private, slot]

The blink tool's timer.

Definition at line 280 of file BlinkTool.cpp.

References advance(), p_timerOn, and start().

Referenced by start().

void Qisis::BlinkTool::toggleLink ( QListWidgetItem *  item  )  [private, slot]

Links/unlinks viewports.

Parameters:
item 

Definition at line 203 of file BlinkTool.cpp.

References d, and p_listWidget.

Referenced by BlinkTool().

void Qisis::BlinkTool::updateTool (  )  [protected]

Updates the blink tool.

Definition at line 163 of file BlinkTool.cpp.

References d, p_action, p_listWidget, and size.

void Qisis::BlinkTool::updateWindow (  )  [private, slot]

Repaints the blink tool window.

Definition at line 292 of file BlinkTool.cpp.

References p_blinkWindow.

Referenced by BlinkTool().

void Qisis::BlinkTool::writeSettings (  ) 

Writes the current settings of this window so the next time this tool is used, certain user prefs.

are remembered.

Definition at line 302 of file BlinkTool.cpp.

References Isis::Filename::Expanded(), p_dialog, and p_timeBox.

Referenced by eventFilter().


Member Data Documentation

QAction* Qisis::BlinkTool::p_action [private]

The action associated with this tool.

Definition at line 50 of file BlinkTool.h.

Referenced by addTo(), addToPermanent(), BlinkTool(), and updateTool().

QWidget* Qisis::BlinkTool::p_blinkWindow [private]

The blink tool widget.

Definition at line 51 of file BlinkTool.h.

Referenced by BlinkTool(), eventFilter(), and updateWindow().

QDialog* Qisis::BlinkTool::p_dialog [private]

Dialog widget.

Definition at line 55 of file BlinkTool.h.

Referenced by BlinkTool(), readSettings(), and writeSettings().

QListWidget* Qisis::BlinkTool::p_listWidget [private]

The list widget with the blink tool.

Definition at line 52 of file BlinkTool.h.

Referenced by advance(), BlinkTool(), eventFilter(), reverse(), toggleLink(), and updateTool().

QDoubleSpinBox* Qisis::BlinkTool::p_timeBox [private]

Time selection box.

Definition at line 53 of file BlinkTool.h.

Referenced by BlinkTool(), readSettings(), start(), and writeSettings().

bool Qisis::BlinkTool::p_timerOn [private]

Is the timer on?

Definition at line 54 of file BlinkTool.h.

Referenced by advance(), BlinkTool(), reverse(), start(), stop(), and timeout().


The documentation for this class was generated from the following files: