QtiPlot 0.9.7.3
Public Member Functions | Protected Slots | Private Member Functions | Private Attributes

ContourLinesEditor Class Reference

A complex widget allowing to customize contour line plots. More...

#include <ContourLinesEditor.h>

List of all members.

Public Member Functions

 ContourLinesEditor (const QLocale &locale=QLocale::system(), int precision=6, QWidget *parent=0)
 Constructor.
void setSpectrogram (Spectrogram *sp)
 Use this function to initialize the values.
void showPenColumn (bool on=true)
void updateContents ()
 Updates cell items when spectrogram contour lines changed.
void updateContourLevels ()
 Updates levels in the target spectrogram and replots it.
void updateContourPens ()
 ~ContourLinesEditor ()

Protected Slots

void deleteLevel ()
void enableButtons (int row)
bool eventFilter (QObject *object, QEvent *e)
void insertLevel ()
void showPenDialog (int row, int col)
void spinBoxActivated (DoubleSpinBox *)
void updatePen ()

Private Member Functions

void updatePenColumn ()

Private Attributes

QCheckBox * applyAllColorBox
QCheckBox * applyAllStyleBox
QCheckBox * applyAllWidthBox
QLocale d_locale
 Locale settings used to display level values.
int d_pen_index
QList< QPen > d_pen_list
int d_precision
 Precision used to display level values.
Spectrogramd_spectrogram
QPushButton * deleteBtn
QPushButton * insertBtn
ColorButtonpenColorBox
QDialog * penDialog
PenStyleBoxpenStyleBox
DoubleSpinBoxpenWidthBox
QTableWidget * table
 Table displaying the values ranges in the first column and their corresponding pens in the second column.

Detailed Description

A complex widget allowing to customize contour line plots.

It uses a QTableWidget to display the values in one column and their corresponding pen in a second column. A click on a table color pops-up a dialog allowing to customize the pen.

color_map_editor.png

Constructor & Destructor Documentation

ContourLinesEditor::ContourLinesEditor ( const QLocale &  locale = QLocale::system(),
int  precision = 6,
QWidget *  parent = 0 
)

Constructor.

Parameters:
parentparent widget (only affects placement of the widget)

References deleteBtn, deleteLevel(), insertBtn, insertLevel(), penDialog, showPenDialog(), and table.

ContourLinesEditor::~ContourLinesEditor ( )

References penDialog.


Member Function Documentation

void ContourLinesEditor::deleteLevel ( ) [protected, slot]

References d_pen_list, and table.

Referenced by ContourLinesEditor().

void ContourLinesEditor::enableButtons ( int  row) [protected, slot]

References deleteBtn, and insertBtn.

Referenced by insertLevel(), showPenDialog(), and spinBoxActivated().

bool ContourLinesEditor::eventFilter ( QObject *  object,
QEvent *  e 
) [protected, slot]

References showPenDialog(), and table.

void ContourLinesEditor::insertLevel ( ) [protected, slot]
void ContourLinesEditor::setSpectrogram ( Spectrogram sp)

Use this function to initialize the values.

References d_spectrogram, and updateContents().

Referenced by PlotDialog::setActiveCurve().

void ContourLinesEditor::showPenColumn ( bool  on = true)

References table.

Referenced by PlotDialog::showCustomPenColumn().

void ContourLinesEditor::showPenDialog ( int  row,
int  col 
) [protected, slot]
void ContourLinesEditor::spinBoxActivated ( DoubleSpinBox sb) [protected, slot]

References enableButtons(), and table.

Referenced by insertLevel(), and updateContents().

void ContourLinesEditor::updateContents ( )
void ContourLinesEditor::updateContourLevels ( )

Updates levels in the target spectrogram and replots it.

References d_spectrogram, Spectrogram::setContourLevels(), and table.

Referenced by PlotDialog::acceptParams().

void ContourLinesEditor::updateContourPens ( )
void ContourLinesEditor::updatePen ( ) [protected, slot]
void ContourLinesEditor::updatePenColumn ( ) [private]

References d_pen_list, and table.

Referenced by updatePen().


Member Data Documentation

Referenced by showPenDialog(), and updatePen().

QCheckBox * ContourLinesEditor::applyAllStyleBox [private]

Referenced by showPenDialog(), and updatePen().

QCheckBox * ContourLinesEditor::applyAllWidthBox [private]

Referenced by showPenDialog(), and updatePen().

QLocale ContourLinesEditor::d_locale [private]

Locale settings used to display level values.

Referenced by insertLevel(), and updateContents().

Referenced by showPenDialog(), and updatePen().

QList<QPen> ContourLinesEditor::d_pen_list [private]

Precision used to display level values.

Referenced by insertLevel(), and updateContents().

QPushButton * ContourLinesEditor::deleteBtn [private]
QPushButton* ContourLinesEditor::insertBtn [private]

Referenced by showPenDialog(), and updatePen().

QDialog* ContourLinesEditor::penDialog [private]

Referenced by showPenDialog(), and updatePen().

Referenced by showPenDialog(), and updatePen().

QTableWidget* ContourLinesEditor::table [private]

Table displaying the values ranges in the first column and their corresponding pens in the second column.

Referenced by ContourLinesEditor(), deleteLevel(), eventFilter(), insertLevel(), showPenColumn(), spinBoxActivated(), updateContents(), updateContourLevels(), updateContourPens(), and updatePenColumn().


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