00001 #ifndef BOOKMARKEDITOR_H 00002 #define BOOKMARKEDITOR_H 00003 00004 // myth 00005 #include <mythscreentype.h> 00006 #include <mythdialogbox.h> 00007 #include <mythuibutton.h> 00008 #include <mythuitext.h> 00009 #include <mythuitextedit.h> 00010 00011 00012 class Bookmark; 00013 00017 class BookmarkEditor : public MythScreenType 00018 { 00019 Q_OBJECT 00020 00021 public: 00022 00023 BookmarkEditor(Bookmark *site, bool edit, MythScreenStack *parent, 00024 const char *name); 00025 ~BookmarkEditor(); 00026 00027 bool Create(void); 00028 bool keyPressEvent(QKeyEvent *event); 00029 00030 private: 00031 Bookmark *m_site; 00032 QString m_siteName; 00033 QString m_siteCategory; 00034 bool m_editing; 00035 00036 MythUIText *m_titleText; 00037 00038 MythUITextEdit *m_categoryEdit; 00039 MythUITextEdit *m_nameEdit; 00040 MythUITextEdit *m_urlEdit; 00041 00042 MythUIButton *m_okButton; 00043 MythUIButton *m_cancelButton; 00044 MythUIButton *m_findCategoryButton; 00045 00046 MythUISearchDialog *m_searchDialog; 00047 00048 private slots: 00049 void slotFindCategory(void); 00050 void slotCategoryFound(QString category); 00051 00052 void Save(void); 00053 void Exit(void); 00054 }; 00055 00056 #endif
1.6.3