source: ntrip/trunk/GnssCenter/inpedit/selwin.h@ 5060

Last change on this file since 5060 was 5000, checked in by mervart, 8 years ago
File size: 792 bytes
Line 
1#ifndef GnssCenter_SELWIN_H
2#define GnssCenter_SELWIN_H
3
4#include <QtGui>
5
6namespace GnssCenter {
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 GnssCenter
41
42#endif
Note: See TracBrowser for help on using the repository browser.