Changeset 7221 in orxonox.OLD for trunk/src/lib/gui/gl_gui
- Timestamp:
- Mar 15, 2006, 3:10:45 PM (19 years ago)
- Location:
- trunk/src/lib/gui/gl_gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_button.cc
r6287 r7221 54 54 } 55 55 56 void GLGuiButton::setLabel(const char*label)56 void GLGuiButton::setLabel(const std::string& label) 57 57 { 58 58 this->label->setText(label); -
trunk/src/lib/gui/gl_gui/glgui_button.h
r5427 r7221 35 35 36 36 void init(); 37 void setLabel(const char*label);37 void setLabel(const std::string& label); 38 38 39 39 virtual void draw() const; -
trunk/src/lib/gui/gl_gui/glgui_menu.h
r5391 r7221 24 24 void init(); 25 25 26 void addItem(const char*itemName);27 void removeItem(const char*itemName);26 void addItem(const std::string& itemName); 27 void removeItem(const std::string& itemName); 28 28 void removeItem(unsigned int itemNumber); 29 void selectItem(const char*itemName);29 void selectItem(const std::string& itemName); 30 30 void selectItem(unsigned int itemNumber); 31 31 -
trunk/src/lib/gui/gl_gui/glgui_widget.h
r7062 r7221 47 47 virtual char* save() {}; 48 48 /** loads options of the Widget. @param loadString a string containing the Options */ 49 virtual void load(const char*loadString) {};49 virtual void load(const std::string& loadString) {}; 50 50 51 51 void show(); -
trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.cc
r7193 r7221 13 13 ### File Specific: 14 14 main-programmer: Patrick Boenzli 15 co-programmer: 15 co-programmer: Benjamin GRauer 16 16 */ 17 17 … … 84 84 85 85 /** 86 * sets the background image name86 * @brief sets the background image name 87 87 * @param backImageName name of the backgroun-image 88 88 */ 89 void GLMenuImageScreen::setBackgroundImage (const char*backImageName)89 void GLMenuImageScreen::setBackgroundImage (const std::string& backImageName) 90 90 { 91 91 this->backMat->setDiffuseMap(backImageName); … … 93 93 94 94 /** 95 * sets position of the ImageScreen95 * @brief sets position of the ImageScreen 96 96 * @param offsetX offset from the top left corner in percent(0-1) of the screensize 97 97 * @param offsetY offset from the top left corner in percent(0-1) of the screensize … … 104 104 105 105 /** 106 \brief sets size of the ImageScreen106 * @brief sets size of the ImageScreen 107 107 * @param scaleX the scaleing of the image into the x-direction (in percent (0-1)) 108 108 * @param scaleY the scaleing of the image into the y-direction (in percent (0-1)) … … 115 115 116 116 /** 117 \brief sets position and size of the ImageScreen118 * @param offsetX offset from the top left corner in percent(0-1) of the screensize119 * @param offsetY offset from the top left corner in percent(0-1) of the screensize120 * @param scaleX the scaleing of the image into the x-direction (in percent (0-1))121 * @param scaleY the scaleing of the image into the y-direction (in percent (0-1))117 * @brief sets position and size of the ImageScreen 118 * @param offsetX offset from the top left corner in percent(0-1) of the screensize 119 * @param offsetY offset from the top left corner in percent(0-1) of the screensize 120 * @param scaleX the scaleing of the image into the x-direction (in percent (0-1)) 121 * @param scaleY the scaleing of the image into the y-direction (in percent (0-1)) 122 122 */ 123 123 void GLMenuImageScreen::setPosScale(float offsetX, float offsetY, float scaleX, float scaleY) … … 130 130 * @param barImage An image for the Bar 131 131 */ 132 void GLMenuImageScreen::setBarImage(const char*barImage)132 void GLMenuImageScreen::setBarImage(const std::string& barImage) 133 133 { 134 134 this->barMat->setDiffuseMap(barImage); … … 136 136 137 137 /** 138 * sets the Position and the Size of the bar138 * @brief sets the Position and the Size of the bar 139 139 * @param barX The Position in the x-direction in percent of the screen (0-1) 140 140 * @param barY The Position in the y-direction in percent of the screen (0-1) … … 152 152 153 153 /** 154 * set the maximum of countable steps154 * @brief set the maximum of countable steps 155 155 * @param maxValue of steps 156 156 */ … … 161 161 162 162 /** 163 * set current value163 * @brief set current value 164 164 * @param currentValue value to set 165 165 */ … … 172 172 173 173 /** 174 * get the current value174 * @brief get the current value 175 175 */ 176 176 int GLMenuImageScreen::getValue() … … 181 181 182 182 /** 183 *call this to trigger a progress event184 185 183 * @brief call this to trigger a progress event 184 * 185 * this has to redraw the progress bar and the whole image 186 186 */ 187 187 void GLMenuImageScreen::step () … … 199 199 200 200 /** 201 * draws the ImageScreen to the screenbuffer201 * @brief draws the ImageScreen to the screenbuffer 202 202 */ 203 203 void GLMenuImageScreen::draw () -
trunk/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.h
r6512 r7221 13 13 14 14 //! A class to display a loadScreen 15 class GLMenuImageScreen : public BaseObject { 15 class GLMenuImageScreen : public BaseObject 16 { 16 17 17 18 public: 18 19 GLMenuImageScreen (const TiXmlElement* root = NULL); 19 20 virtual void loadParams(const TiXmlElement* root); … … 22 23 void draw(); 23 24 24 void setBackgroundImage(const char*backImageName);25 void setBackgroundImage(const std::string& backImageName); 25 26 void setPosition(float offsetX, float offsetY); 26 27 void setScale (float scaleX, float scaleY); 27 28 void setPosScale(float offsetX, float offsetY, float scaleX, float scaleY); 28 29 29 void setBarImage(const char*barImage);30 void setBarImage(const std::string& barImage); 30 31 void setBarPosScale(float barX, float barY, float barW, float barH); 31 32 … … 39 40 40 41 41 42 private: 42 43 // background image 43 char*backImageName; //!< the name of the file of the background image44 std::string backImageName; //!< the name of the file of the background image 44 45 float offsetX; //!< X-offset of the the image from the left 45 46 float offsetY; //!< Y-offset of the image from the top
Note: See TracChangeset
for help on using the changeset viewer.