1 #ifndef _MUSSAWINDOW_H_
2 #define _MUSSAWINDOW_H_
11 #include "qui/MussaAlignedWindow.hpp"
12 #include "qui/motif_editor/MotifEditor.hpp"
13 #include "qui/mussa_setup_dialog/MussaSetupDialog.hpp"
14 #include "qui/seqbrowser/SequenceBrowserWidget.hpp"
15 #include "qui/ThresholdWidget.hpp"
16 #include "qui/ZoomWidget.hpp"
23 class MussaWindow : public QMainWindow
28 MussaWindow(Mussa* analysis=0, QWidget *parent=0);
31 //! switch to a new analysis
32 void setAnalysis(Mussa *new_analysis);
34 //! display an about box, contemplating the politics of the author list
37 //! \defgroup AnalysisFunctions Components related to running analyses
39 //! open a window to collect the information needed to create a new analysis
40 void createNewAnalysis();
41 //! launch a sub analysis
42 void createSubAnalysis();
45 //! \defgroup MotifHandling Handling of motif lists
54 //! load a mussa parameter file (which specifies an analysis to run)
56 //! load a previously run analysis
57 void loadSavedAnalysis();
58 //! set the soft threshold used by the Nway_Path algorithm
59 void setSoftThreshold(int thres);
61 //! open a new mussa window so one can compare analyses
62 void newMussaWindow();
64 void showMussaToolbar();
66 //! open new window showing our alignment
67 void viewMussaAlignment();
70 void changedAnnotations();
74 std::list<MussaAlignedWindow *> aligned_windows;
75 MotifEditor *motif_editor;
76 MussaSetupDialog setup_analysis_dialog;
78 // display our wonderful mussa output
79 SequenceBrowserWidget browser;
82 ThresholdWidget threshold;
86 QAction *createNewAnalysisAction;
87 QAction *createSubAnalysisAction;
88 QAction *editMotifsAction;
89 QAction *loadMotifListAction;
90 QAction *loadMupaAction;
91 QAction *loadSavedAnalysisAction;
92 QAction *newMussaWindowAction;
93 QAction *saveMotifListAction;
94 QAction *showMussaViewToolbarAction;
95 QAction *toggleMotifsAction;
96 QAction *saveBrowserPixmapAction;
97 QAction *whatsThisAction;
98 QAction *viewMussaAlignmentAction;
100 //! initialze the actions
102 //! initialize this windows menu object
103 void setupMainMenu();
104 //! stub function to fill in QActions
105 void NotImplementedBox();
108 //! update the SequenceBrowser with our analysis
109 void updateAnalysis();
110 //! update the view of conserved windows
112 //! update annotations?
113 void updateAnnotations();