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

Last change on this file since e7e088 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
RevLine 
[d20ed5]1/*
2 * SeperatorItem.cpp
3 *
4 * Created on: Dec 11, 2009
5 * Author: crueger
6 */
[7cb300]7#include <string>
8#include <sstream>
[d20ed5]9
10#include "Menu/SeperatorItem.hpp"
11#include "Menu/Menu.hpp"
[7cb300]12#include "defs.hpp"
13
[d20ed5]14
15SeperatorItem::SeperatorItem(Menu* menu):
[7cb300]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)
[d20ed5]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(){}
[aa117c]40bool SeperatorItem::checkTrigger(char){
41 return false;
42}
[d20ed5]43
44const string SeperatorItem::getDescription() {
45 return string("");
46}
47
48const string SeperatorItem::formatEntry(){
[7cb300]49 stringstream s;
50 for(int i=0; i<length;i++)
51 s << spacer;
52 return s.str();
[d20ed5]53}
Note: See TracBrowser for help on using the repository browser.