]> git.sur5r.net Git - fstl/blob - src/window.h
Preliminary packaging of 0.9.2-1
[fstl] / src / window.h
1 #ifndef WINDOW_H
2 #define WINDOW_H
3
4 #include <QMainWindow>
5
6 class Canvas;
7
8 class Window : public QMainWindow
9 {
10     Q_OBJECT
11 public:
12     explicit Window(QWidget* parent=0);
13     bool load_stl(const QString& filename);
14
15 protected:
16     void dragEnterEvent(QDragEnterEvent* event);
17     void dropEvent(QDropEvent* event);
18
19 public slots:
20     void on_open();
21     void on_about();
22     void on_ascii_stl();
23     void on_bad_stl();
24
25     void enable_open();
26     void disable_open();
27
28 private:
29     QAction* const open_action;
30     QAction* const about_action;
31     QAction* const quit_action;
32
33     Canvas* canvas;
34 };
35
36 #endif // WINDOW_H