FactDev  0.1
chosepathwidget.h
1 #ifndef CHOSEPATHWIDGET_H
2 #define CHOSEPATHWIDGET_H
3 
4 #include <QWidget>
5 #include <QDir>
6 
7 namespace Ui {
8 class ChosePathWidget;
9 }
10 
11 namespace Gui {
12 namespace Widgets {
13 namespace Path {
14 
18 class ChosePathWidget : public QWidget
19 {
20  Q_OBJECT
21 
22 public:
27  explicit ChosePathWidget(QWidget *parent = 0);
28  ~ChosePathWidget();
29 
34  void setField(QString text);
35 
40  QString getField();
41 
46  virtual QString getDefaultLocation();
47 
48 public slots:
52  virtual void fillField();
53 
54 signals:
58  void textChanged();
59 
60 protected:
61  Ui::ChosePathWidget *ui;
62 };
63 
64 }
65 }
66 }
67 
68 #endif // CHOSEPATHWIDGET_H
void textChanged()
textChanged Signal is send when path changed.
The ChoseDirectoryWidget class Open a QFileDialog.and display path in textfield.
Definition: chosepathwidget.h:18
ChosePathWidget(QWidget *parent=0)
ChoseFileWidget Construct a choseFileWidget.
Definition: chosepathwidget.cpp:6
virtual void fillField()
fillField Fill the textfield with path information
Definition: chosepathwidget.cpp:33
void setField(QString text)
setField Change the path in textfield
Definition: chosepathwidget.cpp:19
virtual QString getDefaultLocation()
getDefaultLocation The default location when we open popup. In default case, it's ~/Documents ...
Definition: chosepathwidget.cpp:28
QString getField()
getField The text in field
Definition: chosepathwidget.cpp:24