comparison src/mainwindow.h @ 2:97d2c8869c39

First prototype implementation of table view and player
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Mar 2015 16:34:42 +0100
parents 147b08bc7d64
children 107e435cb569
comparison
equal deleted inserted replaced
1:7a2637c3eb83 2:97d2c8869c39
16 class QPushButton; 16 class QPushButton;
17 class QDropEvent; 17 class QDropEvent;
18 class QDragLeaveEvent; 18 class QDragLeaveEvent;
19 class QDragMoveEvent; 19 class QDragMoveEvent;
20 class QDragEnterEvent; 20 class QDragEnterEvent;
21 class MetaDataView;
22 class PNGPlayer;
21 23
22 class MainWindow : public QMainWindow 24 class MainWindow : public QMainWindow
23 { 25 {
24 Q_OBJECT 26 Q_OBJECT
25 27
34 virtual void closeEvent(QCloseEvent *event); 36 virtual void closeEvent(QCloseEvent *event);
35 37
36 /** @brief Restores the last window state */ 38 /** @brief Restores the last window state */
37 void readSettings(); 39 void readSettings();
38 40
39 /* The drag drop actions */ 41 /* The drag drop actions
40 void dragEnterEvent(QDragEnterEvent *event); 42 void dragEnterEvent(QDragEnterEvent *event);
41 void dragMoveEvent(QDragMoveEvent *event); 43 void dragMoveEvent(QDragMoveEvent *event);
42 void dragLeaveEvent(QDragLeaveEvent *event); 44 void dragLeaveEvent(QDragLeaveEvent *event);
43 void dropEvent(QDropEvent *event); 45 void dropEvent(QDropEvent *event);
44 46 */
45 public slots: 47 public slots:
46 /** @brief set an absolute folder to read a metadata.csv from. */ 48 /** @brief set an absolute folder to read a metadata.csv from. */
47 void setFolder(const QString &folder); 49 void setFolder(const QString &folder);
48 50
49 protected slots: 51 protected slots:
51 void showErrorMessage(const QString& errMsg); 53 void showErrorMessage(const QString& errMsg);
52 54
53 private: 55 private:
54 QSettings mSettings; 56 QSettings mSettings;
55 57
56 bool mHasValidFolder;
57 QString mCurFolder; 58 QString mCurFolder;
59 MetaDataView *mDataView;
60 PNGPlayer *mPlayer;
58 }; 61 };
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)