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