MythTV  master
bookmarkeditor.h
Go to the documentation of this file.
1 #ifndef BOOKMARKEDITOR_H
2 #define BOOKMARKEDITOR_H
3 
4 // myth
5 #include <mythscreentype.h>
6 #include <mythdialogbox.h>
7 #include <mythuibutton.h>
8 #include <mythuicheckbox.h>
9 #include <mythuitext.h>
10 #include <mythuitextedit.h>
11 
12 
13 class Bookmark;
14 
19 {
20  Q_OBJECT
21 
22  public:
23 
24  BookmarkEditor(Bookmark *site, bool edit, MythScreenStack *parent,
25  const char *name);
26  ~BookmarkEditor() = default;
27 
28  bool Create(void) override; // MythScreenType
29  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
30 
31  private:
32  Bookmark *m_site {nullptr};
33  QString m_siteName;
34  QString m_siteCategory;
35  bool m_editing;
36 
37  MythUIText *m_titleText {nullptr};
38 
43 
47 
49 
50  private slots:
51  void slotFindCategory(void);
52  void slotCategoryFound(const QString& category);
53 
54  void Save(void);
55  void Exit(void);
56 };
57 
58 #endif
unsigned int slots[4]
Definition: element.c:38
void slotCategoryFound(const QString &category)
MythUIButton * m_findCategoryButton
Bookmark * m_site
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
MythUITextEdit * m_nameEdit
MythUIButton * m_cancelButton
QString m_siteCategory
QString m_siteName
BookmarkEditor(Bookmark *site, bool edit, MythScreenStack *parent, const char *name)
Creates a new BookmarkEditor Screen.
MythUISearchDialog * m_searchDialog
MythUICheckBox * m_isHomepage
A text entry and edit widget.
~BookmarkEditor()=default
A single button widget.
Definition: mythuibutton.h:21
MythUITextEdit * m_urlEdit
void slotFindCategory(void)
Site category, name and URL edit screen.
Screen in which all other widgets are contained and rendered.
bool Create(void) override
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUITextEdit * m_categoryEdit
MythUIText * m_titleText
MythUIButton * m_okButton
Provide a dialog to quickly find an entry in a list.