Limo
A simple mod manager
Loading...
Searching...
No Matches
ExportAppConfigDialog Class Reference

Dialog used for choosing which deployers and auto tags to export for a given app. More...

#include <exportappconfigdialog.h>

Inheritance diagram for ExportAppConfigDialog:
Collaboration diagram for ExportAppConfigDialog:

Signals

void appConfigExported (int app_id, std::vector< int > deployers, QStringList auto_tags)
 Signals that the dialog has been accepted. Sends selected deployers and auto tags.
 
void dialogClosed ()
 Signals cancellation of export.
 

Public Member Functions

 ExportAppConfigDialog (QWidget *parent=nullptr)
 Initializes the UI.
 
 ~ExportAppConfigDialog ()
 Deletes the UI.
 
void init (int app_id, const QString &app_name, const QStringList &deployers, const QStringList &auto_tags)
 Initializes this dialog with data regarding deployers and auto tags.
 

Private Slots

void on_buttonBox_accepted ()
 Closes the dialog and emits appConfigExported.
 
void on_buttonBox_rejected ()
 Closes the dialog and emits dialogClosed.
 

Private Member Functions

void closeEvent (QCloseEvent *event) override
 Closes the dialog and emits a signal indicating app export has been canceled.
 
void reject () override
 Closes the dialog and emits a signal indicating the dialog has been closed.
 

Private Attributes

Ui::ExportAppConfigDialog * ui
 Contains auto-generated UI elements.
 
int app_id_
 Target app id.
 
bool dialog_completed_ = false
 Indicates whether the dialog has been completed.
 

Detailed Description

Dialog used for choosing which deployers and auto tags to export for a given app.

Constructor & Destructor Documentation

◆ ExportAppConfigDialog()

ExportAppConfigDialog::ExportAppConfigDialog ( QWidget * parent = nullptr)
explicit

Initializes the UI.

Parameters
parentParent for this widget, this is passed to the constructor of QDialog.

Member Function Documentation

◆ appConfigExported

void ExportAppConfigDialog::appConfigExported ( int app_id,
std::vector< int > deployers,
QStringList auto_tags )
signal

Signals that the dialog has been accepted. Sends selected deployers and auto tags.

Parameters
app_idTarget app id.
deployersSelected deployers ids.
auto_tagsSelected auto tag names.

◆ closeEvent()

void ExportAppConfigDialog::closeEvent ( QCloseEvent * event)
overrideprivate

Closes the dialog and emits a signal indicating app export has been canceled.

Parameters
eventThe close event sent upon closing the dialog.

◆ init()

void ExportAppConfigDialog::init ( int app_id,
const QString & app_name,
const QStringList & deployers,
const QStringList & auto_tags )

Initializes this dialog with data regarding deployers and auto tags.

Parameters
app_idTarget app id.
app_nameTarget app name.
deployersNames of deployers used by the target app. Must be on order.
auto_tagsAuto tags used by the target app.

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