mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
#ifndef CONFIGDIALOG_H
|
|
#define CONFIGDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QSettings>
|
|
#include "Pages.h"
|
|
#include "MainWindow.h"
|
|
|
|
class QListWidget;
|
|
class QListWidgetItem;
|
|
class QStackedWidget;
|
|
class MainWindow;
|
|
class Zones;
|
|
|
|
class ConfigDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
ConfigDialog(QDir home, Zones *zones, MainWindow *mainWindow);
|
|
|
|
public slots:
|
|
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
|
|
void save_Clicked();
|
|
|
|
// device config slots
|
|
void changedType(int);
|
|
void devaddClicked();
|
|
void devpairClicked();
|
|
void devdelClicked();
|
|
|
|
private:
|
|
void createIcons();
|
|
void calculateZones();
|
|
void createNewRange();
|
|
void moveCalendarToCurrentRange();
|
|
|
|
MainWindow *mainWindow;
|
|
ConfigurationPage *configPage;
|
|
CyclistPage *cyclistPage;
|
|
DevicePage *devicePage;
|
|
TwitterPage *twitterPage;
|
|
QPushButton *saveButton;
|
|
QStackedWidget *pagesWidget;
|
|
QPushButton *closeButton;
|
|
QHBoxLayout *horizontalLayout;
|
|
QHBoxLayout *buttonsLayout;
|
|
QVBoxLayout *mainLayout;
|
|
QListWidget *contentsWidget;
|
|
|
|
QSettings *settings;
|
|
QDir home;
|
|
Zones *zones;
|
|
|
|
// used by device config
|
|
QList<QTreeWidgetItem> twiNames, twiSpecs, twiTypes, twiDefaults;
|
|
};
|
|
|
|
#endif
|