aboutsummaryrefslogtreecommitdiff
path: root/visualization/renderer/qmpvisrendercore.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2020-05-12 00:58:40 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2020-05-12 00:58:40 +0800
commita7407edaf81c685d4a389785a405a53a5de4b148 (patch)
treee6e4f2d85f2172c94ac83a6e8f01e1e90a78ede9 /visualization/renderer/qmpvisrendercore.hpp
parent437b7b16c322a8e53ac55a5f831098494d9a7073 (diff)
downloadQMidiPlayer-a7407edaf81c685d4a389785a405a53a5de4b148.tar.xz
Format EVERYTHING.
Hopefully this will make the source code less horrendous and actually readable. The command used was: ``` astyle --suffix=none --style=allman --attach-extern-c --attach-closing-while --indent-switches --indent-after-parens --pad-oper --pad-header --unpad-paren --align-pointer=name --recursive './*.cpp,*.hpp' ```
Diffstat (limited to 'visualization/renderer/qmpvisrendercore.hpp')
-rw-r--r--visualization/renderer/qmpvisrendercore.hpp67
1 files changed, 35 insertions, 32 deletions
diff --git a/visualization/renderer/qmpvisrendercore.hpp b/visualization/renderer/qmpvisrendercore.hpp
index 71eeaed..ba978f4 100644
--- a/visualization/renderer/qmpvisrendercore.hpp
+++ b/visualization/renderer/qmpvisrendercore.hpp
@@ -15,44 +15,47 @@ class QCommandLineParser;
class QProcess;
-class qmpVisRenderCore:public QObject
+class qmpVisRenderCore: public QObject
{
- Q_OBJECT
+ Q_OBJECT
public:
- qmpVisRenderCore(QCommandLineParser *_clp);
- bool loadVisualizationLibrary();
- void unloadVisualizationLibrary();
- void loadSettings();
- void setMIDIFile(const char* url);
- void startRender();
-
- qmpSettingsRO* settings(){return msettings;}
+ qmpVisRenderCore(QCommandLineParser *_clp);
+ bool loadVisualizationLibrary();
+ void unloadVisualizationLibrary();
+ void loadSettings();
+ void setMIDIFile(const char *url);
+ void startRender();
+
+ qmpSettingsRO *settings()
+ {
+ return msettings;
+ }
signals:
- void frameRendered(void* px,size_t sz,uint32_t current_tick,uint32_t total_ticks);
+ void frameRendered(void *px, size_t sz, uint32_t current_tick, uint32_t total_ticks);
private:
- qmpPluginIntf *vp;
- qmpFuncBaseIntf *vf;
- callback_t startcb;
- callback_t resetcb;
- void *mp;
- qmpPluginAPIStub *api;
- CMidiPlayer *player;
- qmpSettingsRO *msettings;
- QProcess *rxproc;
- QMap<QChar,QVariant> subst;
- QCommandLineParser *clp;
- QStringList process_arguments(QString a, QMap<QChar,QVariant> subst);
- int frameno;
- bool oneshot;
- QMetaObject::Connection frameconn;
- typedef qmpPluginIntf*(*GetInterface_func)(qmpPluginAPI*);
- typedef void(*SwitchMode_func)(void(*frameCallback)(void*,size_t,uint32_t,uint32_t),bool hidewindow);
-
- friend class qmpPluginAPIStub;
- static void framefunc(void* px, size_t sz, uint32_t curf, uint32_t totf);
- static qmpVisRenderCore *inst;
+ qmpPluginIntf *vp;
+ qmpFuncBaseIntf *vf;
+ callback_t startcb;
+ callback_t resetcb;
+ void *mp;
+ qmpPluginAPIStub *api;
+ CMidiPlayer *player;
+ qmpSettingsRO *msettings;
+ QProcess *rxproc;
+ QMap<QChar, QVariant> subst;
+ QCommandLineParser *clp;
+ QStringList process_arguments(QString a, QMap<QChar, QVariant> subst);
+ int frameno;
+ bool oneshot;
+ QMetaObject::Connection frameconn;
+ typedef qmpPluginIntf *(*GetInterface_func)(qmpPluginAPI *);
+ typedef void(*SwitchMode_func)(void(*frameCallback)(void *, size_t, uint32_t, uint32_t), bool hidewindow);
+
+ friend class qmpPluginAPIStub;
+ static void framefunc(void *px, size_t sz, uint32_t curf, uint32_t totf);
+ static qmpVisRenderCore *inst;
};
#endif // QMPVISRENDERCORE_HPP