tageditor/gui/entertargetdialog.h

55 lines
1.2 KiB
C
Raw Permalink Normal View History

2015-04-22 19:33:53 +02:00
#ifndef ENTERTARGETLEVELDIALOG_H
#define ENTERTARGETLEVELDIALOG_H
#include <tagparser/tagtarget.h>
#include <QDialog>
#include <memory>
2019-06-10 22:49:46 +02:00
namespace QtUtilities {
2015-04-22 19:33:53 +02:00
class ChecklistModel;
}
2018-03-06 23:10:13 +01:00
namespace TagParser {
2015-04-22 19:33:53 +02:00
class MediaFileInfo;
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);
2019-06-01 12:45:12 +02:00
~EnterTargetDialog() override;
2015-04-22 19:33:53 +02:00
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
2023-03-26 22:19:27 +02:00
protected:
bool event(QEvent *event) override;
2020-03-08 14:04:29 +01:00
private Q_SLOTS:
2015-04-22 19:33:53 +02:00
void updateLevelNamePlaceholderText(int i);
2023-03-26 22:19:27 +02:00
void updateStyleSheet();
2015-04-22 19:33:53 +02:00
private:
std::unique_ptr<Ui::EnterTargetDialog> m_ui;
2019-06-10 22:49:46 +02:00
QtUtilities::ChecklistModel *m_tracksModel;
QtUtilities::ChecklistModel *m_chaptersModel;
QtUtilities::ChecklistModel *m_editionsModel;
QtUtilities::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