[nostalgia/core/studio] Remove unused BPP field from tile sheet import wizard
This commit is contained in:
parent
6baa9a251c
commit
5b57f4279a
@ -13,14 +13,9 @@
|
||||
|
||||
namespace nostalgia::core {
|
||||
|
||||
const QString ImportTilesheetWizardPage::TileSheetDir = "/TileSheets/";
|
||||
const QString ImportTilesheetWizardPage::TileSheetName = "projectName";
|
||||
const QString ImportTilesheetWizardPage::ImportPath = "projectPath";
|
||||
const QString ImportTilesheetWizardPage::BPP = "bpp";
|
||||
|
||||
ImportTilesheetWizardPage::ImportTilesheetWizardPage(const studio::Context *ctx) {
|
||||
m_ctx = ctx;
|
||||
addLineEdit(tr("&Tile Sheet Name:"), TileSheetName + "*", "", [this](QString) {
|
||||
addLineEdit(tr("&Tile Sheet Name:"), QString(TileSheetName) + "*", "", [this](QString) {
|
||||
auto importPath = field(ImportPath).toString();
|
||||
if (QFile(importPath).exists()) {
|
||||
return 0;
|
||||
@ -31,9 +26,9 @@ ImportTilesheetWizardPage::ImportTilesheetWizardPage(const studio::Context *ctx)
|
||||
}
|
||||
);
|
||||
auto fileTypes = "(*.png);;(*.bmp);;(*.jpg);;(*.jpeg)";
|
||||
addPathBrowse(tr("Tile Sheet &Path:"), ImportPath + "*", "",
|
||||
addPathBrowse(tr("Tile Sheet &Path:"), QString(ImportPath) + "*", "",
|
||||
QFileDialog::ExistingFile, fileTypes);
|
||||
addComboBox(tr("Bits Per Pixe&l:"), BPP, {"4", "8"});
|
||||
//addComboBox(tr("Bits Per Pixe&l:"), BPP, {tr("Auto"), "4", "8"});
|
||||
}
|
||||
|
||||
int ImportTilesheetWizardPage::accept() {
|
||||
|
@ -14,10 +14,10 @@ namespace nostalgia::core {
|
||||
|
||||
class ImportTilesheetWizardPage: public studio::WizardFormPage {
|
||||
private:
|
||||
static const QString TileSheetDir;
|
||||
static const QString TileSheetName;
|
||||
static const QString ImportPath;
|
||||
static const QString BPP;
|
||||
static constexpr auto TileSheetDir = "/TileSheets/";
|
||||
static constexpr auto TileSheetName = "projectName";
|
||||
static constexpr auto ImportPath = "projectPath";
|
||||
//static constexpr auto BPP = "bpp";
|
||||
const studio::Context *m_ctx = nullptr;
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user