test motif editor
[mussa.git] / qui / motif_editor / MotifEditor.hpp
index e8055bb264b09ccccdac50e81666a1bdd07c6297..1cc8a2fff846e16050d77371550b2c5b622fc37b 100644 (file)
@@ -24,17 +24,25 @@ public:
   //! resize cells
   void updateView();
   
+  //! return the analysis, intended for testing
+  MussaRef get_analysis() { return analysis; }
+  //! return the internal model used by the editor
+  //! this is mostly intended for testing
+  MotifModel *get_model() { return model; }
+   
 public slots:
   //! create model and attach it to the table view  
   void updateModel();
-  //! called to apply motif changes
-  void updateMotifs();
+  //! called to apply motif changes to the analysis
+  void updateAnalysisMotifs();
 
 signals:
   //! emitted when the use has applied the motif changes
   void changedMotifs();
   
 private:
+  //! initialize all our gui widgets
+  void setupWidgets();
   MussaRef analysis;
 
   QPushButton *applyButton;