mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-06 08:40:28 +01:00
38 lines
722 B
C++
38 lines
722 B
C++
#pragma once
|
|
|
|
#include "util/types.hpp"
|
|
|
|
#include "gui_settings.h"
|
|
|
|
#include <QTableWidget>
|
|
#include <QLabel>
|
|
|
|
#include <memory>
|
|
|
|
namespace cfg
|
|
{
|
|
class device_entry;
|
|
}
|
|
|
|
class vfs_dialog_usb_tab : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit vfs_dialog_usb_tab(cfg::device_entry* cfg_node, std::shared_ptr<gui_settings> _gui_settings, QWidget* parent = nullptr);
|
|
|
|
void set_settings() const;
|
|
|
|
// Reset this tab without saving the settings yet
|
|
void reset() const;
|
|
|
|
private:
|
|
void show_usb_input_dialog(int index);
|
|
void show_context_menu(const QPoint& pos);
|
|
void double_clicked_slot(QTableWidgetItem* item);
|
|
|
|
cfg::device_entry* m_cfg_node;
|
|
std::shared_ptr<gui_settings> m_gui_settings;
|
|
QTableWidget* m_usb_table;
|
|
};
|