Updraft  1.0
Open source glider flight visualisation tool.
directoryeditor.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_CORE_DIRECTORYEDITOR_H_
00002 #define UPDRAFT_SRC_CORE_DIRECTORYEDITOR_H_
00003 
00004 #include <QPushButton>
00005 #include <QDir>
00006 
00007 namespace Updraft {
00008 namespace Core {
00009 
00012 class DirectoryEditor: public QPushButton {
00013   Q_OBJECT
00014   Q_PROPERTY(QDir directory READ directory WRITE setDirectory USER true)
00015  public:
00016   explicit DirectoryEditor(QWidget *parent = 0);
00017 
00020   const QDir& directory() const;
00021 
00024   void setDirectory(const QDir &dir);
00025 
00026  private slots:
00029   void onClick();
00030 
00031  private:
00033   QDir dirProp;
00034 };
00035 
00036 }  // End namespace Core
00037 }  // End namespace Updraft
00038 
00039 #endif  // UPDRAFT_SRC_CORE_DIRECTORYEDITOR_H_
00040 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines