50 #ifndef _CASCADINGDESCRIPTOR_H_
51 #define _CASCADINGDESCRIPTOR_H_
53 #include "util/functions.h"
54 #include "util/Color.h"
56 #include "ncl/Parameter.h"
57 using namespace ::br::pucrio::telemidia::ncl;
59 #include "ncl/descriptor/Descriptor.h"
60 #include "ncl/descriptor/GenericDescriptor.h"
61 using namespace ::br::pucrio::telemidia::ncl::descriptor;
63 #include "ncl/layout/LayoutRegion.h"
64 using namespace ::br::pucrio::telemidia::ncl::layout;
66 #include "ncl/switches/DescriptorSwitch.h"
67 using namespace ::br::pucrio::telemidia::ncl::switches;
69 #include "ncl/navigation/FocusDecoration.h"
70 #include "ncl/navigation/KeyNavigation.h"
71 using namespace ::br::pucrio::telemidia::ncl::navigation;
73 #include "ncl/transition/Transition.h"
74 using namespace ::br::pucrio::telemidia::ncl::transition;
76 #include "FormatterRegion.h"
77 using namespace ::br::pucrio::telemidia::ginga::ncl::model::presentation;
91 namespace presentation {
97 static int dummyCount;
99 vector<GenericDescriptor*> descriptors;
100 vector<GenericDescriptor*> unsolvedDescriptors;
101 map<string, string> parameters;
102 double explicitDuration;
106 LayoutRegion* region;
109 string focusIndex, moveUp, moveDown, moveLeft, moveRight;
110 string focusSrc, selectionSrc;
111 Color* focusBorderColor;
112 Color* selBorderColor;
113 int focusBorderWidth;
115 double focusBorderTransparency;
116 vector<Transition*>* inputTransitions;
117 vector<Transition*>* outputTransitions;
119 void cascadeDescriptor(Descriptor* descriptor);
127 void initializeCascadingDescriptor();
130 bool instanceOf(
string s);
132 bool isLastDescriptor(GenericDescriptor* descriptor);
133 void cascade(GenericDescriptor* preferredDescriptor);
134 GenericDescriptor* getUnsolvedDescriptor(
int i);
135 vector<GenericDescriptor*>* getUnsolvedDescriptors();
136 void cascadeUnsolvedDescriptor();
137 double getExplicitDuration();
139 string getPlayerName();
140 LayoutRegion* getRegion();
141 LayoutRegion* getRegion(
void* formatterLayout,
void*
object);
145 void updateRegion(
void* formatterLayout,
string name,
string value);
147 void createDummyRegion(
void* formatterLayout,
void* executionObject);
148 void createDummyRegion(
void* formatterLayout);
151 void setFormatterLayout(
void* formatterLayout);
152 long getRepetitions();
153 vector<Parameter*>* getParameters();
154 string getParameterValue(
string paramName);
155 vector<GenericDescriptor*>* getNcmDescriptors();
156 Color* getFocusBorderColor();
157 double getFocusBorderTransparency();
158 int getFocusBorderWidth();
159 string getFocusIndex();
160 string getFocusSrc();
161 string getSelectionSrc();
162 string getMoveDown();
163 string getMoveLeft();
164 string getMoveRight();
166 Color* getSelBorderColor();
167 int getSelBorderWidth();
168 vector<Transition*>* getInputTransitions();
169 vector<Transition*>* getOutputTransitions();
179 #endif //_CASCADINGDESCRIPTOR_H_
Definition: CascadingDescriptor.h:92
Definition: FormatterRegion.h:87