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 55 56 57 58 59
|
/*!
* \file
*
* \author Peter Harvey <pharvey@peterharvey.org>
* \author \sa AUTHORS file
* \version 2
* \date 2007
* \license Copyright unixODBC Project 2007-2008, LGPL
*/
#ifndef CFILESELECTOR_H
#define CFILESELECTOR_H
#include "CODBCInst.h"
#include <QLineEdit>
/*!
* \class CFileSelector
* \brief File selector.
*
* Displays a file name to the User and allows it to be changed by way
* of clicking a button which invokes a file selection dialog.
*
* This is used by CTracing to allow the User to select a log file.
*
* \sa CTracing
*/
class CFileSelector : public QWidget
{
Q_OBJECT
public:
enum CFileSelectorMode
{
TraceFile,
TraceLibrary,
FileDSNDirectory,
Driver,
Setup
};
CFileSelector( CFileSelectorMode nMode, const QString &stringLabel = QString::null, bool bCompact = true, bool bButton = true, QWidget* pwidgetParent = NULL );
virtual ~CFileSelector();
void setText( const QString &stringText );
QString getText();
signals:
void signalChanged();
public slots:
void slotInvokeDialog();
protected:
CFileSelectorMode nMode;
QLineEdit * pLineEdit;
};
#endif
|