18#define LOC QString("MythNewsEditor: ")
19#define LOC_WARN QString("MythNewsEditor, Warning: ")
20#define LOC_ERR QString("MythNewsEditor, Error: ")
31 const QString &name) :
34 m_siteName((edit && site) ? site->name() : QString()),
41 QMutexLocker locker(&
m_lock);
46 QMutexLocker locker(&
m_lock);
69 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'editor'");
76 (
m_editing) ? tr(
"Edit Site Details") : tr(
"Enter Site Details"));
127 QMutexLocker locker(&
m_lock);
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
MythUITextEdit * m_urlEdit
MythUIButton * m_cancelButton
MythUIText * m_podcastLabelText
MythUITextEdit * m_iconEdit
MythUIButton * m_okButton
MythUIText * m_iconLabelText
MythUIText * m_nameLabelText
MythUITextEdit * m_nameEdit
MythNewsEditor(NewsSite *site, bool edit, MythScreenStack *parent, const QString &name="MythNewsEditor")
Creates a new MythNewsEditor Screen.
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool Create(void) override
MythUIText * m_urlLabelText
~MythNewsEditor() override
MythUICheckBox * m_podcastCheck
Screen in which all other widgets are contained and rendered.
void BuildFocusList(void)
MythUIType * GetFocusWidget(void) const
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
bool SetFocusWidget(MythUIType *widget=nullptr)
void SetCheckState(MythUIStateType::StateType state)
MythUIStateType::StateType GetCheckState() const
QString GetText(void) const
void SetText(const QString &text, bool moveCursor=true)
virtual void SetText(const QString &text)
QString imageURL(void) const
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
MythMainWindow * GetMythMainWindow(void)
bool removeFromDB(RSSSite *site)
bool insertInDB(RSSSite *site)
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)