CAVAPA-GUI  30.5.2014
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
Signals | Public Member Functions | List of all members
cavapa_gui::MarkerDialog Class Reference

Class for marker creation dialog of the graphwidget. More...

#include <markerdialog.h>

Inheritance diagram for cavapa_gui::MarkerDialog:

Signals

void sendMarkerNameAndTime (std::string text, QDateTime time)
 Sends new marker text and time position to parent. More...
 
void sendSelectedText (QString typedtext)
 Sends selected text to parent. More...
 
void sendMarkerPosition (QDateTime time)
 Sends marker position to parent. More...
 
void removeFromHistory (int i)
 Notifies parent to remove selected text item from marker history. More...
 

Public Member Functions

 MarkerDialog (QWidget *parent=0)
 Constructs the marker dialog. More...
 
void setMarkerHistoryAndPositionTime (std::vector< std::string > history, QDateTime time)
 Sets marker history and the selected time point for new marker for marker dialog. More...
 

Detailed Description

Class for marker creation dialog of the graphwidget.

Offers list of previously added marker texts and a time editor for marker time position fine tuning.

Author
Joel Kivelä

Constructor & Destructor Documentation

cavapa_gui::MarkerDialog::MarkerDialog ( QWidget *  parent = 0)
explicit

Constructs the marker dialog.

Parameters
parentQt default parent.

Member Function Documentation

void cavapa_gui::MarkerDialog::removeFromHistory ( int  i)
signal

Notifies parent to remove selected text item from marker history.

Parameters
iIndex of text to be deleted.
void cavapa_gui::MarkerDialog::sendMarkerNameAndTime ( std::string  text,
QDateTime  time 
)
signal

Sends new marker text and time position to parent.

Parameters
textMarker text in string.
timeTime position in QDateTime.
void cavapa_gui::MarkerDialog::sendMarkerPosition ( QDateTime  time)
signal

Sends marker position to parent.

Parameters
timeTime position in QDateTime.
void cavapa_gui::MarkerDialog::sendSelectedText ( QString  typedtext)
signal

Sends selected text to parent.

Parameters
typedtextTypeded text in QString.
void cavapa_gui::MarkerDialog::setMarkerHistoryAndPositionTime ( std::vector< std::string >  history,
QDateTime  time 
)

Sets marker history and the selected time point for new marker for marker dialog.

Parameters
historyThe marker text history as vector array of strings.
timeThe selected time point from the graph as QDateTime.

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