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

Dialog for selecting which external changes should be kept. More...

#include <externalchangesdialog.h>

Inheritance diagram for ExternalChangesDialog:
Collaboration diagram for ExternalChangesDialog:

Signals

void externalChangesDialogCompleted (int app_id, int deployer, const FileChangeChoices &changes_to_keep, bool deploy)
 Signals sucessful dialog completion.
 
void externalChangesDialogAborted ()
 Signals dialog has been aborted.
 

Public Member Functions

 ExternalChangesDialog (QWidget *parent=nullptr)
 Initializes the UI.
 
 ~ExternalChangesDialog ()
 Deletes the UI.
 
void setup (int app_id, const ExternalChangesInfo &info, bool deploy)
 Initializes the dialog.
 

Private Slots

void on_buttonBox_accepted ()
 Signals sucessful dialog completion. Emits externalChangesDialogCompleted.
 
void on_buttonBox_rejected ()
 Signals dialog has been aborted. Emits externalChangesDialogAborted.
 
void on_actionKeep_All_triggered ()
 Checks all entries in the file list.
 
void on_actionKeep_None_triggered ()
 Unchecks all entries in the file list.
 
void on_actionToggle_Selected_triggered ()
 Toggles all selected entries in the file list.
 

Private Attributes

Ui::ExternalChangesDialog * ui
 Contains auto-generated UI elements.
 
int app_id_ = -1
 Id of the app containing the modified files.
 
ExternalChangesInfo changes_info_
 Contains data regarding which files have been modified and to which mods those files belong.
 
bool deploy_ = true
 If True: Deploy mods after checking, else: Undeploy mods.
 

Detailed Description

Dialog for selecting which external changes should be kept.

Constructor & Destructor Documentation

◆ ExternalChangesDialog()

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

Initializes the UI.

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

Member Function Documentation

◆ externalChangesDialogCompleted

void ExternalChangesDialog::externalChangesDialogCompleted ( int app_id,
int deployer,
const FileChangeChoices & changes_to_keep,
bool deploy )
signal

Signals sucessful dialog completion.

Parameters
app_idId of the app containing the modified files.
deployerId of the deployer managing the modified files.
changes_to_keepContains data regarding which modifications to keep and which to reject.
deployIf True: Deploy mods after checking, else: Undeploy mods.

◆ setup()

void ExternalChangesDialog::setup ( int app_id,
const ExternalChangesInfo & info,
bool deploy )

Initializes the dialog.

Parameters
app_idId of the app containing the modified files.
infoContains data regarding which files have been modified and to which mods those files belong.
deployIf True: Deploy mods after checking, else: Undeploy mods.

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