Limo
A simple mod manager
Loading...
Searching...
No Matches
nexusmoddialog.h
Go to the documentation of this file.
1
5
6#pragma once
7
9#include "tabletoolbutton.h"
10#include <QDialog>
11#include <QFrame>
12#include <QLabel>
13#include <QVBoxLayout>
14
15
16namespace Ui
17{
18class NexusModDialog;
19}
20
25class NexusModDialog : public QDialog
26{
27 Q_OBJECT
28
29public:
34 explicit NexusModDialog(QWidget* parent = nullptr);
37
44 void setupDialog(int app_id, int mod_id, const nexus::Page& page);
45
46private:
48 Ui::NexusModDialog* ui;
55
61 QString bbcodeToHtml(const QString& bbcode);
62
63private slots:
69 void onDownloadClicked(int file_id, int file_id_copy);
70
71signals:
80 void modDownloadRequested(int app_id, int mod_id, int file_id, QString mod_url, QString version);
81};
Header for the nexus::Api class.
QString bbcodeToHtml(const QString &bbcode)
Converts the given BBCode formatted string to a string formatted with HTML tags.
Definition nexusmoddialog.cpp:205
int mod_id_
Limo mod id for the mod to which the page belongs.
Definition nexusmoddialog.h:52
Ui::NexusModDialog * ui
Contains auto-generated UI elements.
Definition nexusmoddialog.h:48
NexusModDialog(QWidget *parent=nullptr)
Initializes the UI.
Definition nexusmoddialog.cpp:17
nexus::Page page_
Contains all data necessary for the dialog.
Definition nexusmoddialog.h:54
~NexusModDialog()
Deletes the UI.
Definition nexusmoddialog.cpp:23
void setupDialog(int app_id, int mod_id, const nexus::Page &page)
Initializes the dialog with the data for the given Page.
Definition nexusmoddialog.cpp:28
int app_id_
ModdedApplication to which the mod, whose page is being shown, belongs.
Definition nexusmoddialog.h:50
void modDownloadRequested(int app_id, int mod_id, int file_id, QString mod_url, QString version)
Sends a download request for the given file.
void onDownloadClicked(int file_id, int file_id_copy)
Sends a download request for the given file.
Definition nexusmoddialog.cpp:246
uint32_t version
Archive format version.
Definition lspakheader.h:3
Contains all data for a mod available through the NexusMods api.
Definition api.h:23
Header for the TableToolButton class.