1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
/*!
* \file
*
* \author Peter Harvey <pharvey@peterharvey.org>
* \author \sa AUTHORS file
* \version 2
* \date 2007
* \license Copyright unixODBC Project 2007-2008, LGPL
*/
#ifndef CHELP_H
#define CHELP_H
#include "CODBCInst.h"
#include <QWidget>
#include <QPixmap>
class QFrame;
/*!
* \class CHelp
* \brief Help widget for tabs/property pages.
*
* This widget presents the given Icon and Text in a manner useful for the
* bottom (or other border area) of another widget where Helpful information
* (read; hints about usage/purpose) may be needed.
*
* This widget is used by the CODBCConfig tab/property widgets.
*
*/
class CHelp : public QWidget
{
Q_OBJECT
public:
CHelp( const QString &stringKey, const QIcon &icon, const QString &stringText, QWidget *pwidgetParent = 0 );
~CHelp();
protected:
bool bVisibleView;
QString stringKey;
QToolButton * pToolButton;
QFrame * pFrame;
QLabel * plabelIcon;
QLabel * plabelText;
void loadState();
void saveState();
protected slots:
void slotToggleView();
};
#endif
|