rpcs3/rpcs3/rpcs3qt/pkg_install_dialog.h
Silent e7ddc5187a Add a dialog to Batch PKG Install
Dialog allows users to preview the order in which PKG's will be installed
and allows users to move items around if needed.

Because clicking "Install" on this new dialog acts as a confirmation
and user has a second chance to eyeball what is to be installed,
"Install package X?" dialogs have been removed and instead user
is only notified of success. In case of failure, batch installation
aborts with a descriptive error.
2020-01-05 11:01:26 +01:00

18 lines
314 B
C++

#pragma once
#include <QDialog>
#include <QListWidget>
class pkg_install_dialog : public QDialog
{
Q_OBJECT
public:
explicit pkg_install_dialog(const QStringList& paths, QWidget* parent = nullptr);
QStringList GetPathsToInstall() const;
private:
void MoveItem(int offset);
QListWidget* m_dir_list;
};