MythTV
master
mythplugins
mythbrowser
mythbrowser
bookmarkeditor.h
Go to the documentation of this file.
1
#ifndef BOOKMARKEDITOR_H
2
#define BOOKMARKEDITOR_H
3
4
// MythTV
5
#include <
libmythui/mythdialogbox.h
>
6
#include <
libmythui/mythscreentype.h
>
7
#include <
libmythui/mythuibutton.h
>
8
#include <
libmythui/mythuicheckbox.h
>
9
#include <
libmythui/mythuitext.h
>
10
#include <
libmythui/mythuitextedit.h
>
11
12
13
class
Bookmark
;
14
18
class
BookmarkEditor
:
public
MythScreenType
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
39
MythUITextEdit
*
m_categoryEdit
{
nullptr
};
40
MythUITextEdit
*
m_nameEdit
{
nullptr
};
41
MythUITextEdit
*
m_urlEdit
{
nullptr
};
42
MythUICheckBox
*
m_isHomepage
{
nullptr
};
43
44
MythUIButton
*
m_okButton
{
nullptr
};
45
MythUIButton
*
m_cancelButton
{
nullptr
};
46
MythUIButton
*
m_findCategoryButton
{
nullptr
};
47
48
MythUISearchDialog
*
m_searchDialog
{
nullptr
};
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:399
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:16
MythUITextEdit
A text entry and edit widget.
Definition:
mythuitextedit.h:34
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
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:11
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
Generated on Sat Jun 3 2023 03:24:24 for MythTV by
1.8.17