Commit 9515a3ee authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Use newer QAction::triggered signal in Mantid Qt code

Removes warnings about using a COMPAT signal on startup.
parent fcc1d020
......@@ -528,16 +528,17 @@ void ApplicationWindow::init(bool factorySettings, const QStringList &args) {
actionNextWindow = new QAction(QIcon(getQPixmap("next_xpm")),
tr("&Next", "next window"), this);
actionNextWindow->setShortcut(tr("F5", "next window shortcut"));
connect(actionNextWindow, SIGNAL(activated()), d_workspace,
connect(actionNextWindow, SIGNAL(triggered()), d_workspace,
SLOT(activateNextSubWindow()));
 
actionPrevWindow = new QAction(QIcon(getQPixmap("prev_xpm")),
tr("&Previous", "previous window"), this);
actionPrevWindow->setShortcut(tr("F6", "previous window shortcut"));
connect(actionPrevWindow, SIGNAL(activated()), d_workspace,
connect(actionPrevWindow, SIGNAL(triggered()), d_workspace,
SLOT(activatePreviousSubWindow()));
 
connect(tablesDepend, SIGNAL(activated(int)), this, SLOT(showTable(int)));
connect(tablesDepend, SIGNAL(triggered(QAction *)), this,
SLOT(showTable(QAction *)));
 
connect(this, SIGNAL(modified()), this, SLOT(modifiedProject()));
connect(d_workspace, SIGNAL(subWindowActivated(QMdiSubWindow *)), this,
......@@ -7447,7 +7448,7 @@ void ApplicationWindow::showCurveContextMenu(int curveKey) {
curveMenu.addSeparator();
if (g->activeTool()->rtti() == PlotToolInterface::Rtti_RangeSelector) {
QAction *act = new QAction(tr("Set Display Range"), this);
connect(act, SIGNAL(activated()),
connect(act, SIGNAL(triggered()),
dynamic_cast<RangeSelectorTool *>(g->activeTool()),
SLOT(setCurveRange()));
curveMenu.addAction(act);
......@@ -9559,7 +9560,7 @@ void ApplicationWindow::interfaceMenuAboutToShow() {
// Allow user to customise categories.
QAction *customiseCategoriesAction =
new QAction(tr("Add/Remove Categories"), this);
connect(customiseCategoriesAction, SIGNAL(activated()), this,
connect(customiseCategoriesAction, SIGNAL(triggered()), this,
SLOT(showInterfaceCategoriesDialog()));
interfaceMenu->addAction(customiseCategoriesAction);
}
......@@ -9975,8 +9976,7 @@ void ApplicationWindow::showWindowPopupMenu(const QPoint &p) {
}
}
 
void ApplicationWindow::showTable(int i) {
auto selectedAction = tablesDepend->actions().at(i);
void ApplicationWindow::showTable(QAction *selectedAction) {
Table *t = table(selectedAction->text());
if (!t)
return;
......@@ -10133,12 +10133,12 @@ void ApplicationWindow::showGraphContextMenu() {
auto normalization = cm.addMenu(tr("&Normalization"));
auto noNorm = new QAction(tr("N&one"), normalization);
noNorm->setCheckable(true);
connect(noNorm, SIGNAL(activated()), ag, SLOT(noNormalization()));
connect(noNorm, SIGNAL(triggered()), ag, SLOT(noNormalization()));
normalization->addAction(noNorm);
 
auto binNorm = new QAction(tr("&Bin Width"), normalization);
binNorm->setCheckable(true);
connect(binNorm, SIGNAL(activated()), ag, SLOT(binWidthNormalization()));
connect(binNorm, SIGNAL(triggered()), ag, SLOT(binWidthNormalization()));
normalization->addAction(binNorm);
 
auto normalizationActions = new QActionGroup(this);
......@@ -10152,17 +10152,17 @@ void ApplicationWindow::showGraphContextMenu() {
auto normMD = cm.addMenu("MD &Normalization");
auto noNormMD = new QAction(tr("N&one"), normMD);
noNormMD->setCheckable(true);
connect(noNormMD, SIGNAL(activated()), ag, SLOT(noNormalizationMD()));
connect(noNormMD, SIGNAL(triggered()), ag, SLOT(noNormalizationMD()));
normMD->addAction(noNormMD);
 
auto volNormMD = new QAction(tr("&Volume"), normMD);
volNormMD->setCheckable(true);
connect(volNormMD, SIGNAL(activated()), ag, SLOT(volumeNormalizationMD()));
connect(volNormMD, SIGNAL(triggered()), ag, SLOT(volumeNormalizationMD()));
normMD->addAction(volNormMD);
 
auto eventsNormMD = new QAction(tr("&Events"), normMD);
eventsNormMD->setCheckable(true);
connect(eventsNormMD, SIGNAL(activated()), ag,
connect(eventsNormMD, SIGNAL(triggered()), ag,
SLOT(numEventsNormalizationMD()));
normMD->addAction(eventsNormMD);
 
......@@ -11079,13 +11079,13 @@ void ApplicationWindow::initPlot3DToolBar() {
actionResetRotation = new QAction(this);
actionResetRotation->setCheckable(false);
actionResetRotation->setIcon(getQPixmap("reset_rotation_xpm"));
connect(actionResetRotation, SIGNAL(activated()), this,
connect(actionResetRotation, SIGNAL(triggered()), this,
SLOT(resetRotation()));
 
actionFitFrame = new QAction(this);
actionFitFrame->setCheckable(false);
actionFitFrame->setIcon(getQPixmap("fit_frame_xpm"));
connect(actionFitFrame, SIGNAL(activated()), this, SLOT(fitFrameToLayer()));
connect(actionFitFrame, SIGNAL(triggered()), this, SLOT(fitFrameToLayer()));
 
// plot style actions
plotstyle = new QActionGroup(this);
......@@ -11958,127 +11958,127 @@ void ApplicationWindow::setPlot3DOptions() {
 
void ApplicationWindow::createActions() {
actionCustomActionDialog = new QAction(tr("Manage Custom Menus..."), this);
connect(actionCustomActionDialog, SIGNAL(activated()), this,
connect(actionCustomActionDialog, SIGNAL(triggered()), this,
SLOT(showCustomActionDialog()));
 
actionManageDirs = new QAction(QIcon(getQPixmap("managefolders_xpm")),
tr("Manage User Directories"), this);
connect(actionManageDirs, SIGNAL(activated()), this,
connect(actionManageDirs, SIGNAL(triggered()), this,
SLOT(showUserDirectoryDialog()));
 
actionFirstTimeSetup = new QAction(tr("First Time Setup"), this);
connect(actionFirstTimeSetup, SIGNAL(activated()), this,
connect(actionFirstTimeSetup, SIGNAL(triggered()), this,
SLOT(showFirstTimeSetup()));
 
actionNewProject =
new QAction(QIcon(":/NewProject16x16.png"), tr("New &Project"), this);
actionNewProject->setShortcut(tr("Ctrl+N"));
connect(actionNewProject, SIGNAL(activated()), this, SLOT(newProject()));
connect(actionNewProject, SIGNAL(triggered()), this, SLOT(newProject()));
 
actionSaveProject =
new QAction(QIcon(":/SaveProject16x16.png"), tr("Save &Project"), this);
actionSaveProject->setShortcut(tr("Ctrl+Shift+S"));
connect(actionSaveProject, SIGNAL(activated()), this, SLOT(saveProject()));
connect(actionSaveProject, SIGNAL(triggered()), this, SLOT(saveProject()));
 
actionSaveFile = new QAction(QIcon(getQPixmap("filesave_nexus_xpm")),
tr("Save Nexus &File"), this);
actionSaveFile->setShortcut(tr("Ctrl+S"));
connect(actionSaveFile, SIGNAL(activated()), this, SLOT(savetoNexusFile()));
connect(actionSaveFile, SIGNAL(triggered()), this, SLOT(savetoNexusFile()));
 
actionNewGraph =
new QAction(QIcon(getQPixmap("new_graph_xpm")), tr("New &Graph"), this);
actionNewGraph->setShortcut(tr("Ctrl+G"));
connect(actionNewGraph, SIGNAL(activated()), this, SLOT(newGraph()));
connect(actionNewGraph, SIGNAL(triggered()), this, SLOT(newGraph()));
 
actionNewNote =
new QAction(QIcon(getQPixmap("new_note_xpm")), tr("New &Note"), this);
connect(actionNewNote, SIGNAL(activated()), this, SLOT(newNote()));
connect(actionNewNote, SIGNAL(triggered()), this, SLOT(newNote()));
 
actionNewTable =
new QAction(QIcon(getQPixmap("table_xpm")), tr("New &Table"), this);
actionNewTable->setShortcut(tr("Ctrl+T"));
connect(actionNewTable, SIGNAL(activated()), this, SLOT(newTable()));
connect(actionNewTable, SIGNAL(triggered()), this, SLOT(newTable()));
 
actionNewTiledWindow = new QAction(QIcon(getQPixmap("tiledwindow_xpm")),
tr("New Tiled &Window"), this);
actionNewTiledWindow->setShortcut(tr("Ctrl+Shift+T"));
connect(actionNewTiledWindow, SIGNAL(activated()), this,
connect(actionNewTiledWindow, SIGNAL(triggered()), this,
SLOT(newTiledWindow()));
 
actionNewMatrix =
new QAction(QIcon(getQPixmap("new_matrix_xpm")), tr("New &Matrix"), this);
actionNewMatrix->setShortcut(tr("Ctrl+M"));
connect(actionNewMatrix, SIGNAL(activated()), this, SLOT(newMatrix()));
connect(actionNewMatrix, SIGNAL(triggered()), this, SLOT(newMatrix()));
 
actionNewFunctionPlot = new QAction(QIcon(getQPixmap("newF_xpm")),
tr("New &Function Plot"), this);
connect(actionNewFunctionPlot, SIGNAL(activated()), this,
connect(actionNewFunctionPlot, SIGNAL(triggered()), this,
SLOT(functionDialog()));
 
actionNewSurfacePlot = new QAction(QIcon(getQPixmap("newFxy_xpm")),
tr("New 3D &Surface Plot"), this);
actionNewSurfacePlot->setShortcut(tr("Ctrl+ALT+Z"));
connect(actionNewSurfacePlot, SIGNAL(activated()), this,
connect(actionNewSurfacePlot, SIGNAL(triggered()), this,
SLOT(newSurfacePlot()));
 
actionOpenProj =
new QAction(QIcon(":/LoadProject16x16.png"), tr("&Project"), this);
actionOpenProj->setShortcut(tr("Ctrl+Shift+O"));
connect(actionOpenProj, SIGNAL(activated()), this, SLOT(open()));
connect(actionOpenProj, SIGNAL(triggered()), this, SLOT(open()));
 
actionLoadFile =
new QAction(QIcon(":/Open-icon16x16.png"), tr("Data File"), this);
actionLoadFile->setShortcut(tr("Ctrl+Shift+F"));
connect(actionLoadFile, SIGNAL(activated()), this, SLOT(loadDataFile()));
connect(actionLoadFile, SIGNAL(triggered()), this, SLOT(loadDataFile()));
 
actionLoadImage = new QAction(tr("Open Image &File"), this);
actionLoadImage->setShortcut(tr("Ctrl+I"));
connect(actionLoadImage, SIGNAL(activated()), this, SLOT(loadImage()));
connect(actionLoadImage, SIGNAL(triggered()), this, SLOT(loadImage()));
 
actionScriptRepo = new QAction(tr("Script Repositor&y"), this);
connect(actionScriptRepo, SIGNAL(activated()), this, SLOT(loadScriptRepo()));
connect(actionScriptRepo, SIGNAL(triggered()), this, SLOT(loadScriptRepo()));
 
actionImportImage = new QAction(tr("Import I&mage..."), this);
connect(actionImportImage, SIGNAL(activated()), this, SLOT(importImage()));
connect(actionImportImage, SIGNAL(triggered()), this, SLOT(importImage()));
 
actionSaveProjectAs = new QAction(QIcon(":/SaveProject16x16.png"),
tr("Save Project &As..."), this);
connect(actionSaveProjectAs, SIGNAL(activated()), this,
connect(actionSaveProjectAs, SIGNAL(triggered()), this,
SLOT(saveProjectAs()));
actionSaveProjectAs->setEnabled(false);
 
actionSaveNote = new QAction(tr("Save Note As..."), this);
connect(actionSaveNote, SIGNAL(activated()), this, SLOT(saveNoteAs()));
connect(actionSaveNote, SIGNAL(triggered()), this, SLOT(saveNoteAs()));
 
actionLoad = new QAction(QIcon(getQPixmap("import_xpm")),
tr("&Import ASCII..."), this);
connect(actionLoad, SIGNAL(activated()), this, SLOT(importASCII()));
connect(actionLoad, SIGNAL(triggered()), this, SLOT(importASCII()));
 
actionCopyWindow =
new QAction(QIcon(getQPixmap("duplicate_xpm")), tr("&Duplicate"), this);
connect(actionCopyWindow, SIGNAL(activated()), this, SLOT(clone()));
connect(actionCopyWindow, SIGNAL(triggered()), this, SLOT(clone()));
 
actionCutSelection =
new QAction(QIcon(getQPixmap("cut_xpm")), tr("Cu&t Selection"), this);
actionCutSelection->setShortcut(tr("Ctrl+X"));
connect(actionCutSelection, SIGNAL(activated()), this, SLOT(cutSelection()));
connect(actionCutSelection, SIGNAL(triggered()), this, SLOT(cutSelection()));
 
actionCopySelection =
new QAction(QIcon(getQPixmap("copy_xpm")), tr("&Copy Selection"), this);
actionCopySelection->setShortcut(tr("Ctrl+C"));
connect(actionCopySelection, SIGNAL(activated()), this,
connect(actionCopySelection, SIGNAL(triggered()), this,
SLOT(copySelection()));
 
actionPasteSelection =
new QAction(QIcon(getQPixmap("paste_xpm")), tr("&Paste Selection"), this);
actionPasteSelection->setShortcut(tr("Ctrl+V"));
connect(actionPasteSelection, SIGNAL(activated()), this,
connect(actionPasteSelection, SIGNAL(triggered()), this,
SLOT(pasteSelection()));
 
actionClearSelection = new QAction(QIcon(getQPixmap("erase_xpm")),
tr("&Delete Selection"), this);
actionClearSelection->setShortcut(tr("Del", "delete key"));
connect(actionClearSelection, SIGNAL(activated()), this,
connect(actionClearSelection, SIGNAL(triggered()), this,
SLOT(clearSelection()));
 
actionShowExplorer = explorerWindow->toggleViewAction();
......@@ -12098,7 +12098,7 @@ void ApplicationWindow::createActions() {
actionShowScriptWindow->setShortcut(tr("F3"));
#endif
actionShowScriptWindow->setCheckable(true);
connect(actionShowScriptWindow, SIGNAL(activated()), this,
connect(actionShowScriptWindow, SIGNAL(triggered()), this,
SLOT(showScriptWindow()));
 
actionShowScriptInterpreter = new QAction(
......@@ -12110,744 +12110,744 @@ void ApplicationWindow::createActions() {
actionShowScriptInterpreter->setShortcut(tr("F4"));
#endif
actionShowScriptInterpreter->setCheckable(true);
connect(actionShowScriptInterpreter, SIGNAL(activated()), this,
connect(actionShowScriptInterpreter, SIGNAL(triggered()), this,
SLOT(showScriptInterpreter()));
#endif
 
actionAddLayer =
new QAction(QIcon(getQPixmap("newLayer_xpm")), tr("Add La&yer"), this);
actionAddLayer->setShortcut(tr("Alt+L"));
connect(actionAddLayer, SIGNAL(activated()), this, SLOT(addLayer()));
connect(actionAddLayer, SIGNAL(triggered()), this, SLOT(addLayer()));
 
actionShowLayerDialog = new QAction(QIcon(getQPixmap("arrangeLayers_xpm")),
tr("Arran&ge Layers"), this);
actionShowLayerDialog->setShortcut(tr("Alt+A"));
connect(actionShowLayerDialog, SIGNAL(activated()), this,
connect(actionShowLayerDialog, SIGNAL(triggered()), this,
SLOT(showLayerDialog()));
 
actionAutomaticLayout = new QAction(QIcon(getQPixmap("auto_layout_xpm")),
tr("Automatic Layout"), this);
connect(actionAutomaticLayout, SIGNAL(activated()), this,
connect(actionAutomaticLayout, SIGNAL(triggered()), this,
SLOT(autoArrangeLayers()));
 
actionExportGraph = new QAction(tr("&Current"), this);
actionExportGraph->setShortcut(tr("Alt+G"));
connect(actionExportGraph, SIGNAL(activated()), this, SLOT(exportGraph()));
connect(actionExportGraph, SIGNAL(triggered()), this, SLOT(exportGraph()));
 
actionExportAllGraphs = new QAction(tr("&All"), this);
actionExportAllGraphs->setShortcut(tr("Alt+X"));
connect(actionExportAllGraphs, SIGNAL(activated()), this,
connect(actionExportAllGraphs, SIGNAL(triggered()), this,
SLOT(exportAllGraphs()));
 
actionExportPDF =
new QAction(QIcon(getQPixmap("pdf_xpm")), tr("&Export PDF"), this);
actionExportPDF->setShortcut(tr("Ctrl+Alt+P"));
connect(actionExportPDF, SIGNAL(activated()), this, SLOT(exportPDF()));
connect(actionExportPDF, SIGNAL(triggered()), this, SLOT(exportPDF()));
 
actionPrint =
new QAction(QIcon(getQPixmap("fileprint_xpm")), tr("&Print"), this);
actionPrint->setShortcut(tr("Ctrl+P"));
connect(actionPrint, SIGNAL(activated()), this, SLOT(print()));
connect(actionPrint, SIGNAL(triggered()), this, SLOT(print()));
 
actionPrintAllPlots = new QAction(tr("Print All Plo&ts"), this);
connect(actionPrintAllPlots, SIGNAL(activated()), this,
connect(actionPrintAllPlots, SIGNAL(triggered()), this,
SLOT(printAllPlots()));
 
actionShowExportASCIIDialog = new QAction(tr("E&xport ASCII"), this);
connect(actionShowExportASCIIDialog, SIGNAL(activated()), this,
connect(actionShowExportASCIIDialog, SIGNAL(triggered()), this,
SLOT(showExportASCIIDialog()));
 
actionCloseAllWindows =
new QAction(QIcon(getQPixmap("quit_xpm")), tr("&Quit"), this);
actionCloseAllWindows->setShortcut(tr("Ctrl+Q"));
connect(actionCloseAllWindows, SIGNAL(activated()), qApp,
connect(actionCloseAllWindows, SIGNAL(triggered()), qApp,
SLOT(closeAllWindows()));
 
actionDeleteFitTables = new QAction(QIcon(getQPixmap("close_xpm")),
tr("Delete &Fit Tables"), this);
connect(actionDeleteFitTables, SIGNAL(activated()), this,
connect(actionDeleteFitTables, SIGNAL(triggered()), this,
SLOT(deleteFitTables()));
 
actionShowPlotWizard =
new QAction(QIcon(getQPixmap("wizard_xpm")), tr("Plot &Wizard"), this);
actionShowPlotWizard->setShortcut(tr("Ctrl+Alt+W"));
connect(actionShowPlotWizard, SIGNAL(activated()), this,
connect(actionShowPlotWizard, SIGNAL(triggered()), this,
SLOT(showPlotWizard()));
 
actionShowConfigureDialog =
new QAction(QIcon(":/configure.png"), tr("&Preferences..."), this);
connect(actionShowConfigureDialog, SIGNAL(activated()), this,
connect(actionShowConfigureDialog, SIGNAL(triggered()), this,
SLOT(showPreferencesDialog()));
 
actionShowCurvesDialog = new QAction(QIcon(getQPixmap("curves_xpm")),
tr("Add/Remove &Curve..."), this);
actionShowCurvesDialog->setShortcut(tr("Ctrl+Alt+C"));
connect(actionShowCurvesDialog, SIGNAL(activated()), this,
connect(actionShowCurvesDialog, SIGNAL(triggered()), this,
SLOT(showCurvesDialog()));
 
actionAddErrorBars = new QAction(QIcon(getQPixmap("errors_xpm")),
tr("Add &Error Bars..."), this);
actionAddErrorBars->setShortcut(tr("Ctrl+Alt+E"));
connect(actionAddErrorBars, SIGNAL(activated()), this, SLOT(addErrorBars()));
connect(actionAddErrorBars, SIGNAL(triggered()), this, SLOT(addErrorBars()));
 
actionRemoveErrorBars = new QAction(QIcon(getQPixmap("errors_remove_xpm")),
tr("&Remove Error Bars..."), this);
actionRemoveErrorBars->setShortcut(tr("Ctrl+Alt+R"));
connect(actionRemoveErrorBars, SIGNAL(activated()), this,
connect(actionRemoveErrorBars, SIGNAL(triggered()), this,
SLOT(removeErrorBars()));
 
actionAddFunctionCurve =
new QAction(QIcon(getQPixmap("fx_xpm")), tr("Add &Function..."), this);
actionAddFunctionCurve->setShortcut(tr("Ctrl+Alt+F"));
connect(actionAddFunctionCurve, SIGNAL(activated()), this,
connect(actionAddFunctionCurve, SIGNAL(triggered()), this,
SLOT(addFunctionCurve()));
 
actionUnzoom = new QAction(QIcon(getQPixmap("unzoom_xpm")),
tr("&Rescale to Show All"), this);
actionUnzoom->setShortcut(tr("Ctrl+Shift+R"));
connect(actionUnzoom, SIGNAL(activated()), this, SLOT(setAutoScale()));
connect(actionUnzoom, SIGNAL(triggered()), this, SLOT(setAutoScale()));
 
actionNewLegend =
new QAction(QIcon(getQPixmap("legend_xpm")), tr("New &Legend"), this);
actionNewLegend->setShortcut(tr("Ctrl+Alt+L"));
connect(actionNewLegend, SIGNAL(activated()), this, SLOT(newLegend()));
connect(actionNewLegend, SIGNAL(triggered()), this, SLOT(newLegend()));
 
actionTimeStamp =
new QAction(QIcon(getQPixmap("clock_xpm")), tr("Add Time &Stamp"), this);
actionTimeStamp->setShortcut(tr("Ctrl+ALT+S"));
connect(actionTimeStamp, SIGNAL(activated()), this, SLOT(addTimeStamp()));
connect(actionTimeStamp, SIGNAL(triggered()), this, SLOT(addTimeStamp()));
 
actionAddImage =
new QAction(QIcon(getQPixmap("monalisa_xpm")), tr("Add &Image"), this);
actionAddImage->setShortcut(tr("Ctrl+Alt+I"));
connect(actionAddImage, SIGNAL(activated()), this, SLOT(addImage()));
connect(actionAddImage, SIGNAL(triggered()), this, SLOT(addImage()));
 
actionPlotL = new QAction(QIcon(getQPixmap("lPlot_xpm")), tr("&Line"), this);
connect(actionPlotL, SIGNAL(activated()), this, SLOT(plotL()));
connect(actionPlotL, SIGNAL(triggered()), this, SLOT(plotL()));
 
actionPlotP =
new QAction(QIcon(getQPixmap("pPlot_xpm")), tr("&Scatter"), this);
connect(actionPlotP, SIGNAL(activated()), this, SLOT(plotP()));
connect(actionPlotP, SIGNAL(triggered()), this, SLOT(plotP()));
 
actionPlotLP =
new QAction(QIcon(getQPixmap("lpPlot_xpm")), tr("Line + S&ymbol"), this);
connect(actionPlotLP, SIGNAL(activated()), this, SLOT(plotLP()));
connect(actionPlotLP, SIGNAL(triggered()), this, SLOT(plotLP()));
 
actionPlotVerticalDropLines = new QAction(QIcon(getQPixmap("dropLines_xpm")),
tr("Vertical &Drop Lines"), this);
connect(actionPlotVerticalDropLines, SIGNAL(activated()), this,
connect(actionPlotVerticalDropLines, SIGNAL(triggered()), this,
SLOT(plotVerticalDropLines()));
 
actionPlotSpline =
new QAction(QIcon(getQPixmap("spline_xpm")), tr("&Spline"), this);
connect(actionPlotSpline, SIGNAL(activated()), this, SLOT(plotSpline()));
connect(actionPlotSpline, SIGNAL(triggered()), this, SLOT(plotSpline()));
 
actionPlotHorSteps =
new QAction(getQPixmap("hor_steps_xpm"), tr("&Horizontal Steps"), this);
connect(actionPlotHorSteps, SIGNAL(activated()), this, SLOT(plotHorSteps()));
connect(actionPlotHorSteps, SIGNAL(triggered()), this, SLOT(plotHorSteps()));
 
actionPlotVertSteps = new QAction(QIcon(getQPixmap("vert_steps_xpm")),
tr("&Vertical Steps"), this);
connect(actionPlotVertSteps, SIGNAL(activated()), this,
connect(actionPlotVertSteps, SIGNAL(triggered()), this,
SLOT(plotVertSteps()));
 
actionPlotVerticalBars =
new QAction(QIcon(getQPixmap("vertBars_xpm")), tr("&Columns"), this);
connect(actionPlotVerticalBars, SIGNAL(activated()), this,
connect(actionPlotVerticalBars, SIGNAL(triggered()), this,
SLOT(plotVerticalBars()));
 
actionPlotHorizontalBars =
new QAction(QIcon(getQPixmap("hBars_xpm")), tr("&Rows"), this);
connect(actionPlotHorizontalBars, SIGNAL(activated()), this,
connect(actionPlotHorizontalBars, SIGNAL(triggered()), this,
SLOT(plotHorizontalBars()));
 
actionPlotArea =
new QAction(QIcon(getQPixmap("area_xpm")), tr("&Area"), this);
connect(actionPlotArea, SIGNAL(activated()), this, SLOT(plotArea()));
connect(actionPlotArea, SIGNAL(triggered()), this, SLOT(plotArea()));
 
actionPlotPie = new QAction(QIcon(getQPixmap("pie_xpm")), tr("&Pie"), this);
connect(actionPlotPie, SIGNAL(activated()), this, SLOT(plotPie()));
connect(actionPlotPie, SIGNAL(triggered()), this, SLOT(plotPie()));
 
actionPlotVectXYAM =
new QAction(QIcon(getQPixmap("vectXYAM_xpm")), tr("Vectors XY&AM"), this);
connect(actionPlotVectXYAM, SIGNAL(activated()), this, SLOT(plotVectXYAM()));
connect(actionPlotVectXYAM, SIGNAL(triggered()), this, SLOT(plotVectXYAM()));
 
actionPlotVectXYXY = new QAction(QIcon(getQPixmap("vectXYXY_xpm")),
tr("&Vectors &XYXY"), this);
connect(actionPlotVectXYXY, SIGNAL(activated()), this, SLOT(plotVectXYXY()));
connect(actionPlotVectXYXY, SIGNAL(triggered()), this, SLOT(plotVectXYXY()));
 
actionPlotHistogram =
new QAction(QIcon(getQPixmap("histogram_xpm")), tr("&Histogram"), this);
connect(actionPlotHistogram, SIGNAL(activated()), this,
connect(actionPlotHistogram, SIGNAL(triggered()), this,
SLOT(plotHistogram()));
 
actionPlotStackedHistograms = new QAction(
QIcon(getQPixmap("stacked_hist_xpm")), tr("&Stacked Histogram"), this);
connect(actionPlotStackedHistograms, SIGNAL(activated()), this,
connect(actionPlotStackedHistograms, SIGNAL(triggered()), this,
SLOT(plotStackedHistograms()));
 
actionStemPlot =
new QAction(QIcon(":/leaf.png"), tr("Stem-and-&Leaf Plot"), this);
connect(actionStemPlot, SIGNAL(activated()), this, SLOT(newStemPlot()));
connect(actionStemPlot, SIGNAL(triggered()), this, SLOT(newStemPlot()));
 
actionPlot2VerticalLayers = new QAction(QIcon(getQPixmap("panel_v2_xpm")),
tr("&Vertical 2 Layers"), this);
connect(actionPlot2VerticalLayers, SIGNAL(activated()), this,
connect(actionPlot2VerticalLayers, SIGNAL(triggered()), this,
SLOT(plot2VerticalLayers()));
 
actionPlot2HorizontalLayers = new QAction(QIcon(getQPixmap("panel_h2_xpm")),
tr("&Horizontal 2 Layers"), this);
connect(actionPlot2HorizontalLayers, SIGNAL(activated()), this,
connect(actionPlot2HorizontalLayers, SIGNAL(triggered()), this,
SLOT(plot2HorizontalLayers()));
 
actionPlot4Layers =
new QAction(QIcon(getQPixmap("panel_4_xpm")), tr("&4 Layers"), this);
connect(actionPlot4Layers, SIGNAL(activated()), this, SLOT(plot4Layers()));
connect(actionPlot4Layers, SIGNAL(triggered()), this, SLOT(plot4Layers()));
 
actionPlotStackedLayers = new QAction(QIcon(getQPixmap("stacked_xpm")),
tr("&Stacked Layers"), this);
connect(actionPlotStackedLayers, SIGNAL(activated()), this,
connect(actionPlotStackedLayers, SIGNAL(triggered()), this,
SLOT(plotStackedLayers()));
 
actionPlot3DRibbon =
new QAction(QIcon(getQPixmap("ribbon_xpm")), tr("&Ribbon"), this);
connect(actionPlot3DRibbon, SIGNAL(activated()), this, SLOT(plot3DRibbon()));
connect(actionPlot3DRibbon, SIGNAL(triggered()), this, SLOT(plot3DRibbon()));
 
actionPlot3DBars =
new QAction(QIcon(getQPixmap("bars_xpm")), tr("&Bars"), this);
connect(actionPlot3DBars, SIGNAL(activated()), this, SLOT(plot3DBars()));
connect(actionPlot3DBars, SIGNAL(triggered()), this, SLOT(plot3DBars()));
 
actionPlot3DScatter =
new QAction(QIcon(getQPixmap("scatter_xpm")), tr("&Scatter"), this);
connect(actionPlot3DScatter, SIGNAL(activated()), this,
connect(actionPlot3DScatter, SIGNAL(triggered()), this,
SLOT(plot3DScatter()));
 
actionPlot3DTrajectory =
new QAction(QIcon(getQPixmap("trajectory_xpm")), tr("&Trajectory"), this);
connect(actionPlot3DTrajectory, SIGNAL(activated()), this,
connect(actionPlot3DTrajectory, SIGNAL(triggered()), this,
SLOT(plot3DTrajectory()));
 
actionShowColStatistics = new QAction(QIcon(getQPixmap("col_stat_xpm")),
tr("Statistics on &Columns"), this);
connect(actionShowColStatistics, SIGNAL(activated()), this,
connect(actionShowColStatistics, SIGNAL(triggered()), this,
SLOT(showColStatistics()));
 
actionShowRowStatistics = new QAction(QIcon(getQPixmap("stat_rows_xpm")),
tr("Statistics on &Rows"), this);
connect(actionShowRowStatistics, SIGNAL(activated()), this,
connect(actionShowRowStatistics, SIGNAL(triggered()), this,
SLOT(showRowStatistics()));
 
actionIntegrate = new QAction(tr("&Integrate"), this);
connect(actionIntegrate, SIGNAL(activated()), this, SLOT(integrate()));
connect(actionIntegrate, SIGNAL(triggered()), this, SLOT(integrate()));
 
actionShowIntDialog = new QAction(tr("Integr&ate Function..."), this);
connect(actionShowIntDialog, SIGNAL(activated()), this,
connect(actionShowIntDialog, SIGNAL(triggered()), this,
SLOT(showIntegrationDialog()));
 
actionInterpolate = new QAction(tr("Inte&rpolate ..."), this);
connect(actionInterpolate, SIGNAL(activated()), this,
connect(actionInterpolate, SIGNAL(triggered()), this,
SLOT(showInterpolationDialog()));
 
actionLowPassFilter = new QAction(tr("&Low Pass..."), this);
connect(actionLowPassFilter, SIGNAL(activated()), this,
connect(actionLowPassFilter, SIGNAL(triggered()), this,
SLOT(lowPassFilterDialog()));
 
actionHighPassFilter = new QAction(tr("&High Pass..."), this);
connect(actionHighPassFilter, SIGNAL(activated()), this,
connect(actionHighPassFilter, SIGNAL(triggered()), this,
SLOT(highPassFilterDialog()));
 
actionBandPassFilter = new QAction(tr("&Band Pass..."), this);
connect(actionBandPassFilter, SIGNAL(activated()), this,
connect(actionBandPassFilter, SIGNAL(triggered()), this,
SLOT(bandPassFilterDialog()));
 
actionBandBlockFilter = new QAction(tr("&Band Block..."), this);
connect(actionBandBlockFilter, SIGNAL(activated()), this,
connect(actionBandBlockFilter, SIGNAL(triggered()), this,
SLOT(bandBlockFilterDialog()));
 
actionFFT = new QAction(tr("&FFT..."), this);
connect(actionFFT, SIGNAL(activated()), this, SLOT(showFFTDialog()));
connect(actionFFT, SIGNAL(triggered()), this, SLOT(showFFTDialog()));
 
actionSmoothSavGol = new QAction(tr("&Savitzky-Golay..."), this);
connect(actionSmoothSavGol, SIGNAL(activated()), this,
connect(actionSmoothSavGol, SIGNAL(triggered()), this,
SLOT(showSmoothSavGolDialog()));
 
actionSmoothFFT = new QAction(tr("&FFT Filter..."), this);
connect(actionSmoothFFT, SIGNAL(activated()), this,
connect(actionSmoothFFT, SIGNAL(triggered()), this,
SLOT(showSmoothFFTDialog()));
 
actionSmoothAverage = new QAction(tr("Moving Window &Average..."), this);
connect(actionSmoothAverage, SIGNAL(activated()), this,
connect(actionSmoothAverage, SIGNAL(triggered()), this,
SLOT(showSmoothAverageDialog()));
 
actionDifferentiate = new QAction(tr("&Differentiate"), this);
connect(actionDifferentiate, SIGNAL(activated()), this,
connect(actionDifferentiate, SIGNAL(triggered()), this,
SLOT(differentiate()));
 
actionFitLinear = new QAction(tr("Fit &Linear"), this);
connect(actionFitLinear, SIGNAL(activated()), this, SLOT(fitLinear()));
connect(actionFitLinear, SIGNAL(triggered()), this, SLOT(fitLinear()));
 
actionShowFitPolynomDialog = new QAction(tr("Fit &Polynomial ..."), this);
connect(actionShowFitPolynomDialog, SIGNAL(activated()), this,
connect(actionShowFitPolynomDialog, SIGNAL(triggered()), this,
SLOT(showFitPolynomDialog()));
 
actionShowExpDecayDialog = new QAction(tr("&First Order ..."), this);
connect(actionShowExpDecayDialog, SIGNAL(activated()), this,
connect(actionShowExpDecayDialog, SIGNAL(triggered()), this,
SLOT(showExpDecayDialog()));
 
actionShowTwoExpDecayDialog = new QAction(tr("&Second Order ..."), this);
connect(actionShowTwoExpDecayDialog, SIGNAL(activated()), this,
connect(actionShowTwoExpDecayDialog, SIGNAL(triggered()), this,
SLOT(showTwoExpDecayDialog()));
 
actionShowExpDecay3Dialog = new QAction(tr("&Third Order ..."), this);
connect(actionShowExpDecay3Dialog, SIGNAL(activated()), this,
connect(actionShowExpDecay3Dialog, SIGNAL(triggered()), this,
SLOT(showExpDecay3Dialog()));
 
actionFitExpGrowth = new QAction(tr("Fit Exponential Gro&wth ..."), this);
connect(actionFitExpGrowth, SIGNAL(activated()), this,
connect(actionFitExpGrowth, SIGNAL(triggered()), this,
SLOT(showExpGrowthDialog()));
 
actionFitSigmoidal = new QAction(tr("Fit &Boltzmann (Sigmoidal)"), this);
connect(actionFitSigmoidal, SIGNAL(activated()), this, SLOT(fitSigmoidal()));
connect(actionFitSigmoidal, SIGNAL(triggered()), this, SLOT(fitSigmoidal()));
 
actionFitGauss = new QAction(tr("Fit &Gaussian"), this);
connect(actionFitGauss, SIGNAL(activated()), this, SLOT(fitGauss()));
connect(actionFitGauss, SIGNAL(triggered()), this, SLOT(fitGauss()));
 
actionFitLorentz = new QAction(tr("Fit Lorent&zian"), this);
connect(actionFitLorentz, SIGNAL(activated()), this, SLOT(fitLorentz()));
connect(actionFitLorentz, SIGNAL(triggered()), this, SLOT(fitLorentz()));