MussaRef analysis;
//! the default directory we should loand and save from
boost::shared_ptr<QDir> default_dir;
- std::list<boost::shared_ptr<MussaAlignedWindow> > aligned_windows;
+ std::list<MussaAlignedWindowRef> aligned_windows;
MotifEditor *motif_editor;
MussaSetupDialog *setup_analysis_dialog;
SubanalysisWindowRef subanalysis_window;
//! update annotations?
void updateAnnotations();
};
-
#endif
rubberBand(0),
popupMenu(new QMenu(this)),
copySelectedSequenceAsFastaAction(new QAction(tr("&Copy as Fasta"), this)),
- copySelectedSequenceAsStringAction(new QAction(tr("&Copy Sequence"), this))
+ copySelectedSequenceAsStringAction(new QAction(tr("&Copy Sequence"), this)),
+ editSequencePropertiesAction(new QAction(tr("Sequence &Properties"), this))
{
connect(copySelectedSequenceAsFastaAction, SIGNAL(triggered()),
this, SLOT(copySelectedSequenceAsFasta()));
connect(copySelectedSequenceAsStringAction, SIGNAL(triggered()),
this, SLOT(copySelectedSequenceAsString()));
popupMenu->addAction(copySelectedSequenceAsStringAction);
+ connect(editSequencePropertiesAction, SIGNAL(triggered()),
+ this, SLOT(editSequenceProperties()));
+ popupMenu->addAction(editSequencePropertiesAction);
}
SequenceBrowser::SequenceBrowser(const SequenceBrowser& sb, QWidget *parent)
popupMenu->popup(point);
}
+void SequenceBrowser::editSequenceProperties()
+{
+ PropertiesWindowRef new_properties(new PropertiesWindow(sequences()));
+ properties = new_properties;
+ properties->show();
+}
+
void SequenceBrowser::push_sequence(boost::shared_ptr<Sequence> s)
{
GlSeqBrowser::push_sequence(s);
#include "alg/mussa.hpp"
#include "alg/glsequence.hpp"
#include "alg/glseqbrowser.hpp"
+#include "qui/seqbrowser/seqproperties/PropertiesWindow.hpp"
class QMouseEvent;
class QRubberBand;
void copySelectedSequenceAsFasta();
void copySelectedSequenceAsString();
void displayContextMenu(const QPoint &p);
+ void editSequenceProperties();
void setClipPlane(int z);
//! set the center of the current viewport
void setViewportCenter(float x);
QMenu *popupMenu;
QAction *copySelectedSequenceAsFastaAction;
QAction *copySelectedSequenceAsStringAction;
+ QAction *editSequencePropertiesAction;
+ PropertiesWindowRef properties;
};
#endif