Go to the documentation of this file.
36 bool foundtheme =
LoadWindowFromXML(
"mytharchive-ui.xml",
"selectdestination",
this);
57 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'selectdestination'");
72 item->SetData(QVariant::fromValue(
dest.type));
96 for (
int i = 0; i < actions.size() && !handled; i++)
98 const QString&
action = actions[i];
126 if (native->Create())
150 bool bCreateISO =
false;
151 bool bDoBurn =
false;
152 bool bEraseDvdRw =
false;
153 QString saveFilename =
"";
154 int destinationType = 0;
281 if (selector->Create())
304 int pos = dir.lastIndexOf(
'/');
MythScreenStack * GetMainStack()
int64_t getDiskSpace(const QString &file_on_disk, int64_t &total, int64_t &used)
MythUIButtonList * m_destinationSelector
MythUITextEdit * m_filenameEdit
void saveConfiguration(void)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
QString GetText(void) const
void setDestination(MythUIButtonListItem *item)
MythUIType * GetFocusWidget(void) const
void SetText(const QString &text, bool moveCursor=true)
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
void filenameEditLostFocus(void)
MythUIButton * m_findButton
bool SetFocusWidget(MythUIType *widget=nullptr)
void loadConfiguration(void)
MythUIButton * m_cancelButton
void BuildFocusList(void)
MythUIText * m_eraseDvdRwText
MythUIButton * m_nextButton
ArchiveDestination m_archiveDestination
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
void fileFinderClosed(const QString &filename)
int GetNumSetting(const QString &key, int defaultval=0)
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)
MBASE_PUBLIC QString formatKBytes(int64_t sizeKB, int prec=1)
MythUIText * m_destinationText
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void SetCheckState(MythUIStateType::StateType state)
static bool LoadWindowFromXML(const QString &xmlfile, const QString &windowname, MythUIType *parent)
void handlePrevPage(void)
std::vector< ArchiveDestination > ArchiveDestinations
MythUICheckBox * m_eraseDvdRwCheck
virtual void SetText(const QString &text)
MythUIText * m_doBurnText
MythMainWindow * GetMythMainWindow(void)
MythUIText * m_freespaceText
void handleNextPage(void)
~SelectDestination(void) override
MythUIButton * m_prevButton
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void SaveSetting(const QString &key, int newValue)
MythUIStateType::StateType GetCheckState() const
MythUICheckBox * m_doBurnCheck
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
bool Create(void) override
MythUICheckBox * m_createISOCheck
QString GetSetting(const QString &key, const QString &defaultval="")