#include <QStatusBar>
#include <QString>
#include <QToolBar>
+#include <QWhatsThis>
#include "qui/PathScene.h"
#include "qui/ThresholdWidget.h"
setupMainMenu();
scene = new PathScene(10000, 10, this);
+ //This next setWhatsThis function prevents
+ // a segfault when using WhatsThis feature with
+ // opengl widget.
+ scene->setWhatsThis(tr("Mussa in OpenGL!"));
setCentralWidget(scene);
mussaViewTB = new QToolBar("Path Views");
toggleMotifsAction = new QAction(tr("Toggle Motifs"), this);
connect(toggleMotifsAction, SIGNAL(triggered()),
this, SLOT(toggleMotifs()));
-
toggleMotifsAction->setCheckable(true);
toggleMotifsAction->setIcon(QIcon("icons/motif_icon.png"));
+ toggleMotifsAction->setWhatsThis(tr("Toggle motif annotations on/off\n\n"
+ "You can load motif annotations via "
+ "'File->Load Motif List' menu option."));
+
+ whatsThisAction = QWhatsThis::createAction(this);
+ whatsThisAction->setIcon(QIcon("icons/help.png"));
}
void PathWindow::setupMainMenu()
newMenu->addAction(showMussaViewToolbarAction);
newMenu = menuBar()->addMenu(tr("&Help"));
+ newMenu->addAction(whatsThisAction);
+ newMenu->addSeparator();
newMenu->addAction(aboutAction);
}
QAction *saveMotifListAction;
QAction *showMussaViewToolbarAction;
QAction *toggleMotifsAction;
+ QAction *whatsThisAction;
//! initialze the actions
void setupActions();