source: molecuilder/src/Menu/SeperatorItem.cpp@ 25e17e9

Last change on this file since 25e17e9 was aa117c, checked in by Tillmann Crueger <crueger@…>, 16 years ago

Added possibility to add default Items to textMenus

  • Property mode set to 100644
File size: 914 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(){}
40bool SeperatorItem::checkTrigger(char){
41 return false;
42}
43
44const string SeperatorItem::getDescription() {
45 return string("");
46}
47
48const string SeperatorItem::formatEntry(){
49 stringstream s;
50 for(int i=0; i<length;i++)
51 s << spacer;
52 return s.str();
53}
Note: See TracBrowser for help on using the repository browser.