1 #ifndef _MUSSAWINDOW_H_
2 #define _MUSSAWINDOW_H_
5 #include <boost/shared_ptr.hpp>
9 #include <QProgressDialog>
13 #include "qui/MussaAlignedWindow.hpp"
14 #include "qui/motif_editor/MotifEditor.hpp"
15 #include "qui/mussa_setup_dialog/MussaSetupDialog.hpp"
16 #include "qui/seqbrowser/SequenceBrowserWidget.hpp"
17 #include "qui/SubanalysisWindow.hpp"
18 #include "qui/ThresholdWidget.hpp"
19 #include "qui/ZoomWidget.hpp"
26 class QAssistantClient;
28 class MussaWindow : public QMainWindow
33 MussaWindow(Mussa* analysis=0, QWidget *parent=0);
35 //! reset any attached window
38 //! switch to a new analysis
39 void setAnalysis(Mussa *new_analysis);
41 //! display an about box, contemplating the politics of the author list
44 //! \defgroup AnalysisFunctions Components related to running analyses
46 //! open a window to collect the information needed to create a new analysis
47 void createNewAnalysis();
48 //! launch a sub analysis
49 void createSubAnalysis();
52 //! \defgroup MotifHandling Handling of motif lists
61 //! load a mussa parameter file (which specifies an analysis to run)
63 //! load a previously run analysis
64 void loadSavedAnalysis();
65 //! set the soft threshold used by the Nway_Path algorithm
66 void setSoftThreshold(int thres);
67 //! update progress bar
68 void updateProgress(const std::string& description, int cur, int max);
70 //! open a new mussa window so one can compare analyses
71 void newMussaWindow();
73 void showMussaToolbar();
75 //! open new window showing our alignment
76 void viewMussaAlignment();
78 //! display mussagl manual
81 void assistantError(const QString message);
84 void changedAnnotations();
88 std::list<boost::shared_ptr<MussaAlignedWindow> > aligned_windows;
89 MotifEditor *motif_editor;
90 MussaSetupDialog setup_analysis_dialog;
91 SubanalysisWindow subanalysis_window;
93 // display our wonderful mussa output
94 SequenceBrowserWidget browser;
97 ThresholdWidget threshold;
98 QProgressDialog *progress_dialog;
100 QAction *aboutAction;
101 QAction *closeAction;
102 QAction *createNewAnalysisAction;
103 QAction *createSubAnalysisAction;
104 QAction *editMotifsAction;
105 QAction *loadMotifListAction;
106 QAction *loadMupaAction;
107 QAction *loadSavedAnalysisAction;
108 QAction *mussaManualAssistantAction;
109 QAction *newMussaWindowAction;
110 QAction *saveMotifListAction;
111 QAction *showMussaViewToolbarAction;
112 QAction *toggleMotifsAction;
113 QAction *saveBrowserPixmapAction;
114 QAction *whatsThisAction;
115 QAction *viewMussaAlignmentAction;
117 QAssistantClient *manualAssistant;
119 //! initialze the actions
121 //! initialize this windows menu object
122 void setupMainMenu();
123 //! initialize assistant client
124 void setupAssistant();
125 //! stub function to fill in QActions
126 void NotImplementedBox();
129 //! update the SequenceBrowser with our analysis
130 void updateAnalysis();
131 //! update the view of conserved windows
133 //! update annotations?
134 void updateAnnotations();