V-Gears 0
Free Final Fantasy VII engine.
MainWindow.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
18#include <QtWidgets/QMainWindow> // IVV fix path #include <QMainWindow>
19#include <QtCore/QSettings>
20#include <memory>
21
22namespace Ui {
23 class MainWindow;
24}
25
29class MainWindow : public QMainWindow{
30
31 public:
32
38 explicit MainWindow(QWidget *parent = 0);
39
44
45 private slots:
46
53
60
67
74
81
88
95
102
109
114
115 //private slots:
116
120 void DoProgress();
121
122 private:
123
129 void EnableUi(bool enable);
130
136 void OnInstallStarted();
137
143 void OnInstallStopped();
144
148 void InitSettings(void);
149
150 // The Q_OBJECT macro must appear in the private section of a class definition
151 //that declares its own signals and slots or that uses other services provided
152 // by Qt's meta-object system.
153 Q_OBJECT
154
158 Ui::MainWindow* main_window_;
159
163 QTimer* timer_;
164
168 QSettings *settings_;
169
173 std::unique_ptr<class DataInstaller> installer_;
174};
The installer main window.
Definition: MainWindow.h:29
QTimer * timer_
A timer.
Definition: MainWindow.h:163
void on_chk_advanced_options_stateChanged()
Triggered when the advanced options checkbox is checked or unchecked.
Definition: MainWindow.cpp:254
Ui::MainWindow * main_window_
The installer window.
Definition: MainWindow.h:158
QSettings * settings_
The installer settings.
Definition: MainWindow.h:168
void on_btn_data_dst_clicked()
Triggered when the output data directory button is clicked.
Definition: MainWindow.cpp:147
std::unique_ptr< class DataInstaller > installer_
The installer.
Definition: MainWindow.h:173
void on_btn_vgears_run_clicked()
Triggered when the launch button is clicked.
Definition: MainWindow.cpp:118
void on_line_vgears_config_editingFinished()
Triggered when the configuration directory has done being edited.
Definition: MainWindow.cpp:89
void OnInstallStarted()
Triggered when the installation starts.
Definition: MainWindow.cpp:271
MainWindow(QWidget *parent=0)
Constructor.
Definition: MainWindow.cpp:36
void on_line_vgears_exe_editingFinished()
Triggered when the executable directory has done being edited.
Definition: MainWindow.cpp:104
void on_btn_vgears_config_clicked()
Triggered when the configuration directory button is clicked.
Definition: MainWindow.cpp:93
void on_btn_data_src_clicked()
Triggered when the input data directory button is clicked.
Definition: MainWindow.cpp:136
void EnableUi(bool enable)
Enables or disables the UI.
Definition: MainWindow.cpp:260
void OnInstallStopped()
Triggered when the installation stops.
Definition: MainWindow.cpp:273
void DoProgress()
Makes the installation progress advance.
Definition: MainWindow.cpp:275
~MainWindow()
Destructor.
Definition: MainWindow.cpp:53
void on_line_data_dst_editingFinished()
Triggered when the output data directory has done being edited.
Definition: MainWindow.cpp:143
void on_btn_data_run_clicked()
Triggered when the install button is clicked.
Definition: MainWindow.cpp:157
void InitSettings(void)
Initializes the installer settings.
Definition: MainWindow.cpp:55
void on_btn_vgears_exe_clicked()
Triggered when the executable directory button is clicked.
Definition: MainWindow.cpp:108
Definition: MainWindow.h:22