Limo
A simple mod manager
Loading...
Searching...
No Matches
addbackupdialog.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QDialog>
9
10
11namespace Ui
12{
13class AddBackupDialog;
14}
15
19class AddBackupDialog : public QDialog
20{
21 Q_OBJECT
22
23public:
28 explicit AddBackupDialog(QWidget* parent = nullptr);
31
39 void setupDialog(int app_id,
40 int target_id,
41 const QString& target_name,
42 const QStringList& existing_backups);
43
44private slots:
49 void on_name_field_textChanged(const QString& text);
52
53private:
55 Ui::AddBackupDialog* ui;
61 QString target_name_;
63 bool dialog_completed_ = false;
64
65signals:
74 void addBackupDialogAccepted(int app_id,
75 int target_id,
76 QString name,
77 QString target_name,
78 int source_backup);
79};
void addBackupDialogAccepted(int app_id, int target_id, QString name, QString target_name, int source_backup)
Signals completion of this dialog.
void on_name_field_textChanged(const QString &text)
Called when the user edits the backup name field. Updates the Ok button.
Definition addbackupdialog.cpp:32
int app_id_
Application to which the new backup is to be added.
Definition addbackupdialog.h:59
~AddBackupDialog()
Deletes the UI.
Definition addbackupdialog.cpp:12
bool dialog_completed_
Indicates whether the dialog has been completed.
Definition addbackupdialog.h:63
AddBackupDialog(QWidget *parent=nullptr)
Initializes the UI.
Definition addbackupdialog.cpp:7
QString target_name_
Name of the target for which to create a new backup.
Definition addbackupdialog.h:61
void setupDialog(int app_id, int target_id, const QString &target_name, const QStringList &existing_backups)
Initializes this dialog with data needed for backup creation.
Definition addbackupdialog.cpp:17
Ui::AddBackupDialog * ui
Contains auto-generated UI elements.
Definition addbackupdialog.h:55
void on_buttonBox_accepted()
Emits addBackupDialogAccepted with the data entered in the Ui.
Definition addbackupdialog.cpp:37
int target_id_
Id of the target for which to create a new backup.
Definition addbackupdialog.h:57