mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -277,6 +277,9 @@ class MainWindow : public QMainWindow
|
||||
void manageLibrary();
|
||||
void showWorkoutWizard();
|
||||
|
||||
void analysisPopup();
|
||||
void intervalPopup();
|
||||
|
||||
private slots:
|
||||
void rideTreeWidgetSelectionChanged();
|
||||
void intervalTreeWidgetSelectionChanged();
|
||||
|
||||
Reference in New Issue
Block a user