mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
43 lines
867 B
C++
43 lines
867 B
C++
#ifndef CONFIGDIALOG_H
|
|
#define CONFIGDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QSettings>
|
|
#include <Pages.h>
|
|
#include "MainWindow.h"
|
|
|
|
class QListWidget;
|
|
class QListWidgetItem;
|
|
class QStackedWidget;
|
|
|
|
class ConfigDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ConfigDialog(QDir home);
|
|
~ConfigDialog();
|
|
public slots:
|
|
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
|
|
void save_Clicked();
|
|
void back_Clicked();
|
|
void forward_Clicked();
|
|
void new_Clicked();
|
|
|
|
private:
|
|
void createIcons();
|
|
void calculateZones();
|
|
|
|
QListWidget *contentsWidget;
|
|
QStackedWidget *pagesWidget;
|
|
|
|
QSettings settings;
|
|
ConfigurationPage *configPage;
|
|
CyclistPage *cyclistPage;
|
|
QPushButton *saveButton;
|
|
QDir home;
|
|
Zones *zones;
|
|
|
|
};
|
|
|
|
#endif
|