Limo
A simple mod manager
Loading...
Searching...
No Matches
movemoddialog.h
Go to the documentation of this file.
1
5
6#pragma once
7
8#include <QDialog>
9
10
11namespace Ui
12{
13class MoveModDialog;
14}
15
19class MoveModDialog : public QDialog
20{
21 Q_OBJECT
22
23public:
31 explicit MoveModDialog(QString name, int source, int num_mods, QWidget* parent = nullptr);
34
35private slots:
43 void on_target_field_textEdited(const QString& new_text);
44
45private:
47 Ui::MoveModDialog* ui;
50
51signals:
57 void modMovedTo(int source, int target);
58};
void modMovedTo(int source, int target)
Signals that a mod has been moved.
int source_
Original position of target mod in the load order.
Definition movemoddialog.h:49
~MoveModDialog()
Deletes the UI.
Definition movemoddialog.cpp:17
MoveModDialog(QString name, int source, int num_mods, QWidget *parent=nullptr)
Initializes the UI.
Definition movemoddialog.cpp:8
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 ord...
Definition movemoddialog.cpp:27
void on_buttonBox_accepted()
Closes the dialog and emits a signal for completion.
Definition movemoddialog.cpp:22
Ui::MoveModDialog * ui
Contains auto-generated UI elements.
Definition movemoddialog.h:47