mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
Decoupled classes from MainWindow to reference Context
and Athlete (and introduced a couple of new headers).
We no longer pass around a MainWindow pointer to children
but pass a context instead.
There are still a few pieces left in MainWindow that need
to move to a better place;
* Setting/clearing filter selection
* Working with Intervals
* Adding/Deleting Rides
* Save on Exit
As mentioned previously there are lots of other parts to
this refactor left to do;
* break MainWindow Gui elements into Toolbar and Views
* migrate from RideItem and Ridelist to ActivityCollection
and Activity classes that are not tied into gui elements.
* introduce Application Context and AthleteCollection
93 lines
1.3 KiB
C++
93 lines
1.3 KiB
C++
#ifndef ABOUTDIALOG_H
|
|
#define ABOUTDIALOG_H
|
|
#include "GoldenCheetah.h"
|
|
|
|
#include "Pages.h"
|
|
#include <QDialog>
|
|
|
|
class Context;
|
|
class AboutPage;
|
|
class VersionPage;
|
|
class ConfigPage;
|
|
class ContributorsPage;
|
|
|
|
class AboutDialog: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
G_OBJECT
|
|
|
|
public:
|
|
AboutDialog(Context *context, QDir home);
|
|
|
|
private:
|
|
Context *context;
|
|
QDir home;
|
|
|
|
AboutPage *aboutPage;
|
|
VersionPage *versionPage;
|
|
ConfigPage *configPage;
|
|
ContributorsPage *contributorsPage;
|
|
|
|
QTabWidget *tabWidget;
|
|
QVBoxLayout *mainLayout;
|
|
};
|
|
|
|
|
|
class AboutPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
G_OBJECT
|
|
|
|
|
|
public:
|
|
AboutPage(Context *context, QDir home);
|
|
|
|
private:
|
|
Context *context;
|
|
QDir home;
|
|
};
|
|
|
|
class VersionPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
G_OBJECT
|
|
|
|
|
|
public:
|
|
VersionPage(Context *context, QDir home);
|
|
|
|
private:
|
|
Context *context;
|
|
QDir home;
|
|
};
|
|
|
|
class ConfigPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ConfigPage(Context *context, QDir home);
|
|
|
|
private:
|
|
Context *context;
|
|
QDir home;
|
|
};
|
|
|
|
class ContributorsPage : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
G_OBJECT
|
|
|
|
|
|
public:
|
|
ContributorsPage(Context *context, QDir home);
|
|
|
|
private:
|
|
Context *context;
|
|
QDir home;
|
|
|
|
};
|
|
|
|
|
|
#endif // ABOUTDIALOG_H
|