Files
threeSD/src/frontend/title_info_dialog.h
T
Pengfei 0cf7e8a84a Really properly be per-monitor DPI aware
This is so hard...
2021-08-17 00:30:08 +08:00

48 lines
1.1 KiB
C++

// Copyright 2021 threeSD Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include <memory>
#include "core/file_sys/smdh.h"
#include "frontend/helpers/dpi_aware_dialog.h"
namespace Core {
struct Config;
struct ContentSpecifier;
class NCCHContainer;
class SDMCImporter;
class TitleMetadata;
} // namespace Core
namespace Ui {
class TitleInfoDialog;
}
class TitleInfoDialog : public DPIAwareDialog {
Q_OBJECT
public:
explicit TitleInfoDialog(QWidget* parent, Core::SDMCImporter& importer,
Core::ContentSpecifier specifier);
~TitleInfoDialog();
private:
void LoadInfo();
void LoadEncryption(Core::NCCHContainer& ncch);
void LoadIcons();
void InitializeLanguageComboBox();
void InitializeChecks(Core::TitleMetadata& tmd);
void SaveIcon(bool large);
void UpdateNames();
void ExecuteContentsCheck();
std::unique_ptr<Ui::TitleInfoDialog> ui;
Core::SDMCImporter& importer;
const Core::ContentSpecifier specifier;
Core::SMDH smdh{};
bool contents_check_result = false;
};