2019-12-16 04:01:55 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class lcPartPaletteDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct lcPartPalette;
|
|
|
|
|
|
|
|
class lcPartPaletteDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
lcPartPaletteDialog(QWidget* Parent, std::vector<lcPartPalette>& PartPalettes);
|
|
|
|
~lcPartPaletteDialog();
|
|
|
|
|
|
|
|
protected slots:
|
2020-03-22 23:44:41 +01:00
|
|
|
void accept() override;
|
2019-12-16 04:01:55 +01:00
|
|
|
void on_NewButton_clicked();
|
|
|
|
void on_DeleteButton_clicked();
|
|
|
|
void on_RenameButton_clicked();
|
2020-01-09 21:06:42 +01:00
|
|
|
void on_ImportButton_clicked();
|
2019-12-16 04:01:55 +01:00
|
|
|
void on_MoveUpButton_clicked();
|
|
|
|
void on_MoveDownButton_clicked();
|
|
|
|
void on_PaletteList_currentRowChanged(int CurrentRow);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void UpdateButtons();
|
|
|
|
|
|
|
|
Ui::lcPartPaletteDialog* ui;
|
|
|
|
std::vector<lcPartPalette>& mPartPalettes;
|
2020-01-09 21:06:42 +01:00
|
|
|
std::vector<lcPartPalette*> mImportedPalettes;
|
2019-12-16 04:01:55 +01:00
|
|
|
};
|