Ksetiwatch API Documentation


SigMsg Class Reference

A dialog with information about new high signals. More...

#include <sigmsg.h>

Inherits SigMsgTmpl.

Inheritance diagram for SigMsg:

Inheritance graph
[legend]
Collaboration diagram for SigMsg:

Collaboration graph
[legend]
List of all members.

Public Methods

 SigMsg (const SpikeScore &score, const QString &text, QWidget *parent=0, const char *name=0)
 SigMsg (const GaussianScore &score, const QString &text, QWidget *parent=0, const char *name=0)
 SigMsg (const PulseScore &score, const QString &text, QWidget *parent=0, const char *name=0)
 SigMsg (const TripletScore &score, const QString &text, QWidget *parent=0, const char *name=0)
 ~SigMsg ()

Protected Methods

void setText (const QString &text)

Detailed Description

A dialog with information about new high signals.

This dialog is used to report new high signals to the user. It displays information about the new signals (spikes, gaussians, pulses, or triplets), along with a graphical representation.

Definition at line 65 of file sigmsg.h.


Constructor & Destructor Documentation

SigMsg::SigMsg const SpikeScore   score,
const QString   text,
QWidget   parent = 0,
const char *    name = 0
 

Creates a dialog window reporting about a new spike in the current work unit.

Parameters:
score  The SpikeScore structure containing the data of the new gaussian.
text  The text to be printed in the message box.
parent  A pointer to the parent widget. If 0, this widget becomes a top-level widget.
name  The name of this widget.

Definition at line 28 of file sigmsg.cpp.

References QGridLayout::addWidget(), SpikeScore::fft_len, SpikeScore::power, QWidget::setBackgroundColor(), SetiGraph::setCurve(), QWidget::setMinimumSize(), setText(), and SetiGraph::showInfoText().

SigMsg::SigMsg const GaussianScore   score,
const QString   text,
QWidget   parent = 0,
const char *    name = 0
 

Creates a dialog window reporting about a new gaussian in the current work unit.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
score  The GaussianScore structure containing the data of the new gaussian.
text  The text to be printed in the message box.
parent  A pointer to the parent widget. If 0, this widget becomes a top-level widget.
name  The name of this widget.

Definition at line 53 of file sigmsg.cpp.

References QGridLayout::addWidget(), setText(), SetiGraph::showInfoText(), and GaussianPlot::showNewGaussianData().

SigMsg::SigMsg const PulseScore   score,
const QString   text,
QWidget   parent = 0,
const char *    name = 0
 

Creates a dialog window reporting about a new pulse in the current work unit.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
score  The PulseScore structure containing the data of the new pulse.
text  The text to be printed in the message box.
parent  A pointer to the parent widget. If 0, this widget becomes a top-level widget.
name  The name of this widget.

Definition at line 66 of file sigmsg.cpp.

References QGridLayout::addWidget(), setText(), SetiGraph::showInfoText(), and PulsePlot::showNewPulseData().

SigMsg::SigMsg const TripletScore   score,
const QString   text,
QWidget   parent = 0,
const char *    name = 0
 

Creates a dialog window reporting about a new triplet in the current work unit.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
score  The TripletScore structure containing the data of the new triplet.
text  The text to be printed in the message box.
parent  A pointer to the parent widget. If 0, this widget becomes a top-level widget.
name  The name of this widget.

Definition at line 79 of file sigmsg.cpp.

References QGridLayout::addWidget(), setText(), SetiGraph::showInfoText(), and TripletPlot::showNewTripletData().

SigMsg::~SigMsg  
 

The destructor.

Definition at line 92 of file sigmsg.cpp.


Member Function Documentation

void SigMsg::setText const QString   text [protected]
 

Adjusts the size of the text box and prints the text.

Parameters:
text  The text to be printed.

Definition at line 97 of file sigmsg.cpp.

References QWidget::font(), QFontMetrics::lineSpacing(), and QFontMetrics::width().

Referenced by SigMsg().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:29:00 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002