1 #ifndef _MUSSAWINDOW_H_
2 #define _MUSSAWINDOW_H_
8 #include <QProgressDialog>
12 #include "qui/MussaAlignedWindow.hpp"
13 #include "qui/motif_editor/MotifEditor.hpp"
14 #include "qui/mussa_setup_dialog/MussaSetupDialog.hpp"
15 #include "qui/seqbrowser/SequenceBrowserWidget.hpp"
16 #include "qui/ThresholdWidget.hpp"
17 #include "qui/ZoomWidget.hpp"
24 class QAssistantClient;
26 class MussaWindow : public QMainWindow
31 MussaWindow(Mussa* analysis=0, QWidget *parent=0);
34 //! switch to a new analysis
35 void setAnalysis(Mussa *new_analysis);
37 //! display an about box, contemplating the politics of the author list
40 //! \defgroup AnalysisFunctions Components related to running analyses
42 //! open a window to collect the information needed to create a new analysis
43 void createNewAnalysis();
44 //! launch a sub analysis
45 void createSubAnalysis();
48 //! \defgroup MotifHandling Handling of motif lists
57 //! load a mussa parameter file (which specifies an analysis to run)
59 //! load a previously run analysis
60 void loadSavedAnalysis();
61 //! set the soft threshold used by the Nway_Path algorithm
62 void setSoftThreshold(int thres);
63 //! update progress bar
64 void updateProgress(const std::string& description, int cur, int max);
66 //! open a new mussa window so one can compare analyses
67 void newMussaWindow();
69 void showMussaToolbar();
71 //! open new window showing our alignment
72 void viewMussaAlignment();
74 //! display mussagl manual
77 void assistantError(const QString message);
80 void changedAnnotations();
84 std::list<MussaAlignedWindow *> aligned_windows;
85 MotifEditor *motif_editor;
86 MussaSetupDialog setup_analysis_dialog;
88 // display our wonderful mussa output
89 SequenceBrowserWidget browser;
92 ThresholdWidget threshold;
93 QProgressDialog *progress_dialog;
97 QAction *createNewAnalysisAction;
98 QAction *createSubAnalysisAction;
99 QAction *editMotifsAction;
100 QAction *loadMotifListAction;
101 QAction *loadMupaAction;
102 QAction *loadSavedAnalysisAction;
103 QAction *mussaManualAssistantAction;
104 QAction *newMussaWindowAction;
105 QAction *saveMotifListAction;
106 QAction *showMussaViewToolbarAction;
107 QAction *toggleMotifsAction;
108 QAction *saveBrowserPixmapAction;
109 QAction *whatsThisAction;
110 QAction *viewMussaAlignmentAction;
112 QAssistantClient *manualAssistant;
114 //! initialze the actions
116 //! initialize this windows menu object
117 void setupMainMenu();
118 //! initialize assistant client
119 void setupAssistant();
120 //! stub function to fill in QActions
121 void NotImplementedBox();
124 //! update the SequenceBrowser with our analysis
125 void updateAnalysis();
126 //! update the view of conserved windows
128 //! update annotations?
129 void updateAnnotations();