source: ntrip/trunk/GnssCenter/src/inpedit/selwin.h@ 4936

Last change on this file since 4936 was 4876, checked in by mervart, 9 years ago
File size: 772 bytes
Line 
1#ifndef RTGUI_SELWIN_H
2#define RTGUI_SELWIN_H
3
4#include <QtGui>
5
6namespace RTGUI {
7
8class t_selWin : public QWidget {
9 Q_OBJECT
10
11 Q_ENUMS( Mode )
12 Q_PROPERTY( Mode mode READ mode WRITE setMode )
13 Q_PROPERTY( QString fileName READ fileName WRITE setFileName )
14
15 public:
16 enum Mode {File, Files, Directory};
17
18 t_selWin(QWidget* parent = 0, t_selWin::Mode mode = File);
19 ~t_selWin();
20
21 QString fileName() const;
22 Mode mode() const {return _mode;}
23
24 public slots:
25 void setFileName(const QString& fileName);
26 void setMode(Mode mode) {_mode = mode;}
27
28 signals:
29 void fileNameChanged(const QString&);
30
31 private slots:
32 void chooseFile();
33
34 private:
35 QLineEdit* _lineEdit;
36 QPushButton* _button;
37 Mode _mode;
38};
39
40} // namespace RTGUI
41
42#endif
Note: See TracBrowser for help on using the repository browser.