UI Nits: Analysis view menu only

.. need to fix up the event but at least got the code in.
.. still needs the menu implementing.
This commit is contained in:
Mark Liversedge
2013-03-04 22:10:12 +00:00
parent d8bd3fe939
commit 0315dd2008
2 changed files with 20 additions and 0 deletions

View File

@@ -660,8 +660,15 @@ MainWindow::MainWindow(const QDir &home) :
intervalSplitter->setCollapsible(1, false);
analItem = new GcSplitterItem(tr("Activities"), iconFromPNG(":images/sidebar/folder.png"), this);
QAction *moreAnalAct = new QAction(iconFromPNG(":images/sidebar/extra.png"), tr("Menu"), this);
analItem->addAction(moreAnalAct);
connect(moreAnalAct, SIGNAL(triggered(void)), this, SLOT(analysisPopup()));
analItem->addWidget(activityHistory);
intervalItem = new GcSplitterItem(tr("Intervals"), iconFromPNG(":images/mac/stop.png"), this);
QAction *moreIntervalAct = new QAction(iconFromPNG(":images/sidebar/extra.png"), tr("Menu"), this);
intervalItem->addAction(moreIntervalAct);
connect(moreIntervalAct, SIGNAL(triggered(void)), this, SLOT(intervalPopup()));
intervalItem->addWidget(intervalSplitter);
analSidebar = new GcSplitter(Qt::Vertical);
@@ -1292,6 +1299,11 @@ MainWindow::enableSaveButton()
else saveButton->setEnabled(false);
}
void
MainWindow::analysisPopup()
{
}
void
MainWindow::showTreeContextMenuPopup(const QPoint &pos)
{
@@ -1343,6 +1355,11 @@ MainWindow::showTreeContextMenuPopup(const QPoint &pos)
}
}
void
MainWindow::intervalPopup()
{
}
void
MainWindow::showContextMenuPopup(const QPoint &pos)
{

View File

@@ -277,6 +277,9 @@ class MainWindow : public QMainWindow
void manageLibrary();
void showWorkoutWizard();
void analysisPopup();
void intervalPopup();
private slots:
void rideTreeWidgetSelectionChanged();
void intervalTreeWidgetSelectionChanged();