-
Notifications
You must be signed in to change notification settings - Fork 0
/
durangoImagerUI.h
106 lines (92 loc) · 2.95 KB
/
durangoImagerUI.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef DURANGOIMAGERUI_H
#define DURANGOIMAGERUI_H
/*
* SPDX-License-Identifier: LGPL v3.0
* Copyright (C) 2023 Durango Computer Team (durangoretro.com)
*/
#include "durangoimagercontroller.h"
#include <QMainWindow>
#define _VERSION_ "1.0b"
/**
* NameSpace for use with the UI Interface.
*/
namespace Ui {
class DurangoImager;
}
/**
* @brief The DurangoImager class This class Contains all the needed logic for interact with the User Interface.
* @author Durango Computer Team (Victor Suarez)
* @version 1.0(Nov 2023).
*/
class DurangoImager : public QMainWindow
{
Q_OBJECT
public:
/**
* @brief DurangoImager Class Constructor
* @param parent Current Parent Widget.
*/
explicit DurangoImager(QWidget *parent = nullptr);
~DurangoImager();
private slots:
/**
* @brief addItem Slot Used when a new Item is added.
* @param fileAdded Rom Name to store in the ListWidget.
*/
void addItem(std::string fileAdded);
/**
* @brief addFileButtonPressed This slot is used when the Add File Button is pressed. This Slot open a "openFile" dialog.
*/
void addFileButtonPressed();
/**
* @brief removeItem Remove the selected Items from ListWidget and controller.
*/
void removeItem();
/**
* @brief addSpace This Slot is launched when the Add Space CheckBox is checked or Unchecked
* @param state current State @see Qt::CheckState for more information
*/
void addSpace(int state);
/**
* @brief selectDestinationButtonPressed This slot is used when the destination File (...) button is pressed. This slot Open a "openFile" Dialog.
*/
void selectDestinationButtonPressed();
/**
* @brief storeDestination this Slot is used when a destination File is selected.
* @param destinationPath Destination File Path.
*/
void storeDestination(std::string destinationPath);
/**
* @brief createVolume this slot is used when Create Durango Volume is Pressed.
*/
void createVolume();
/**
* @brief emptySpaceChanged Slot is used when the ComboBox with the Empty Space Size is changed
* @param index element index selected
*/
void emptySpaceChanged(int index);
void openVolumePressed();
void openExistingVolume(std::string volumePath);
signals:
/**
* @brief itemAdded This signal is emited when a new file is selected from de Open File Dialog.
* @param fileAdded Rom File Name to be added.
*/
void itemAdded(std::string fileAdded);
/**
* @brief destinationSelected Signad Emmited when a Destination Is selected.
* @param destinationPath Destination Path.
*/
void destinationSelected(std::string destinationPath);
void volumeSelected(std::string volumePath);
private:
/**
* @brief ui Current UI Setup
*/
Ui::DurangoImager *ui;
/**
* @brief controller Durango Imager Controller.
*/
DurangoImagerController * controller;
};
#endif // DURANGOIMAGERUI_H