Changeset 3196 for code/trunk/src/orxonox/overlays/notifications
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/overlays/notifications/Notification.cc
r3110 r3196 28 28 29 29 /** 30 @file Notification.cc30 @file 31 31 @brief Implementation of the Notification class. 32 32 */ … … 35 35 36 36 #include "core/CoreIncludes.h" 37 #include "util/Exception.h"38 39 37 #include "NotificationManager.h" 40 38 … … 48 46 Notification::Notification(BaseObject* creator) : BaseObject(creator) 49 47 { 48 RegisterObject(Notification); 50 49 this->initialize(); 51 50 } … … 76 75 void Notification::initialize(void) 77 76 { 78 RegisterObject(Notification);79 80 77 this->message_ = ""; 81 78 this->sender_ = NotificationManager::NONE; -
code/trunk/src/orxonox/overlays/notifications/Notification.h
r3034 r3196 28 28 29 29 /** 30 @file Notification.h30 @file 31 31 @brief Definition of the Notification class. 32 32 */ … … 38 38 39 39 #include <string> 40 41 40 #include "core/BaseObject.h" 42 41 -
code/trunk/src/orxonox/overlays/notifications/NotificationManager.cc
r3110 r3196 28 28 29 29 /** 30 @file NotificationManager.cc30 @file 31 31 @brief Implementation of the NotificationManager class. 32 32 */ … … 34 34 #include "NotificationManager.h" 35 35 36 #include <set> 37 36 38 #include "core/CoreIncludes.h" 37 38 #include <set>39 40 39 #include "Notification.h" 41 40 #include "NotificationQueue.h" -
code/trunk/src/orxonox/overlays/notifications/NotificationManager.h
r3034 r3196 28 28 29 29 /** 30 @file NotificationManager.h30 @file 31 31 @brief Definition of the NotificationManager class. 32 32 */ … … 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include "core/OrxonoxClass.h" 40 39 #include <ctime> 41 40 #include <map> 42 41 #include <string> 43 #include <ctime> 44 45 #include "NotificationOverlay.h" 42 #include "core/OrxonoxClass.h" 46 43 47 44 namespace orxonox -
code/trunk/src/orxonox/overlays/notifications/NotificationOverlay.cc
r3110 r3196 28 28 29 29 /** 30 @file NotificationOverlay.cc30 @file 31 31 @brief Implementation of the NotificationOverlay class. 32 32 */ … … 34 34 #include "NotificationOverlay.h" 35 35 36 #include <OgreOverlayManager.h> 37 #include <OgreTextAreaOverlayElement.h> 38 #include <OgrePanelOverlayElement.h> 39 36 #include "util/Exception.h" 40 37 #include "core/CoreIncludes.h" 41 #include "util/Exception.h"42 43 38 #include "Notification.h" 44 39 #include "NotificationQueue.h" … … 53 48 NotificationOverlay::NotificationOverlay(BaseObject* creator) : OverlayText(creator) 54 49 { 50 RegisterObject(NotificationOverlay); 55 51 this->initialize(); 56 52 } … … 87 83 void NotificationOverlay::initialize(void) 88 84 { 89 RegisterObject(NotificationOverlay);90 91 85 this->queue_ = NULL; 92 86 } … … 133 127 Clips the input message so that it meets the requirements for the maximal length of Notifications given by the NotificationQueue. 134 128 */ 135 conststd::string NotificationOverlay::clipMessage(const std::string & message)129 std::string NotificationOverlay::clipMessage(const std::string & message) 136 130 { 137 131 if(message.length() <= (unsigned int)this->queue_->getNotificationLength()) //!< If the message is not too long. -
code/trunk/src/orxonox/overlays/notifications/NotificationOverlay.h
r3078 r3196 28 28 29 29 /** 30 @file NotificationOverlay.h30 @file 31 31 @brief Definition of the NotificationOverlay class. 32 32 */ … … 38 38 #include "OrxonoxPrereqs.h" 39 39 40 #include <string> 40 41 #include "orxonox/overlays/OverlayText.h" 41 42 #include <string>43 #include <set>44 #include <OgrePrerequisites.h>45 #include <OgreTextAreaOverlayElement.h>46 42 47 43 namespace orxonox … … 72 68 73 69 protected: 74 conststd::string clipMessage(const std::string & message); //!< Clips the input message if too long.70 std::string clipMessage(const std::string & message); //!< Clips the input message if too long. 75 71 76 72 private: -
code/trunk/src/orxonox/overlays/notifications/NotificationQueue.cc
r3110 r3196 28 28 29 29 /** 30 @file NotificationQueue.cc30 @file 31 31 @brief Implementation of the NotificationQueue class. 32 32 */ … … 34 34 #include "NotificationQueue.h" 35 35 36 #include <OgreOverlayManager.h>37 #include <OgreTextAreaOverlayElement.h>38 #include <list>39 #include <iostream>40 36 #include <sstream> 41 37 42 38 #include "core/CoreIncludes.h" 43 39 #include "core/XMLPort.h" 44 45 #include "Notification.h"46 40 #include "NotificationOverlay.h" 41 #include "NotificationManager.h" 47 42 48 43 namespace orxonox … … 53 48 const std::string NotificationQueue::DEFAULT_FONT = "VeraMono"; 54 49 const Vector2 NotificationQueue::DEFAULT_POSITION = Vector2(0.0,0.0); 55 const float NotificationQueue::DEFAULT_FONT_SIZE = 0.025 ;50 const float NotificationQueue::DEFAULT_FONT_SIZE = 0.025f; 56 51 57 52 /** … … 61 56 NotificationQueue::NotificationQueue(BaseObject* creator) : OverlayGroup(creator) 62 57 { 58 RegisterObject(NotificationQueue); 63 59 this->initialize(); 64 60 } … … 81 77 void NotificationQueue::initialize(void) 82 78 { 83 RegisterObject(NotificationQueue);84 85 79 this->size_ = 0; 86 80 this->tickTime_ = 0.0; -
code/trunk/src/orxonox/overlays/notifications/NotificationQueue.h
r2926 r3196 28 28 29 29 /** 30 @file NotificationQueue.h30 @file 31 31 @brief Definition of the NotificationQueue class. 32 32 */ … … 37 37 #include "OrxonoxPrereqs.h" 38 38 39 #include <ctime> 40 #include <map> 41 #include <set> 39 42 #include <string> 40 #include <set> 41 #include <OgreOverlayManager.h> 42 #include <OgreTextAreaOverlayElement.h> 43 #include <OgrePanelOverlayElement.h> 44 #include <map> 45 #include <ctime> 46 47 #include "orxonox/overlays/OverlayGroup.h" 48 #include "orxonox/objects/Tickable.h" 49 50 #include "NotificationManager.h" 43 44 #include "util/Math.h" 45 #include "interfaces/Tickable.h" 46 #include "overlays/OverlayGroup.h" 51 47 52 48 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.