-
Notifications
You must be signed in to change notification settings - Fork 51
/
settings.h
43 lines (34 loc) · 965 Bytes
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/** Copyright (c) 2013, Sean Kasun */
#ifndef SETTINGS_H_
#define SETTINGS_H_
#include <QDialog>
#include "ui_settings.h"
class Settings : public QDialog {
Q_OBJECT
public:
explicit Settings(QWidget *parent = 0);
QString mcpath;
bool verticalDepth;
bool autoUpdate;
bool zoomFollowsCursor;
Qt::KeyboardModifier modifier4DepthSlider;
Qt::KeyboardModifier modifier4ZoomOut;
/** Returns the default path to be used for Minecraft location. */
static QString getDefaultLocation();
signals:
void settingsUpdated();
void locationChanged(const QString &loc);
void checkForUpdates();
private slots:
void toggleAutoUpdate(bool on);
void clickedUpdateNow();
void browseLocation(bool on);
void toggleDefaultLocation(bool on);
void pathChanged(const QString &path);
void toggleVerticalDepth(bool on);
void toggleModifier4DepthSlider();
void toggleModifier4ZoomOut();
private:
Ui::Settings m_ui;
};
#endif // SETTINGS_H_