Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqTitleTab Class Reference

This class creates a QGroupBox to be used to edit title for an axis. More...

#include <TxqTitleTab.h>

Inheritance diagram for TxqTitleTab::

QGroupBox List of all members.

Public Methods

 TxqTitleTab (QWidget *parent, const QString &tle, const QColor &col)
 This constructor requires all inputs to be set. More...

virtual ~TxqTitleTab ()
 The TxqTitleTab destructor. More...

void setData (const QString &tle, const QColor &col)
 Set the title data. More...

QString getTitle ()
 Get the title as a QString. More...

QColor getTitleColor ()
 Get the title color. More...


Protected Slots

void changeColor (bool on)
 Open a color dialog box to change the title color. More...


Private Attributes

QLineEdit* editor
 The plot attribute editors. More...

QLabeltitle
 The title label. More...

QCheckBox* colorBox
 The color check box. More...

QColor color
 The color of the title. More...


Detailed Description

This class creates a QGroupBox to be used to edit title for an axis.

Copyright 1998 - 2001 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
TxqTitleTab.h,v 1.4 2001/10/10 17:29:49 kgl Exp

Definition at line 45 of file TxqTitleTab.h.


Constructor & Destructor Documentation

TxqTitleTab::TxqTitleTab ( QWidget * parent,
const QString & tle,
const QColor & col )
 

This constructor requires all inputs to be set.

Parameters:
parent   the parent widget
tle   the title for the QGroupBox
col   the color of the title

TxqTitleTab::~TxqTitleTab ( ) [virtual]
 

The TxqTitleTab destructor.


Member Function Documentation

void TxqTitleTab::changeColor ( bool on ) [protected, slot]
 

Open a color dialog box to change the title color.

Parameters:
on   if on is true, then a QColorDialog is opened to obtain new color.

QString TxqTitleTab::getTitle ( )
 

Get the title as a QString.

Returns:
the title

QColor TxqTitleTab::getTitleColor ( )
 

Get the title color.

Returns:
the title color

void TxqTitleTab::setData ( const QString & tle,
const QColor & col )
 

Set the title data.

Parameters:
tle   the title
col   the color of the title


Member Data Documentation

QColor TxqTitleTab::color [private]
 

The color of the title.

Definition at line 113 of file TxqTitleTab.h.

QCheckBox * TxqTitleTab::colorBox [private]
 

The color check box.

Definition at line 108 of file TxqTitleTab.h.

QLineEdit * TxqTitleTab::editor [private]
 

The plot attribute editors.

Definition at line 98 of file TxqTitleTab.h.

QLabel * TxqTitleTab::title [private]
 

The title label.

Definition at line 103 of file TxqTitleTab.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.