d8b0685b8bd4fe232196e7d37630e2d140404dbb
[gpssportsniffer] / settingsWindow.h
1 #ifndef SETTINGSWINDOW_H
2 #define SETTINGSWINDOW_H
3
4 #include "settings.h"
5 #include <QDialog>
6 #include <QDir>
7
8 class WindowMap;
9
10 namespace Ui {
11     class SettingsWindow;
12 }
13
14 class SettingsWindow:public QDialog
15 {
16     Q_OBJECT
17
18 public:
19     explicit SettingsWindow(WindowMap *parent = 0,Settings *sett=0, Log *log=0);
20     virtual ~SettingsWindow();
21     Settings *activitySettings;
22     WindowMap *activityMap;
23
24 private:
25     void closeEvent(QCloseEvent *event);
26     void showEvent(QShowEvent *);
27
28     QString getExtension();
29     void accept();
30     int intervalFromCombo(int index);
31     QDir* currentDir;
32     Log *log;
33     Ui::SettingsWindow *ui;
34     QString trackName;
35
36 private slots:
37     void setActivityType();
38     void browse();
39     void setColor();
40     void changeEditText();
41     void changeTCXTypeFile(bool);
42 };
43
44 #endif // SETTINGSWINDOW_H