5 #include <QActionGroup>
6 #include <QFileSystemWatcher>
10 class Window : public QMainWindow
14 explicit Window(QWidget* parent=0);
15 bool load_stl(const QString& filename, bool is_reload=false);
18 void dragEnterEvent(QDragEnterEvent* event);
19 void dropEvent(QDropEvent* event);
26 void on_missing_file();
27 void on_confusing_stl();
32 void set_watched(const QString& filename);
35 void on_projection(QAction* proj);
36 void on_watched_change(const QString& filename);
38 void on_autoreload_triggered(bool r);
39 void on_clear_recent();
40 void on_load_recent(QAction* a);
43 void rebuild_recent_files();
45 QAction* const open_action;
46 QAction* const about_action;
47 QAction* const quit_action;
48 QAction* const perspective_action;
49 QAction* const orthogonal_action;
50 QAction* const reload_action;
51 QAction* const autoreload_action;
53 QMenu* const recent_files;
54 QActionGroup* const recent_files_group;
55 QAction* const recent_files_clear_action;
56 const static int MAX_RECENT_FILES=8;
57 const static QString RECENT_FILE_KEY;
59 QFileSystemWatcher* watcher;