CCIMXDesktop
Loading...
Searching...
No Matches
appcardwidget.h
1
#ifndef APPCARDWIDGET_H
2
#define APPCARDWIDGET_H
3
4
#include <QWidget>
5
6
class
DesktopToast
;
7
class
QLabel;
8
namespace
Ui {
9
class
AppCardWidget
;
10
}
11
18
class
AppCardWidget
:
public
QWidget {
19
Q_OBJECT
20
21
public
:
25
Q_DISABLE_COPY
(
AppCardWidget
);
26
30
AppCardWidget
() =
delete
;
31
37
explicit
AppCardWidget
(
DesktopToast
* toast, QWidget* parent =
nullptr
);
38
42
~AppCardWidget
();
43
52
virtual
void
setCurrentIcon
(
const
QPixmap& icons);
53
60
virtual
void
invoke_preLaunch_work
() = 0;
64
virtual
void
operate_comment_label
() = 0;
65
69
void
invoke_textlabel_stylefresh
();
70
71
protected
:
78
virtual
void
postAppCardWidget
() = 0;
79
84
virtual
void
setHelperFunction
(
const
QString& what);
85
90
virtual
void
setupSelfTextLabelStyle
(QLabel* selfTextLabel) = 0;
91
92
DesktopToast
*
binding_toast
;
93
Ui::AppCardWidget*
ui
;
94
95
public
:
102
bool
eventFilter
(QObject* watched, QEvent* event)
override
;
103
};
104
105
#endif
// APPCARDWIDGET_H
AppCardWidget
AppCardWidget is a lightweight widget used to post messages to a DesktopToast.
Definition
appcardwidget.h:18
AppCardWidget::setHelperFunction
virtual void setHelperFunction(const QString &what)
setHelperFunction: plainly set the text for shown
Definition
appcardwidget.cpp:36
AppCardWidget::setCurrentIcon
virtual void setCurrentIcon(const QPixmap &icons)
Set the current icon for the app card.
Definition
appcardwidget.cpp:27
AppCardWidget::~AppCardWidget
~AppCardWidget()
Virtual destructor.
Definition
appcardwidget.cpp:40
AppCardWidget::invoke_preLaunch_work
virtual void invoke_preLaunch_work()=0
Abstract method to invoke pre-launch operations.
AppCardWidget::Q_DISABLE_COPY
Q_DISABLE_COPY(AppCardWidget)
Disable copy constructor and assignment operator.
AppCardWidget::eventFilter
bool eventFilter(QObject *watched, QEvent *event) override
Event filter to handle user interaction events.
Definition
appcardwidget.cpp:44
AppCardWidget::invoke_textlabel_stylefresh
void invoke_textlabel_stylefresh()
invoke_textlabel_stylefresh
Definition
appcardwidget.cpp:32
AppCardWidget::operate_comment_label
virtual void operate_comment_label()=0
operate_comment_label
AppCardWidget::AppCardWidget
AppCardWidget()=delete
Default constructor deleted to force usage of parameterized constructor.
AppCardWidget::setupSelfTextLabelStyle
virtual void setupSelfTextLabelStyle(QLabel *selfTextLabel)=0
setup self text label style
AppCardWidget::binding_toast
DesktopToast * binding_toast
Pointer to the toast widget used for posting messages.
Definition
appcardwidget.h:92
AppCardWidget::postAppCardWidget
virtual void postAppCardWidget()=0
Abstract method to post messages to the bound DesktopToast.
AppCardWidget::ui
Ui::AppCardWidget * ui
UI object generated from the Qt Designer form.
Definition
appcardwidget.h:93
DesktopToast
The DesktopToast class is the toast handle classes using less lock messages queue to display the mess...
Definition
DesktopToast.h:15
ui
appcardwidget.h
Generated by
1.9.8