forked from mrkite/minutor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jumpto.h
44 lines (37 loc) · 1.06 KB
/
jumpto.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
44
#ifndef JUMPTO_H
#define JUMPTO_H
#include <QDialog>
#include <QSpinBox>
#include "mapview.h"
namespace Ui {
class JumpTo;
}
class JumpTo : public QDialog
{
Q_OBJECT
public:
explicit JumpTo(QWidget *parent = 0);
~JumpTo();
private slots:
void on_spinBox_Block_X_valueChanged(int value);
void on_spinBox_Block_Y_valueChanged(int value);
void on_spinBox_Block_Z_valueChanged(int value);
void on_spinBox_Chunk_X_valueChanged(int value);
void on_spinBox_Chunk_Y_valueChanged(int value);
void on_spinBox_Chunk_Z_valueChanged(int value);
void on_spinBox_Region_X_valueChanged(int value);
void on_spinBox_Region_Z_valueChanged(int value);
void on_pushButton_Jump_clicked();
void on_pushButton_Get_clicked();
void on_checkBox_Sync_stateChanged(int state);
void on_checkBox_Use_Y_stateChanged(int state);
void updateValues(int x, int y, int z);
private:
Ui::JumpTo *ui;
MapView *mapview;
MapView::BlockLocation *location;
void updateSpinBoxValue(QSpinBox *spinBox, int value);
void readSettings();
void writeSettings();
};
#endif // JUMPTO_H