OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
adjusterwidget.hpp
Go to the documentation of this file.
1 #ifndef CSV_DOC_ADJUSTERWIDGET_H
2 #define CSV_DOC_ADJUSTERWIDGET_H
3 
4 #include <boost/filesystem/path.hpp>
5 
6 #include <QWidget>
7 
8 class QLabel;
9 
10 namespace CSVDoc
11 {
13  {
17  };
18 
19  class AdjusterWidget : public QWidget
20  {
21  Q_OBJECT
22 
23  public:
24 
25  boost::filesystem::path mLocalData;
26  QLabel *mMessage;
27  QLabel *mIcon;
28  bool mValid;
29  boost::filesystem::path mResultPath;
32 
33  public:
34 
35  AdjusterWidget (QWidget *parent = 0);
36 
37  void setLocalData (const boost::filesystem::path& localData);
38  void setAction (ContentAction action);
39 
40  void setFilenameCheck (bool doCheck);
41  bool isValid() const;
42 
43  boost::filesystem::path getPath() const;
45 
46  public slots:
47 
48  void setName (const QString& name, bool addon);
49 
50  signals:
51 
52  void stateChanged (bool valid);
53  };
54 }
55 
56 #endif
Definition: adjusterwidget.hpp:19
bool isValid() const
Definition: adjusterwidget.cpp:51
ContentAction
Definition: adjusterwidget.hpp:12
void setLocalData(const boost::filesystem::path &localData)
Definition: adjusterwidget.cpp:38
static const struct @2 signals[]
boost::filesystem::path mLocalData
Definition: adjusterwidget.hpp:25
void setAction(ContentAction action)
Definition: adjusterwidget.cpp:33
boost::filesystem::path getPath() const
This function must not be called if there is no valid path.
Definition: adjusterwidget.cpp:43
Definition: adjusterwidget.hpp:14
void setName(const QString &name, bool addon)
Definition: adjusterwidget.cpp:61
bool mDoFilenameCheck
Definition: adjusterwidget.hpp:31
QLabel * mIcon
Definition: adjusterwidget.hpp:27
QLabel * mMessage
Definition: adjusterwidget.hpp:26
Definition: adjusterwidget.hpp:15
void setFilenameCheck(bool doCheck)
Definition: adjusterwidget.cpp:56
Definition: adjusterwidget.hpp:16
AdjusterWidget(QWidget *parent=0)
Definition: adjusterwidget.cpp:13
boost::filesystem::path mResultPath
Definition: adjusterwidget.hpp:29
ContentAction mAction
Definition: adjusterwidget.hpp:30
void stateChanged(bool valid)
bool mValid
Definition: adjusterwidget.hpp:28
const char * name
Definition: crashcatcher.cpp:59