Go to the documentation of this file.
2 #include <QImageReader>
3 #include <QApplication>
22 const QString& name,
RomInfo *romInfo)
24 m_workingRomInfo(new
RomInfo(*romInfo))
59 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'edit_metadata'");
91 QList<QByteArray> exts = QImageReader::supportedImageFormats();
92 for (
const auto & ext : std::as_const(exts))
93 ret.append(QString(
"*.").append(ext));
99 QObject &inst,
const QString &returnEvent)
110 fb->SetReturnEvent(&inst, returnEvent);
128 const QString resultid = dce->GetId();
157 const QString &resultid)
169 QVariant::fromValue(romInfo));
const QString CEID_BOXARTFILE
MythUITextEdit * m_yearEdit
void setBoxart(const QString &lboxart)
void setCountry(const QString &lcountry)
void SetBoxart(const QString &file)
const QString CEID_SCREENSHOTFILE
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Screen in which all other widgets are contained and rendered.
void FindImagePopup(const QString &prefix, const QString &prefixAlt, QObject &inst, const QString &returnEvent)
QString GetText(void) const
MythUIButton * m_fanartButton
void customEvent(QEvent *levent) override
MythUIText * m_boxartText
MythUITextEdit * m_genreEdit
MythUITextEdit * m_plotEdit
void SetText(const QString &text, bool moveCursor=true)
QString Screenshot() const
const QString CEID_FANARTFILE
void setGamename(const QString &lgamename)
MythUITextEdit * m_gamenameEdit
void BuildFocusList(void)
void SetReturnEvent(QObject *retobject, const QString &resultid)
MythUIText * m_screenshotText
QStringList GetSupportedImageExtensionFilter()
void setPublisher(const QString &lpublisher)
MythUIButton * m_screenshotButton
void setFavorite(bool updateDatabase=false)
void setFanart(const QString &lfanart)
void setPlot(const QString &lplot)
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
QString Publisher() const
EditRomInfoDialog(MythScreenStack *parent, const QString &name, RomInfo *romInfo)
MythUICheckBox * m_favoriteCheck
void SetCheckState(MythUIStateType::StateType state)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
Event dispatched from MythUI modal dialogs to a listening class containing a result of some form.
void setYear(const QString &lyear)
~EditRomInfoDialog() override
MythUITextEdit * m_countryEdit
void SetFanart(const QString &file)
virtual void SetText(const QString &text)
void SetScreenshot(const QString &file)
MythMainWindow * GetMythMainWindow(void)
MythUITextEdit * m_publisherEdit
MythScreenStack * GetStack(const QString &Stackname)
RomInfo * m_workingRomInfo
void setScreenshot(const QString &lscreenshot)
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
MythUIButton * m_boxartButton
MythUIButton * m_doneButton
void setGenre(const QString &lgenre)
QString GetSetting(const QString &key, const QString &defaultval="")
MythUIText * m_fanartText