- Timestamp:
- Dec 21, 2009, 1:18:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/core/BaseObject.cc
r5929 r6387 119 119 XMLPortObjectTemplate(BaseObject, Template, "templates", addTemplate, getTemplate, xmlelement, mode, Template*); 120 120 XMLPortObject(BaseObject, BaseObject, "eventlisteners", addEventListener, getEventListener, xmlelement, mode); 121 121 122 122 Element* events = 0; 123 123 if (mode == XMLPort::LoadObject || mode == XMLPort::ExpandObject) … … 139 139 XMLPortEventState(BaseObject, BaseObject, "visibility", setVisible, xmlelement, mode); 140 140 XMLPortEventState(BaseObject, BaseObject, "mainstate", setMainState, xmlelement, mode); 141 141 142 142 this->bRegisteredEventStates_ = true; 143 143 } … … 236 236 if (it->second != state) 237 237 continue; 238 238 239 239 if (i == index) 240 240 return it->first; … … 252 252 listener->addEventSource(this, "mainstate"); 253 253 } 254 254 255 255 /** 256 256 @brief Returns an event listener with a given index. … … 344 344 { 345 345 this->registerEventStates(); 346 346 347 347 std::map<std::string, EventState*>::const_iterator it = this->eventStates_.find(event.statename_); 348 348 if (it != this->eventStates_.end()) … … 356 356 /** 357 357 @brief Sets the main state of the object to a given boolean value. 358 358 359 359 Note: The main state of an object can be set with the @ref setMainStateName function. 360 360 It's part of the eventsystem and used for event forwarding (when the target object can't specify a specific state, … … 389 389 { 390 390 this->registerEventStates(); 391 391 392 392 std::map<std::string, EventState*>::const_iterator it = this->eventStates_.find(this->mainStateName_); 393 393 if (it != this->eventStates_.end() && it->second->getFunctor()) … … 402 402 } 403 403 } 404 404 405 405 /** 406 406 @brief Calls XMLEventPort with an empty XML-element to register the event states if necessary. … … 414 414 } 415 415 } 416 416 417 417 /** 418 418 @brief Manually loads all event states, even if the class doesn't officially support them. This is needed by some classes like @ref EventDispatcher or @ref EventTarget.
Note: See TracChangeset
for help on using the changeset viewer.