From 809fbda03c5014ba9cd361f5113d1d717cd41ea6 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 26 Jan 2016 18:32:38 +0100 Subject: Version 0.8.0 beta --- coreengine/viewelementplugin.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 coreengine/viewelementplugin.c (limited to 'coreengine/viewelementplugin.c') 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; +} -- cgit v1.2.3