Added WhatsThis feature to Mussa.
[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   void showMussaToolbar();
43
44 protected:
45   // display our wonderful mussa output
46   PathScene *scene;
47   QToolBar *mussaViewTB;
48   
49   QAction *aboutAction;
50   QAction *closeAction;
51   QAction *createNewAnalysisAction;
52   QAction *createSubAnalysisAction;
53   QAction *loadMotifListAction;
54   QAction *loadMupaAction;
55   QAction *loadSavedAnalysisAction;
56   QAction *saveMotifListAction;
57   QAction *showMussaViewToolbarAction;
58   QAction *toggleMotifsAction;
59   QAction *whatsThisAction;
60
61   //! initialze the actions
62   void setupActions();
63   //! initialize this windows menu object
64   void setupMainMenu();
65   //! stub function to fill in QActions
66   void NotImplementedBox();
67 };
68
69 #endif