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

Dialog used to move a mod to a new position in a load order. More...

#include <movemoddialog.h>

Inheritance diagram for MoveModDialog:
Collaboration diagram for MoveModDialog:

Signals

void modMovedTo (int source, int target)
 Signals that a mod has been moved.
 

Public Member Functions

 MoveModDialog (QString name, int source, int num_mods, QWidget *parent=nullptr)
 Initializes the UI.
 
 ~MoveModDialog ()
 Deletes the UI.
 

Private Slots

void on_buttonBox_accepted ()
 Closes the dialog and emits a signal for completion.
 
void on_target_field_textEdited (const QString &new_text)
 Enables the OK button only if the new text is an int between 1 and the number of mods in the load order.
 

Private Attributes

Ui::MoveModDialog * ui
 Contains auto-generated UI elements.
 
int source_
 Original position of target mod in the load order.
 

Detailed Description

Dialog used to move a mod to a new position in a load order.

Constructor & Destructor Documentation

◆ MoveModDialog()

MoveModDialog::MoveModDialog ( QString name,
int source,
int num_mods,
QWidget * parent = nullptr )
explicit

Initializes the UI.

Parameters
nameThe target mod's name.
sourceThe target mod's current position.
num_modsNumber of mods in the load order.
parentParent of this widget.

Member Function Documentation

◆ modMovedTo

void MoveModDialog::modMovedTo ( int source,
int target )
signal

Signals that a mod has been moved.

Parameters
sourceOriginal position in the load order.
targetNew position in the load order.

◆ on_target_field_textEdited

void MoveModDialog::on_target_field_textEdited ( const QString & new_text)
privateslot

Enables the OK button only if the new text is an int between 1 and the number of mods in the load order.

Parameters
new_textNewly entered text.

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