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

Dialog for choosing which deployers manage a given set of mods. More...

#include <addtodeployerdialog.h>

Inheritance diagram for AddToDeployerDialog:
Collaboration diagram for AddToDeployerDialog:

Signals

void modDeployersUpdated (std::vector< int > &mod_id, std::vector< bool > deployers)
 Signals completion of the dialog.
 

Public Member Functions

 AddToDeployerDialog (QWidget *parent=nullptr)
 Initializes the UI.
 
 ~AddToDeployerDialog ()
 Deletes the UI.
 
void setupDialog (const QStringList &deployer_names, const QString &mod_name, std::vector< int > &mod_ids, const std::vector< int > &mod_deployers, const std::vector< bool > &auto_deployers)
 Initializes the dialog.
 

Private Slots

void on_buttonBox_accepted ()
 Closes the dialog and emits a signal for completion.
 

Private Attributes

Ui::AddToDeployerDialog * ui
 Contains auto-generated UI elements.
 
std::vector< int > mod_ids_
 Target mod ids.
 
bool dialog_completed_ = false
 Indicates whether the dialog has been completed.
 

Detailed Description

Dialog for choosing which deployers manage a given set of mods.

Constructor & Destructor Documentation

◆ AddToDeployerDialog()

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

Initializes the UI.

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

Member Function Documentation

◆ modDeployersUpdated

void AddToDeployerDialog::modDeployersUpdated ( std::vector< int > & mod_id,
std::vector< bool > deployers )
signal

Signals completion of the dialog.

Parameters
mod_idTarget mods.
deployersBool for every deployer, indicating if the mods should be managed by that deployer.

◆ setupDialog()

void AddToDeployerDialog::setupDialog ( const QStringList & deployer_names,
const QString & mod_name,
std::vector< int > & mod_ids,
const std::vector< int > & mod_deployers,
const std::vector< bool > & auto_deployers )

Initializes the dialog.

Parameters
deployer_namesNames of all existing deployers.
mod_nameTarget mod's name. Only used if mod_ids.size() == 1.
mod_idsTarget mods.
mod_deployersIds of all deployers managing the mod.

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