1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-22 06:44:24 +02:00

Added options dialogue

This commit is contained in:
2016-12-06 01:48:26 +01:00
parent 181f60ed40
commit a9668ca86e
34 changed files with 1044 additions and 195 deletions

60
src/optionsdialog.h Normal file
View File

@ -0,0 +1,60 @@
#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#include <QDialog>
#include "palette.h"
class ColorBox;
class StyleComboBox;
class QSpinBox;
class QDoubleSpinBox;
class QComboBox;
class QCheckBox;
struct Options {
// Appearance
Palette palette;
int trackWidth;
int routeWidth;
Qt::PenStyle trackStyle;
Qt::PenStyle routeStyle;
int graphWidth;
bool pathAntiAliasing;
bool graphAntiAliasing;
// POI
int poiRadius;
// System
bool useOpenGL;
};
class OptionsDialog : public QDialog
{
Q_OBJECT
public:
OptionsDialog(Options *options, QWidget *parent = 0);
public slots:
void accept();
private:
QWidget *createAppearancePage();
QWidget *createPOIPage();
QWidget *createSystemPage();
Options *_options;
ColorBox *_baseColor;
QDoubleSpinBox *_colorOffset;
QSpinBox *_trackWidth;
StyleComboBox *_trackStyle;
QSpinBox *_routeWidth;
StyleComboBox *_routeStyle;
QCheckBox *_pathAA;
QSpinBox *_graphWidth;
QCheckBox *_graphAA;
QDoubleSpinBox *_poiRadius;
QCheckBox *_useOpenGL;
};
#endif // OPTIONSDIALOG_H