diff options
Diffstat (limited to 'utils/wpseditor/gui/src/qwpsdrawer.h')
-rw-r--r-- | utils/wpseditor/gui/src/qwpsdrawer.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/utils/wpseditor/gui/src/qwpsdrawer.h b/utils/wpseditor/gui/src/qwpsdrawer.h index d4dfa6c7a2..65e98723f5 100644 --- a/utils/wpseditor/gui/src/qwpsdrawer.h +++ b/utils/wpseditor/gui/src/qwpsdrawer.h | |||
@@ -1,25 +1,30 @@ | |||
1 | #ifndef WPSDRAWER_H | 1 | #ifndef WPSDRAWER_H |
2 | #define WPSDRAWER_H | 2 | #define WPSDRAWER_H |
3 | // | 3 | |
4 | #include <QWidget> | 4 | #include <QWidget> |
5 | #include <QPixmap> | 5 | #include <QPixmap> |
6 | #include <QPointer> | 6 | #include <QPointer> |
7 | #include <QTemporaryFile> | 7 | #include <QTemporaryFile> |
8 | #include "api.h" | 8 | |
9 | #include "qtrackstate.h" | 9 | #include "wpsstate.h" |
10 | #include "qwpsstate.h" | 10 | |
11 | // | 11 | struct proxy_api; |
12 | |||
13 | class QWpsState; | ||
14 | class QTrackState; | ||
12 | 15 | ||
13 | typedef int (*pfwps_init)(const char* buff,struct proxy_api *api, bool isfile); | 16 | typedef int (*pfwps_init)(const char* buff,struct proxy_api *api, bool isfile); |
14 | typedef int (*pfwps_display)(); | 17 | typedef int (*pfwps_display)(); |
15 | typedef int (*pfwps_refresh)(); | 18 | typedef int (*pfwps_refresh)(); |
19 | typedef const char* (*pfget_model_name)(); | ||
16 | 20 | ||
17 | class QWpsDrawer : public QWidget { | 21 | class QWpsDrawer : public QWidget { |
18 | Q_OBJECT | 22 | Q_OBJECT |
19 | 23 | ||
20 | pfwps_init wps_init; | 24 | pfwps_init lib_wps_init; |
21 | pfwps_display wps_display; | 25 | pfwps_display lib_wps_display; |
22 | pfwps_refresh wps_refresh; | 26 | pfwps_refresh lib_wps_refresh; |
27 | pfget_model_name lib_get_model_name; | ||
23 | 28 | ||
24 | static QPixmap *pix; | 29 | static QPixmap *pix; |
25 | static QImage backdrop; | 30 | static QImage backdrop; |
@@ -30,7 +35,7 @@ class QWpsDrawer : public QWidget { | |||
30 | bool showGrid; | 35 | bool showGrid; |
31 | bool mResolved; | 36 | bool mResolved; |
32 | QString mWpsString; | 37 | QString mWpsString; |
33 | QString mTargetLibName; | 38 | QString mCurTarget; |
34 | static QString mTmpWpsString; | 39 | static QString mTmpWpsString; |
35 | 40 | ||
36 | 41 | ||
@@ -42,6 +47,7 @@ protected: | |||
42 | void newTempWps(); | 47 | void newTempWps(); |
43 | void cleanTemp(bool fileToo=true); | 48 | void cleanTemp(bool fileToo=true); |
44 | bool tryResolve(); | 49 | bool tryResolve(); |
50 | QString getModelName(QString libraryName); | ||
45 | public: | 51 | public: |
46 | QWpsDrawer(QWpsState *ws,QTrackState *ms, QWidget *parent=0); | 52 | QWpsDrawer(QWpsState *ws,QTrackState *ms, QWidget *parent=0); |
47 | ~QWpsDrawer(); | 53 | ~QWpsDrawer(); |
@@ -53,6 +59,8 @@ public: | |||
53 | QString tempWps() const { | 59 | QString tempWps() const { |
54 | return mTmpWpsString; | 60 | return mTmpWpsString; |
55 | }; | 61 | }; |
62 | QList<QString> getTargets(); | ||
63 | bool setTarget(QString target); | ||
56 | 64 | ||
57 | 65 | ||
58 | static proxy_api api; | 66 | static proxy_api api; |
@@ -73,7 +81,6 @@ public: | |||
73 | public slots: | 81 | public slots: |
74 | void slotSetVolume(); | 82 | void slotSetVolume(); |
75 | void slotSetProgress(); | 83 | void slotSetProgress(); |
76 | |||
77 | void slotShowGrid(bool); | 84 | void slotShowGrid(bool); |
78 | void slotWpsStateChanged(wpsstate); | 85 | void slotWpsStateChanged(wpsstate); |
79 | void slotTrackStateChanged(trackstate); | 86 | void slotTrackStateChanged(trackstate); |