1 #ifndef _MUSSAWINDOW_H_
2 #define _MUSSAWINDOW_H_
11 #include "qui/MussaAlignedWindow.hpp"
12 #include "qui/motif_editor/MotifEditor.hpp"
13 #include "qui/seqbrowser/SequenceBrowserWidget.hpp"
14 #include "qui/ThresholdWidget.hpp"
20 class MussaWindow : public QMainWindow
25 MussaWindow(Mussa* analysis=0, QWidget *parent=0);
27 //! switch to a new analysis
28 void setAnalysis(Mussa *new_analysis);
30 //! display an about box, contemplating the politics of the author list
33 //! \defgroup AnalysisFunctions Components related to running analyses
35 //! open a window to collect the information needed to create a new analysis
36 void createNewAnalysis();
37 //! launch a sub analysis
38 void createSubAnalysis();
41 //! \defgroup MotifHandling Handling of motif lists
50 //! load a mussa parameter file (which specifies an analysis to run)
52 //! load a previously run analysis
53 void loadSavedAnalysis();
54 //! set the soft threshold used by the Nway_Path algorithm
55 void setSoftThreshold(int thres);
57 void showMussaToolbar();
59 //! open new window showing our alignment
60 void viewMussaAlignment();
63 void changedAnnotations();
67 std::list<MussaAlignedWindow *> aligned_windows;
68 MotifEditor *motif_editor;
70 // display our wonderful mussa output
71 SequenceBrowserWidget browser;
74 ThresholdWidget threshold;
80 QAction *createNewAnalysisAction;
81 QAction *createSubAnalysisAction;
82 QAction *editMotifsAction;
83 QAction *loadMotifListAction;
84 QAction *loadMupaAction;
85 QAction *loadSavedAnalysisAction;
86 QAction *saveMotifListAction;
87 QAction *showMussaViewToolbarAction;
88 QAction *toggleMotifsAction;
89 QAction *saveBrowserPixmapAction;
90 QAction *whatsThisAction;
91 QAction *viewMussaAlignmentAction;
93 //! initialze the actions
95 //! initialize this windows menu object
97 //! stub function to fill in QActions
98 void NotImplementedBox();
101 //! update the SequenceBrowser with our analysis
102 void updateAnalysis();
103 //! update the view of conserved windows
105 //! update annotations?
106 void updateAnnotations();