1 /* TIATracker, (c) 2016 Andre "Kylearan" Wichmann.
2  * Website: https://bitbucket.org/kylearan/tiatracker
3  * Email: andre.wichmann@gmx.de
4  * See the file "license.txt" for information on usage and redistribution
5  * of this file.
6  */
7 
8 #include "setgotodialog.h"
9 #include "ui_setgotodialog.h"
10 
SetGotoDialog(QWidget * parent)11 SetGotoDialog::SetGotoDialog(QWidget *parent) :
12     QDialog(parent),
13     ui(new Ui::SetGotoDialog)
14 {
15     ui->setupUi(this);
16     setWindowFlags(Qt::Dialog | Qt::FramelessWindowHint);
17 }
18 
~SetGotoDialog()19 SetGotoDialog::~SetGotoDialog()
20 {
21     delete ui;
22 }
23 
24 /*************************************************************************/
25 
setMaxValue(int max)26 void SetGotoDialog::setMaxValue(int max) {
27     ui->spinBoxSetGoto->setMaximum(max);
28 }
29 
30 /*************************************************************************/
31 
setGotoValue(int value)32 void SetGotoDialog::setGotoValue(int value) {
33     ui->spinBoxSetGoto->setValue(value);
34 }
35 
36 /*************************************************************************/
37 
getGotoValue()38 int SetGotoDialog::getGotoValue() {
39     return ui->spinBoxSetGoto->value();
40 }
41