From d779d32c8c32e0e0c22662046498620b11fa46de Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 12 Feb 2017 00:29:01 +0800 Subject: New functionality API. Port built-in features to the new API. Start the revamp of the main Window. Credit of the new design goes to @BLumia. --- qmidiplayer-desktop/qmpinfowindow.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'qmidiplayer-desktop/qmpinfowindow.hpp') diff --git a/qmidiplayer-desktop/qmpinfowindow.hpp b/qmidiplayer-desktop/qmpinfowindow.hpp index a76b46b..87ac2c0 100644 --- a/qmidiplayer-desktop/qmpinfowindow.hpp +++ b/qmidiplayer-desktop/qmpinfowindow.hpp @@ -6,6 +6,8 @@ #include #include #include +#include +#include "../include/qmpcorepublic.hpp" namespace Ui { class qmpInfoWindow; @@ -25,6 +27,17 @@ class QClickableLabel : public QLabel } }; +class qmpInfoWindow; +class qmpInfoFunc:public qmpFuncBaseIntf +{ + private: + qmpInfoWindow *p; + public: + qmpInfoFunc(qmpInfoWindow *par); + void show(); + void close(); +}; + class qmpInfoWindow : public QDialog { Q_OBJECT @@ -32,11 +45,13 @@ class qmpInfoWindow : public QDialog public: explicit qmpInfoWindow(QWidget *parent = 0); ~qmpInfoWindow(); + void closeEvent(QCloseEvent *e); public slots: void updateInfo(); private: Ui::qmpInfoWindow *ui; + qmpInfoFunc *infof; }; #endif // QMPINFOWINDOW_HPP -- cgit v1.2.3