diff options
author | louis <louis.braun@gmx.de> | 2016-01-26 18:32:38 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2016-01-26 18:32:38 +0100 |
commit | 809fbda03c5014ba9cd361f5113d1d717cd41ea6 (patch) | |
tree | 264bbc5640375f1bcb165fc7f4a3e595adcc26ca /coreengine/viewelementplugin.c | |
parent | 196dd7eb9965a405bb16b51dc870fbbb31aeef87 (diff) | |
download | vdr-plugin-skindesigner-809fbda03c5014ba9cd361f5113d1d717cd41ea6.tar.gz vdr-plugin-skindesigner-809fbda03c5014ba9cd361f5113d1d717cd41ea6.tar.bz2 |
Version 0.8.0 beta
Diffstat (limited to 'coreengine/viewelementplugin.c')
-rw-r--r-- | coreengine/viewelementplugin.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/coreengine/viewelementplugin.c b/coreengine/viewelementplugin.c new file mode 100644 index 0000000..7d50a82 --- /dev/null +++ b/coreengine/viewelementplugin.c @@ -0,0 +1,36 @@ +#include "viewelementplugin.h"
+#include "../config.h"
+
+cVePlugin::cVePlugin(void) {
+ plugId = -1;
+ viewId = -1;
+}
+
+cVePlugin::~cVePlugin(void) {
+}
+
+void cVePlugin::Close(void) {
+ cViewElement::Close();
+}
+
+void cVePlugin::SetTokenContainer(void) {
+ skindesignerapi::cTokenContainer *tkVe = plgManager->GetTokenContainerVE(plugId, viewId, id);
+ if (!tkVe)
+ return;
+ tokenContainer = new skindesignerapi::cTokenContainer(*tkVe);
+ InheritTokenContainer();
+}
+
+void cVePlugin::Set(skindesignerapi::cTokenContainer *tk) {
+ tokenContainer->Clear();
+ tokenContainer->SetTokens(tk);
+ SetDirty();
+}
+
+bool cVePlugin::Parse(bool forced) {
+ if (!cViewElement::Parse(forced))
+ return false;
+ if (!dirty)
+ return false;
+ return true;
+}
|