mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
When an interval (or intervals) are selected in the interval tree, the new window below the tree now shows summary information for the selected interval(s). This is beneficial for example when the Ride Plot tab is shown and the user also wishes to see summary info about the intervals. This fixes #77. I think there is still room for improvement on the fields displayed and the formatting of the summary window. For now the fields are the same as those displayed in the Ride Summary page.
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) 2011 Eric Brandt (eric.l.brandt@gmail.com)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc., 51
|
|
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef INTERVALSUMMARYWINDOW_H_
|
|
#define INTERVALSUMMARYWINDOW_H_
|
|
|
|
#include <QtGui>
|
|
|
|
class MainWindow;
|
|
class IntervalItem;
|
|
|
|
class IntervalSummaryWindow : public QTextEdit {
|
|
Q_OBJECT;
|
|
|
|
public:
|
|
IntervalSummaryWindow(MainWindow *mainWindow);
|
|
virtual ~IntervalSummaryWindow();
|
|
|
|
public slots:
|
|
|
|
void intervalSelected();
|
|
|
|
protected:
|
|
void calcInterval(IntervalItem* interval, QString& html);
|
|
|
|
MainWindow *mainWindow;
|
|
};
|
|
|
|
#endif /* INTERVALSUMMARYWINDOW_H_ */
|