manualAssistant(0)
{
init_resources();
+
+ default_dir.reset(new QDir(QDir::home().absolutePath()));
+
setupWidgets();
setupActions();
setupAssistant();
setupMainMenu();
setWindowIcon(QIcon(":/icons/mussa.png"));
- default_dir.reset(new QDir(QDir::home().absolutePath()));
setCentralWidget(browser);
// well updatePosition isn't quite right as we really just need
connect(zoom, SIGNAL(valueChanged(double)),
browser, SLOT(setZoom(double)));
mussaViewTB->addWidget(zoom);
+
+ // Mouse Wheel triggered zooming
+ connect(browser, SIGNAL(mouseWheelZoom(double)),
+ zoom, SLOT(setValue(double)));
// threshold range is set in updateAnalysis
connect(threshold, SIGNAL(thresholdChanged(int)),
if (new_analysis != 0) {
// only switch mussas if we loaded without error
clear();
+ //std::cout << "analysis soft: " << analysis->get_soft_threshold()
+ // << " new analysis soft: " << new_analysis->get_soft_threshold()
+ // << "\n";
analysis.swap(new_analysis);
+ //std::cout << "after swap soft thres: " << analysis->get_soft_threshold()
+ // << "\n";
+ threshold->disconnect(this);
+ threshold->reset(analysis->get_threshold(),
+ analysis->get_window(),
+ analysis->get_soft_threshold());
+ connect(threshold, SIGNAL(thresholdChanged(int)),
+ this, SLOT(setSoftThreshold(int)));
updateTitle();
updateAnalysis();
}
msg += "Version: ";
msg += mussa_version;
msg += "\n";
+ msg += "Qt: ";
+ msg += qVersion();
+ msg += "\n";
msg += "OpenGL: ";
msg += (char *)glGetString(GL_VERSION);
msg += "\n";
void MussaWindow::setSoftThreshold(int value)
{
+ //std::cout << "Soft: " << analysis->get_soft_threshold()
+ // << " Value: " << value << "\n";
if (analysis->get_soft_threshold() != value) {
threshold->setEnabled( false );
+ //std::cout << "Updating!!!!\n";
analysis->set_soft_threshold(value);
analysis->nway();
updateLinks();
update();
threshold->setEnabled( true );
}
+ //else
+ //{
+ // std::cout << "NOT Updating!!!!\n";
+ //}
}
void MussaWindow::showMussaToolbar()
// but it's possible for us to not have had a chance to set out sequences
// yet.
threshold->setRange(analysis->get_threshold(),analysis->get_window());
+ threshold->setBasepairThreshold(analysis->get_soft_threshold());
updateLinks();
browser->zoomOut();
zoom->setValue(browser->zoom());