| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <QDialog> |
| 7 |
|
| 8 |
class QPushButton; |
| 9 |
class QTableWidget; |
| 10 |
class QTableWidgetItem; |
| 11 |
|
| 12 |
class ResourcePackManager : public QDialog |
| 13 |
{ |
| 14 |
public: |
| 15 |
explicit ResourcePackManager(QWidget* parent = nullptr); |
| 16 |
|
| 17 |
private: |
| 18 |
void CreateWidgets(); |
| 19 |
void ConnectWidgets(); |
| 20 |
void OpenResourcePackDir(); |
| 21 |
void RepopulateTable(); |
| 22 |
void Change(); |
| 23 |
void Install(); |
| 24 |
void Uninstall(); |
| 25 |
void Remove(); |
| 26 |
void PriorityUp(); |
| 27 |
void PriorityDown(); |
| 28 |
void Refresh(); |
| 29 |
|
| 30 |
void SelectionChanged(); |
| 31 |
void ItemDoubleClicked(QTableWidgetItem* item); |
| 32 |
|
| 33 |
int GetResourcePackIndex(QTableWidgetItem* item) const; |
| 34 |
|
| 35 |
QPushButton* m_open_directory_button; |
| 36 |
QPushButton* m_change_button; |
| 37 |
QPushButton* m_remove_button; |
| 38 |
QPushButton* m_refresh_button; |
| 39 |
QPushButton* m_priority_up_button; |
| 40 |
QPushButton* m_priority_down_button; |
| 41 |
|
| 42 |
QTableWidget* m_table_widget; |
| 43 |
}; |