V-Gears 0
Free Final Fantasy VII engine.
MainWindow Class Reference

The installer main window. More...

#include <MainWindow.h>

Inheritance diagram for MainWindow:
Collaboration diagram for MainWindow:

Public Member Functions

 MainWindow (QWidget *parent=0)
 Constructor. More...
 
 ~MainWindow ()
 Destructor. More...
 

Private Slots

void on_line_vgears_config_editingFinished ()
 Triggered when the configuration directory has done being edited. More...
 
void on_btn_vgears_config_clicked ()
 Triggered when the configuration directory button is clicked. More...
 
void on_line_vgears_exe_editingFinished ()
 Triggered when the executable directory has done being edited. More...
 
void on_btn_vgears_exe_clicked ()
 Triggered when the executable directory button is clicked. More...
 
void on_btn_vgears_run_clicked ()
 Triggered when the launch button is clicked. More...
 
void on_btn_data_src_clicked ()
 Triggered when the input data directory button is clicked. More...
 
void on_line_data_dst_editingFinished ()
 Triggered when the output data directory has done being edited. More...
 
void on_btn_data_dst_clicked ()
 Triggered when the output data directory button is clicked. More...
 
void on_btn_data_run_clicked ()
 Triggered when the install button is clicked. More...
 
void on_chk_advanced_options_stateChanged ()
 Triggered when the advanced options checkbox is checked or unchecked. More...
 
void DoProgress ()
 Makes the installation progress advance. More...
 

Private Member Functions

void EnableUi (bool enable)
 Enables or disables the UI. More...
 
void OnInstallStarted ()
 Triggered when the installation starts. More...
 
void OnInstallStopped ()
 Triggered when the installation stops. More...
 
void InitSettings (void)
 Initializes the installer settings. More...
 

Private Attributes

Ui::MainWindow * main_window_
 The installer window. More...
 
QTimer * timer_
 A timer. More...
 
QSettings * settings_
 The installer settings. More...
 
std::unique_ptr< class DataInstallerinstaller_
 The installer. More...
 

Detailed Description

The installer main window.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
[in]parentWidget to be made parent of the window.

◆ ~MainWindow()

MainWindow::~MainWindow ( )

Destructor.

Member Function Documentation

◆ DoProgress

void MainWindow::DoProgress ( )
privateslot

Makes the installation progress advance.

◆ EnableUi()

void MainWindow::EnableUi ( bool  enable)
private

Enables or disables the UI.

Parameters
[in]enableTrue to enable the UI, false to disable it.

◆ InitSettings()

void MainWindow::InitSettings ( void  )
private

Initializes the installer settings.

◆ on_btn_data_dst_clicked

void MainWindow::on_btn_data_dst_clicked ( )
privateslot

Triggered when the output data directory button is clicked.

Opens a file manager for directory selection.

◆ on_btn_data_run_clicked

void MainWindow::on_btn_data_run_clicked ( )
privateslot

Triggered when the install button is clicked.

Launches the installation.

◆ on_btn_data_src_clicked

void MainWindow::on_btn_data_src_clicked ( )
privateslot

Triggered when the input data directory button is clicked.

Opens a file manager for directory selection.

◆ on_btn_vgears_config_clicked

void MainWindow::on_btn_vgears_config_clicked ( )
privateslot

Triggered when the configuration directory button is clicked.

Opens a file manager for directory selection.

◆ on_btn_vgears_exe_clicked

void MainWindow::on_btn_vgears_exe_clicked ( )
privateslot

Triggered when the executable directory button is clicked.

Opens a file manager for file selection.

◆ on_btn_vgears_run_clicked

void MainWindow::on_btn_vgears_run_clicked ( )
privateslot

Triggered when the launch button is clicked.

Launches V-Gears.

◆ on_chk_advanced_options_stateChanged

void MainWindow::on_chk_advanced_options_stateChanged ( )
privateslot

Triggered when the advanced options checkbox is checked or unchecked.

◆ on_line_data_dst_editingFinished

void MainWindow::on_line_data_dst_editingFinished ( )
privateslot

Triggered when the output data directory has done being edited.

Sets the selected directory.

◆ on_line_vgears_config_editingFinished

void MainWindow::on_line_vgears_config_editingFinished ( )
privateslot

Triggered when the configuration directory has done being edited.

Sets the selected directory.

◆ on_line_vgears_exe_editingFinished

void MainWindow::on_line_vgears_exe_editingFinished ( )
privateslot

Triggered when the executable directory has done being edited.

Sets the selected directory.

◆ OnInstallStarted()

void MainWindow::OnInstallStarted ( )
private

Triggered when the installation starts.

Disables the UI.

◆ OnInstallStopped()

void MainWindow::OnInstallStopped ( )
private

Triggered when the installation stops.

Enables the UI.

Member Data Documentation

◆ installer_

std::unique_ptr<class DataInstaller> MainWindow::installer_
private

The installer.

◆ main_window_

Ui::MainWindow* MainWindow::main_window_
private

The installer window.

◆ settings_

QSettings* MainWindow::settings_
private

The installer settings.

◆ timer_

QTimer* MainWindow::timer_
private

A timer.


The documentation for this class was generated from the following files: