Added SaveImageDialog to mussagl
[mussa.git] / qui / PathWindow.h
1 #ifndef _PATHWINDOW_H_
2 #define _PATHWINDOW_H_
3
4 #include <QMainWindow>
5 #include <QPixmap>
6 class QAction;
7 class PathScene;
8 class ImageSaveDialog;
9
10 class PathWindow : public QMainWindow
11 {
12   Q_OBJECT
13
14 public: 
15   PathWindow(QWidget *parent=0);
16
17 public slots:
18   //! display an about box, contemplating the politics of the author list
19   void about();
20
21   //! \defgroup AnalysisFunctions Components related to running analyses
22   //\@{
23   //! open a window to collect the information needed to create a new analysis
24   void createNewAnalysis();
25   //! launch a sub analysis
26   void createSubAnalysis();
27   //! load a mussa parameter file (which specifies an analysis to run)
28   void loadMupa( );
29   //! load a previously run analysis
30   void loadSavedAnalysis();
31   //\@}
32
33   //! \defgroup MotifHandling Handling of motif lists
34   //\@{
35   void loadMotifList();
36   void saveMotifList();
37   void toggleMotifs();
38   //\@}
39
40   void showMussaToolbar();
41   
42   void promptSaveOpenGlPixmap();
43
44 protected:
45   // display our wonderful mussa output
46   PathScene *scene;
47   QToolBar *mussaViewTB;
48   ImageSaveDialog *imageSaveDialog;
49   
50   QAction *aboutAction;
51   QAction *closeAction;
52   QAction *createNewAnalysisAction;
53   QAction *createSubAnalysisAction;
54   QAction *loadMotifListAction;
55   QAction *loadMupaAction;
56   QAction *loadSavedAnalysisAction;
57   QAction *saveMotifListAction;
58   QAction *showMussaViewToolbarAction;
59   QAction *toggleMotifsAction;
60   QAction *whatsThisAction;
61   QAction *saveOpenGlPixmapAction;
62
63   //! initialze the actions
64   void setupActions();
65   //! initialize this windows menu object
66   void setupMainMenu();
67   //! stub function to fill in QActions
68   void NotImplementedBox();
69 };
70
71 #endif