37 bool foundtheme =
LoadWindowFromXML(
"mytharchive-ui.xml",
"selectdestination",
this);
58 LOG(VB_GENERAL, LOG_ERR,
"Cannot load screen 'selectdestination'");
73 item->SetData(QVariant::fromValue(
dest.type));
97 for (
int i = 0; i < actions.size() && !handled; i++)
99 const QString&
action = actions[i];
127 if (native->Create())
151 bool bCreateISO =
false;
152 bool bDoBurn =
false;
153 bool bEraseDvdRw =
false;
154 QString saveFilename =
"";
155 int destinationType = 0;
281 if (selector->Create())
300 if (!fsInfo.refresh())
303 int pos = dir.lastIndexOf(
'/');
312 if (fsInfo.refresh())
std::vector< ArchiveDestination > ArchiveDestinations
int64_t getFreeSpace() const
void SaveSetting(const QString &key, int newValue)
QString GetSetting(const QString &key, const QString &defaultval="")
int GetNumSetting(const QString &key, int defaultval=0)
MythScreenStack * GetMainStack()
bool TranslateKeyPress(const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
Get a list of actions for a keypress in the given context.
virtual void AddScreen(MythScreenType *screen, bool allowFade=true)
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)
MythUIText * m_freespaceText
void saveConfiguration(void)
void filenameEditLostFocus(void)
MythUIButton * m_prevButton
MythUIText * m_eraseDvdRwText
MythUICheckBox * m_doBurnCheck
void fileFinderClosed(const QString &filename)
bool Create(void) override
MythUIButton * m_findButton
MythUIText * m_destinationText
MythUIButton * m_nextButton
void handleNextPage(void)
MythUIButtonList * m_destinationSelector
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIText * m_doBurnText
MythUICheckBox * m_createISOCheck
MythUICheckBox * m_eraseDvdRwCheck
~SelectDestination(void) override
MythUITextEdit * m_filenameEdit
ArchiveDestination m_archiveDestination
void setDestination(MythUIButtonListItem *item)
MythUIButton * m_cancelButton
void handlePrevPage(void)
void loadConfiguration(void)
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)
MBASE_PUBLIC QString formatKBytes(int64_t sizeKB, int prec=1)
static bool Assign(ContainerType *container, UIType *&item, const QString &name, bool *err=nullptr)