1 #ifndef MUSICLRCCONTAINERFORDESKTOP_H
2 #define MUSICLRCCONTAINERFORDESKTOP_H
30 class MusicLRCManagerForDesktop;
65 virtual void initCurrentLrc()
const;
70 void setCurrentPlayState(
bool state)
const;
74 void updateCurrentLrc(
const QString &first,
const QString &second, qint64 time);
88 void setWindowLockedChanged(
bool lock);
94 void setWindowLockedChanged();
98 void setLrcBiggerChanged();
102 void setLrcSmallerChanged();
106 void toolStyleChanged();
110 virtual void setSingleLineTypeChanged();
116 void createColorMenu(QMenu &menu);
120 void setSelfPosition()
const;
124 void creatToolBarWidget();
129 virtual void resizeLrcSizeArea() = 0;
133 void resizeLrcSizeArea(
bool resize);
137 virtual void mousePressEvent(QMouseEvent *event)
override final;
138 virtual void mouseMoveEvent(QMouseEvent *event)
override final;
139 virtual void contextMenuEvent(QContextMenuEvent *event)
override final;
140 virtual void enterEvent(
QtEnterEvent *event)
override final;
141 virtual void leaveEvent(QEvent *event)
override final;
142 virtual void closeEvent(QCloseEvent *event)
override final;
221 #endif // MUSICLRCCONTAINERFORDESKTOP_H
#define QtEnterEvent
Event enter.
#define TTK_MODULE_EXPORT
bool isVerticalWindowType() const
QBoxLayout * m_toolBarLayout
static constexpr int TOOLBAR_TEXT_LENGTH
The class of the desktop vertical lrc container.
virtual void setSingleLineTypeChanged()
virtual void initCurrentLrc() const
The class of the lrc container base.
QToolButton * m_toolPlayButton
virtual void stopDrawLrc()=0
virtual void applyParameter()
#define TTK_DECLARE_MODULE(Class)
The class of the desktop horizontal lrc container.
static constexpr int TOOLBAR_MAIN_HEIGHT
static constexpr int TOOLBAR_HEIGHT
virtual void resizeLrcSizeArea()=0
static constexpr int TOOLBAR_WIDTH
QWidget * m_toolBarWidget
The class of the desktop lrc container.
virtual void startDrawLrc()=0