Initial from sourceforge's cvs.
#ifndef INFOLABEL_H
#define INFOLABEL_H
#include <qlabel.h>
class QString;
class QLineEdit;
/*!
Class which defines an information label. It usually tells the user
information about some configuration parameter or result (label title).
It's usually shown as a title in bold and a colon, followed by its value.
*/
class InfoLabel : public QLabel
{
Q_OBJECT
private:
QString *titlevar, *valuevar;
void initWidget();
public slots:
/*!
* Sets the title of the label
*/
void setTitle(const QString &str);
/*!
* Sets the value shown as the title's value
*/
void setValue(const QString &str);
public:
/*!
* Constructs an InfoLabel with no title or value
*/
InfoLabel(QWidget *parent=0, const char *name=0);
/*!
* Constructs an InfoLabel with title \param mytitle and
* void result
* \param mytitle Title of the InfoLabel
*/
InfoLabel(const QString &mytitle, QWidget *parent=0,
const char *name=0);
/*!
* Constructs an InfoLabel with title #param mytitle and
* result #param myvalue
* \param mytitle Title of the InfoLabel
* \param myvalue Value of the information labeled as the title set
*/
InfoLabel(const QString &mytitle, const QString &myvalue,
QWidget *parent=0, const char *name=0);
/*!
* Returns the title of the information label
*/
QString title() const;
/*!
* Returns the value set for the information
*/
QString value() const;
};
#endif // INFOLABEL_H