2015-04-22 19:33:53 +02:00
|
|
|
#ifndef ENTERTARGETLEVELDIALOG_H
|
|
|
|
#define ENTERTARGETLEVELDIALOG_H
|
|
|
|
|
|
|
|
#include <tagparser/tagtarget.h>
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
namespace Models {
|
|
|
|
class ChecklistModel;
|
|
|
|
}
|
|
|
|
|
2018-03-06 23:10:13 +01:00
|
|
|
namespace TagParser {
|
2015-04-22 19:33:53 +02:00
|
|
|
class MediaFileInfo;
|
2018-03-21 20:31:13 +01:00
|
|
|
enum class ContainerFormat : unsigned int;
|
2018-03-07 01:18:01 +01:00
|
|
|
} // namespace TagParser
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
namespace QtGui {
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class EnterTargetDialog;
|
|
|
|
}
|
|
|
|
|
2018-03-07 01:18:01 +01:00
|
|
|
class EnterTargetDialog : public QDialog {
|
2015-04-22 19:33:53 +02:00
|
|
|
Q_OBJECT
|
2018-03-06 23:10:13 +01:00
|
|
|
Q_PROPERTY(TagParser::TagTarget target READ target WRITE setTarget)
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
explicit EnterTargetDialog(QWidget *parent = nullptr);
|
|
|
|
~EnterTargetDialog();
|
|
|
|
|
2018-03-06 23:10:13 +01:00
|
|
|
TagParser::TagTarget target() const;
|
|
|
|
void setTarget(const TagParser::TagTarget &target, const TagParser::MediaFileInfo *file = nullptr);
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void updateLevelNamePlaceholderText(int i);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::unique_ptr<Ui::EnterTargetDialog> m_ui;
|
|
|
|
Models::ChecklistModel *m_tracksModel;
|
|
|
|
Models::ChecklistModel *m_chaptersModel;
|
|
|
|
Models::ChecklistModel *m_editionsModel;
|
|
|
|
Models::ChecklistModel *m_attachmentsModel;
|
2018-03-06 23:10:13 +01:00
|
|
|
TagParser::ContainerFormat m_currentContainerFormat;
|
2015-04-22 19:33:53 +02:00
|
|
|
};
|
|
|
|
|
2018-03-07 01:18:01 +01:00
|
|
|
} // namespace QtGui
|
2015-04-22 19:33:53 +02:00
|
|
|
|
|
|
|
#endif // ENTERTARGETLEVELDIALOG_H
|