Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef QTXPATHEDIT_H
00024 #define QTXPATHEDIT_H
00025
00026 #include "Qtx.h"
00027
00028 #include <QFrame>
00029
00030 class QLineEdit;
00031
00032 class QTX_EXPORT QtxPathEdit : public QFrame
00033 {
00034 Q_OBJECT
00035
00036 public:
00037 QtxPathEdit( const Qtx::PathType, QWidget* = 0 );
00038 QtxPathEdit( QWidget* = 0 );
00039 virtual ~QtxPathEdit();
00040
00041 QString path() const;
00042 void setPath( const QString& );
00043
00044 Qtx::PathType pathType() const;
00045 void setPathType( const Qtx::PathType );
00046
00047 QString pathFilter() const;
00048 void setPathFilter( const QString& );
00049
00050 private slots:
00051 void onBrowse( bool = false );
00052
00053 protected:
00054 QLineEdit* lineEdit() const;
00055
00056 private:
00057 void initialize();
00058 void updateState();
00059
00060 private:
00061 QLineEdit* myPath;
00062 Qtx::PathType myType;
00063 QString myFilter;
00064 };
00065
00066 #endif