source: molecuilder/src/Menu/SeperatorItem.cpp@ da09909

Last change on this file since da09909 was 7cb300, checked in by Frederik Heber <heber@…>, 16 years ago

Changed formating of menus and added protection to keep MenuItems from being added twice. Signed-off-by: Tillmann Crueger <crueger@…>

  • Property mode set to 100644
File size: 897 bytes
Line 
1/*
2 * SeperatorItem.cpp
3 *
4 * Created on: Dec 11, 2009
5 * Author: crueger
6 */
7#include <string>
8#include <sstream>
9
10#include "Menu/SeperatorItem.hpp"
11#include "Menu/Menu.hpp"
12#include "defs.hpp"
13
14
15SeperatorItem::SeperatorItem(Menu* menu):
16MenuItem('\0',"",menu),
17spacer(STD_SEPERATOR_SPACER),
18length(STD_MENU_LENGTH)
19{
20 // TODO Auto-generated constructor stub
21
22}
23
24SeperatorItem::SeperatorItem(Menu* menu,char _spacer, int _length):
25MenuItem('\0',"",menu),
26spacer(_spacer),
27length(_length)
28{
29 // TODO Auto-generated constructor stub
30
31}
32
33SeperatorItem::~SeperatorItem()
34{
35 // TODO Auto-generated destructor stub
36}
37
38
39void SeperatorItem::doTrigger(){}
40void SeperatorItem::checkTrigger(char){}
41
42const string SeperatorItem::getDescription() {
43 return string("");
44}
45
46const string SeperatorItem::formatEntry(){
47 stringstream s;
48 for(int i=0; i<length;i++)
49 s << spacer;
50 return s.str();
51}
Note: See TracBrowser for help on using the repository browser.