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() override = 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
MythUISearchDialog
Provide a dialog to quickly find an entry in a list.
Definition: mythdialogbox.h:348
BookmarkEditor::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: bookmarkeditor.cpp:83
mythuitext.h
BookmarkEditor::~BookmarkEditor
~BookmarkEditor() override=default
BookmarkEditor::m_cancelButton
MythUIButton * m_cancelButton
Definition: bookmarkeditor.h:45
BookmarkEditor::m_findCategoryButton
MythUIButton * m_findCategoryButton
Definition: bookmarkeditor.h:46
mythdialogbox.h
MythScreenStack
Definition: mythscreenstack.h:15
MythUITextEdit
A text entry and edit widget.
Definition: mythuitextedit.h:32
slots
unsigned int slots[4]
Definition: element.cpp:38
category
QString category
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:1419
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
BookmarkEditor::m_searchDialog
MythUISearchDialog * m_searchDialog
Definition: bookmarkeditor.h:48
BookmarkEditor::m_siteCategory
QString m_siteCategory
Definition: bookmarkeditor.h:34
BookmarkEditor::m_urlEdit
MythUITextEdit * m_urlEdit
Definition: bookmarkeditor.h:41
BookmarkEditor::Save
void Save(void)
Definition: bookmarkeditor.cpp:102
BookmarkEditor::m_isHomepage
MythUICheckBox * m_isHomepage
Definition: bookmarkeditor.h:42
BookmarkEditor::Create
bool Create(void) override
Definition: bookmarkeditor.cpp:32
BookmarkEditor
Site category, name and URL edit screen.
Definition: bookmarkeditor.h:18
MythUIButton
A single button widget.
Definition: mythuibutton.h:21
BookmarkEditor::m_categoryEdit
MythUITextEdit * m_categoryEdit
Definition: bookmarkeditor.h:39
Bookmark
Definition: bookmarkmanager.h:13
MythUICheckBox
A checkbox widget supporting three check states - on,off,half and two conditions - selected and unsel...
Definition: mythuicheckbox.h:15
BookmarkEditor::slotCategoryFound
void slotCategoryFound(const QString &category)
Definition: bookmarkeditor.cpp:148
BookmarkEditor::BookmarkEditor
BookmarkEditor(Bookmark *site, bool edit, MythScreenStack *parent, const char *name)
Creates a new BookmarkEditor Screen.
Definition: bookmarkeditor.cpp:19
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
BookmarkEditor::m_editing
bool m_editing
Definition: bookmarkeditor.h:35
mythuitextedit.h
BookmarkEditor::Exit
void Exit(void)
Definition: bookmarkeditor.cpp:97
BookmarkEditor::m_okButton
MythUIButton * m_okButton
Definition: bookmarkeditor.h:44
BookmarkEditor::m_site
Bookmark * m_site
Definition: bookmarkeditor.h:32
mythuibutton.h
mythuicheckbox.h
BookmarkEditor::m_titleText
MythUIText * m_titleText
Definition: bookmarkeditor.h:37
BookmarkEditor::slotFindCategory
void slotFindCategory(void)
Definition: bookmarkeditor.cpp:123
mythscreentype.h
BookmarkEditor::m_siteName
QString m_siteName
Definition: bookmarkeditor.h:33
BookmarkEditor::m_nameEdit
MythUITextEdit * m_nameEdit
Definition: bookmarkeditor.h:40