1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00
GPXSee/src/optionsdialog.h

123 lines
2.3 KiB
C
Raw Normal View History

2016-12-06 01:48:26 +01:00
#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#include <QDialog>
#include "palette.h"
2016-12-07 21:38:36 +01:00
#include "units.h"
2016-12-06 01:48:26 +01:00
class ColorBox;
class StyleComboBox;
class OddSpinBox;
2016-12-06 01:48:26 +01:00
class QSpinBox;
class QDoubleSpinBox;
class QComboBox;
class QCheckBox;
class QRadioButton;
class PercentSlider;
2016-12-06 01:48:26 +01:00
struct Options {
// Appearance
Palette palette;
int trackWidth;
int routeWidth;
Qt::PenStyle trackStyle;
Qt::PenStyle routeStyle;
QColor waypointColor;
QColor poiColor;
int waypointSize;
int poiSize;
2016-12-06 01:48:26 +01:00
int graphWidth;
bool pathAntiAliasing;
bool graphAntiAliasing;
int mapOpacity;
QColor blendColor;
2017-05-22 14:54:22 +02:00
// Data
int elevationFilter;
int speedFilter;
int heartRateFilter;
int cadenceFilter;
int powerFilter;
bool outlierEliminate;
qreal pauseSpeed;
int pauseInterval;
2016-12-06 01:48:26 +01:00
// POI
int poiRadius;
// System
bool useOpenGL;
int pixmapCache;
// Print/Export
bool hiresPrint;
bool printName;
bool printDate;
bool printDistance;
bool printTime;
bool printMovingTime;
bool printItemCount;
bool separateGraphPage;
2016-12-07 21:38:36 +01:00
Units units;
2016-12-06 01:48:26 +01:00
};
class OptionsDialog : public QDialog
{
Q_OBJECT
public:
OptionsDialog(Options *options, QWidget *parent = 0);
public slots:
void accept();
private:
QWidget *createAppearancePage();
2017-05-22 14:54:22 +02:00
QWidget *createDataPage();
2016-12-06 01:48:26 +01:00
QWidget *createPOIPage();
QWidget *createSystemPage();
QWidget *createExportPage();
2016-12-06 01:48:26 +01:00
Options *_options;
2017-05-22 14:54:22 +02:00
// Appearance
2016-12-06 01:48:26 +01:00
ColorBox *_baseColor;
QDoubleSpinBox *_colorOffset;
PercentSlider *_mapOpacity;
ColorBox *_blendColor;
2016-12-06 01:48:26 +01:00
QSpinBox *_trackWidth;
StyleComboBox *_trackStyle;
QSpinBox *_routeWidth;
StyleComboBox *_routeStyle;
QCheckBox *_pathAA;
QSpinBox *_waypointSize;
ColorBox *_waypointColor;
QSpinBox *_poiSize;
ColorBox *_poiColor;
2016-12-06 01:48:26 +01:00
QSpinBox *_graphWidth;
QCheckBox *_graphAA;
2017-05-22 14:54:22 +02:00
// Data
OddSpinBox *_elevationFilter;
OddSpinBox *_speedFilter;
OddSpinBox *_heartRateFilter;
OddSpinBox *_cadenceFilter;
OddSpinBox *_powerFilter;
2017-05-22 14:54:22 +02:00
QCheckBox *_outlierEliminate;
QDoubleSpinBox *_pauseSpeed;
QSpinBox *_pauseInterval;
// POI
2016-12-06 01:48:26 +01:00
QDoubleSpinBox *_poiRadius;
2017-05-22 14:54:22 +02:00
// System
QSpinBox *_pixmapCache;
2016-12-06 01:48:26 +01:00
QCheckBox *_useOpenGL;
2017-05-22 14:54:22 +02:00
// Print/Export
QRadioButton *_wysiwyg;
QRadioButton *_hires;
QCheckBox *_name;
QCheckBox *_date;
QCheckBox *_distance;
QCheckBox *_time;
QCheckBox *_movingTime;
QCheckBox *_itemCount;
QCheckBox *_separateGraphPage;
2016-12-06 01:48:26 +01:00
};
#endif // OPTIONSDIALOG_H