00001 #ifndef BOOKMARKMANAGER_H 00002 #define BOOKMARKMANAGER_H 00003 00004 #include <mythtv/uitypes.h> 00005 #include <mythtv/xmlparse.h> 00006 #include <mythtv/oldsettings.h> 00007 #include <mythtv/mythwidgets.h> 00008 #include <mythtv/mythdialogs.h> 00009 00010 //class BookmarkConfigPriv; 00011 00012 class PopupBox : public QDialog 00013 { 00014 Q_OBJECT 00015 00016 public: 00017 PopupBox(QWidget *parent); 00018 ~PopupBox(); 00019 00020 signals: 00021 void finished(const char* group, const char* desc,const char* url); 00022 00023 private slots: 00024 void slotOkClicked(); 00025 00026 private: 00027 QLineEdit* group; 00028 QLineEdit* desc; 00029 QLineEdit* url; 00030 }; 00031 00032 class BookmarksConfig : public MythDialog 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 00038 BookmarksConfig(MythMainWindow *parent, 00039 const char *name = 0); 00040 ~BookmarksConfig(); 00041 00042 private: 00043 00044 void populateListView(); 00045 void setupView(); 00046 00047 MythSpinBox *zoom; 00048 MythSpinBox *scrollspeed; 00049 MythCheckBox *scrollmode; 00050 MythCheckBox *hidescrollbars; 00051 MythLineEdit *browser; 00052 MythListView *myBookmarksView; 00053 00054 private slots: 00055 00056 void slotBookmarksViewExecuted(QListViewItem *item); 00057 void slotAddBookmark(); 00058 void slotFinish(); 00059 void slotWebSiteAdded(const char* group, const char* desc, const char* url); 00060 }; 00061 00062 00063 class Bookmarks : public MythDialog 00064 { 00065 Q_OBJECT 00066 00067 public: 00068 00069 Bookmarks(MythMainWindow *parent, const char *name = 0); 00070 ~Bookmarks(); 00071 00072 private: 00073 00074 void populateListView(); 00075 void setupView(); 00076 00077 MythListView *myBookmarksView; 00078 // BookmarkConfigPriv *myTree; 00079 00080 private slots: 00081 00082 void slotBookmarksViewExecuted(QListViewItem *item); 00083 }; 00084 00085 #endif /* BOOKMARKMANAGER_H */
1.5.5