1 #ifndef MUSICLRCCCONTAINERFORINTERIOR_H
2 #define MUSICLRCCCONTAINERFORINTERIOR_H
51 virtual void start()
override final;
55 virtual void stop()
override final;
64 void updateCurrentLrc(qint64 time);
76 qint64 findTimePosition(qint64 time);
94 void setLrcSize(
int size);
98 int lrcSize()
const noexcept;
103 void resizeGeometry();
108 void createFloatPlayWidget();
112 void lrcWidgetShowFullScreen();
118 void backgroundChanged();
122 void updateCurrentTime(qint64 time);
128 void lrcSizeChanged(QAction *action);
132 void lrcTimePositionChanged(QAction *action);
136 void revertTimePosition();
140 void saveLrcTimeChanged();
144 void artistBackgroundChanged();
148 void lrcOpenFileDir()
const;
152 void lrcCopyClipboard() const;
156 void showLocalLinkWidget();
160 void showSongCommentsWidget();
164 void showLrcPosterWidget();
170 void showSongMovieWidget();
174 void updateAnimationLrc();
178 void translatedLrcData();
184 virtual
void contextMenuEvent(QContextMenuEvent *event) override final;
185 virtual
void mousePressEvent(QMouseEvent *event) override final;
186 virtual
void mouseMoveEvent(QMouseEvent *event) override final;
187 virtual
void mouseReleaseEvent(QMouseEvent *event) override final;
188 virtual
void mouseDoubleClickEvent(QMouseEvent *event) override final;
189 virtual
void paintEvent(QPaintEvent *event) override final;
194 void createFunctionLabel();
198 void createColorMenu(QMenu *menu);
202 void setTimePosition(qint64 pos);
206 void createNoLrcCurrentInfo();
210 void showNoLrcCurrentInfo();
214 void initCurrentLrc(const QString &str);
218 void setItemStyleSheet();
222 void setItemStyleSheet(
int index,
int size,
int transparent);
226 int mapLrcSizeProperty(
int size);
230 void setLrcSizeProperty(
int property);
234 void resizeWidth(
int w,
int h);
237 int m_lrcChangeOffset, m_lrcChangeDelta;
238 bool m_mouseLeftPressed, m_lrcChangeState, m_mouseMoved;
240 bool m_lrcDisplayAll, m_showArtistBackground;
241 int m_animationFreshTime, m_lrcSizeProperty;
243 qint64 m_timePositionOffset;
244 QWidget *m_functionLabel;
255 #endif // MUSICLRCCCONTAINERFORINTERIOR_H
The class of the interior lrc container.
#define TTK_MODULE_EXPORT
bool isShowArtistBackground() const noexcept
void setLrcDisplayExpand(bool expand) noexcept
The class of the label widget that can click.
The class of the lrc container base.
virtual void applyParameter()
bool lrcDisplayExpand() const noexcept