Files
GoldenCheetah/src/AboutDialog.h
Mark Liversedge 05f1d577db Refactor MainWindow Part 2 of 5
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
2013-07-11 14:02:02 +01:00

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