00001 #ifndef SELECTDESTINATION_H_ 00002 #define SELECTDESTINATION_H_ 00003 00004 // qt 00005 #include <QKeyEvent> 00006 00007 // mythtv 00008 #include <mythscreentype.h> 00009 00010 // mytharchive 00011 #include "archiveutil.h" 00012 00013 class MythUIText; 00014 class MythUIButton; 00015 class MythUICheckBox; 00016 class MythUIButtonList; 00017 class MythUITextEdit; 00018 class MythUIButtonListItem; 00019 00020 class SelectDestination : public MythScreenType 00021 { 00022 00023 Q_OBJECT 00024 00025 public: 00026 SelectDestination(MythScreenStack *parent, bool nativeMode, QString name); 00027 ~SelectDestination(void); 00028 00029 bool Create(void); 00030 bool keyPressEvent(QKeyEvent *); 00031 00032 public slots: 00033 00034 void handleNextPage(void); 00035 void handlePrevPage(void); 00036 void handleCancel(void); 00037 00038 void handleFind(void); 00039 void filenameEditLostFocus(void); 00040 void setDestination(MythUIButtonListItem *item); 00041 void fileFinderClosed(QString filename); 00042 00043 private: 00044 void loadConfiguration(void); 00045 void saveConfiguration(void); 00046 00047 bool m_nativeMode; 00048 00049 ArchiveDestination m_archiveDestination; 00050 int m_freeSpace; 00051 00052 MythUIButton *m_nextButton; 00053 MythUIButton *m_prevButton; 00054 MythUIButton *m_cancelButton; 00055 00056 MythUIButtonList *m_destinationSelector; 00057 MythUIText *m_destinationText; 00058 00059 MythUIText *m_freespaceText; 00060 00061 MythUITextEdit *m_filenameEdit; 00062 MythUIButton *m_findButton; 00063 00064 MythUICheckBox *m_createISOCheck; 00065 MythUICheckBox *m_doBurnCheck; 00066 MythUICheckBox *m_eraseDvdRwCheck; 00067 MythUIText *m_createISOText; 00068 MythUIText *m_doBurnText; 00069 MythUIText *m_eraseDvdRwText; 00070 }; 00071 00072 #endif
1.6.3