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