/** * Attaches this tool to the toolpad * * @param toolpad * * @return QAction* */ QAction *StatisticsTool::toolPadAction(ToolPad *toolpad) { QAction *action = new QAction("Statistics", toolpad); action->setIcon(QPixmap(toolIconDir() + "/statistics.png")); action->setToolTip("Statistics"); QObject::connect(action, SIGNAL(activated()), p_dialog, SLOT(show())); QString text = ""; action->setWhatsThis(text); return action; }
/** * Configure the QAction for this tool. * * @param toolpad * * @return QAction* */ QAction *ScatterPlotTool::toolPadAction(ToolPad *toolpad) { p_action = new QAction(toolpad); p_action->setIcon(QPixmap(toolIconDir()+"/scatterplot.png")); p_action->setToolTip("Scatter Plot"); //action->setShortcut(Qt::Key_C); QObject::connect(p_action,SIGNAL(activated()),p_mainWindow,SLOT(showConfig())); QString text = "<b>Function:</b> Compare two bands of same image or of a different image. \ <p><b>Shortcut:</b>nonexsistant right now</p> "; p_action->setWhatsThis(text); return p_action; }