| 1 | #ifndef SGFPREVIEW_H |
| 2 | #define SGFPREVIEW_H |
| 3 | |
| 4 | #include <QWidget> |
| 5 | |
| 6 | class SGFParser; |
| 7 | class GameData; |
| 8 | |
| 9 | namespace Ui { |
| 10 | class SGFPreview; |
| 11 | } |
| 12 | |
| 13 | class SGFPreview : public QWidget |
| 14 | { |
| 15 | Q_OBJECT |
| 16 | |
| 17 | public: |
| 18 | explicit SGFPreview(QWidget *parent = 0); |
| 19 | ~SGFPreview(); |
| 20 | void clearData(); |
| 21 | |
| 22 | void setPath(QString path); |
| 23 | |
| 24 | signals: |
| 25 | void isValidSGF(bool); |
| 26 | // This class should decide if the path contains a valid SGF file. |
| 27 | // As far as I can tell, this is not checked at the moment. |
| 28 | // It is implicitly assumed that the file is valid SGF. |
| 29 | |
| 30 | private: |
| 31 | Ui::SGFPreview *ui; |
| 32 | GameData * GameLoaded; |
| 33 | SGFParser * MW_SGFparser; |
| 34 | QString SGFloaded; |
| 35 | }; |
| 36 | |
| 37 | #endif // SGFPREVIEW_H |