OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
filewidget.hpp
Go to the documentation of this file.
1 #ifndef CSV_DOC_FILEWIDGET_H
2 #define CSV_DOC_FILEWIDGET_H
3 
4 #include <QWidget>
5 
6 #include <string>
7 
8 class QLabel;
9 class QString;
10 class QLineEdit;
11 
12 namespace CSVDoc
13 {
14  class FileWidget : public QWidget
15  {
16  Q_OBJECT
17 
18  bool mAddon;
19  QLineEdit *mInput;
20  QLabel *mType;
21 
22  QString getExtension() const;
23 
24  public:
25 
26  FileWidget (QWidget *parent = 0);
27 
28  void setType (bool addon);
29 
30  QString getName() const;
31 
32  void extensionLabelIsVisible(bool visible);
33 
34  void setName (const std::string& text);
35 
36  private slots:
37 
38  void textChanged (const QString& text);
39 
40  signals:
41 
42  void nameChanged (const QString& file, bool addon);
43  };
44 }
45 
46 #endif
static const struct @2 signals[]
QString getExtension() const
Definition: filewidget.cpp:9
void nameChanged(const QString &file, bool addon)
FileWidget(QWidget *parent=0)
Definition: filewidget.cpp:14
void setName(const std::string &text)
Definition: filewidget.cpp:58
void setType(bool addon)
Definition: filewidget.cpp:31
Definition: filewidget.hpp:14
bool mAddon
Definition: filewidget.hpp:18
QString getName() const
Definition: filewidget.cpp:38
QLabel * mType
Definition: filewidget.hpp:20
QLineEdit * mInput
Definition: filewidget.hpp:19
void textChanged(const QString &text)
Definition: filewidget.cpp:48
void extensionLabelIsVisible(bool visible)
Definition: filewidget.cpp:53