source: molecuilder/src/Menu/DisplayMenuItem.hpp@ f00f02

Last change on this file since f00f02 was 2309fa, checked in by Frederik Heber <heber@…>, 16 years ago

Added Title to DisplayMenuItems. Signed-off-by: Tillmann Crueger <crueger@…>

  • Property mode set to 100644
File size: 753 bytes
RevLine 
[df55a0]1/*
2 * DisplayMenuItem.hpp
3 *
4 * Created on: Dec 14, 2009
5 * Author: crueger
6 */
7
8#ifndef DISPLAYMENUITEM_HPP_
9#define DISPLAYMENUITEM_HPP_
10
11#include "Menu/MenuItem.hpp"
[2309fa]12#include "defs.hpp"
[df55a0]13
14class StringView;
15
16class DisplayMenuItem : public MenuItem
17{
18public:
19 DisplayMenuItem(Menu* _menu, StringView *_view);
[2309fa]20 DisplayMenuItem(Menu* _menu, StringView *_view, string _title,
21 char _spacer=STD_MENU_TITLE_SPACER, int _length=STD_MENU_LENGTH);
[df55a0]22 virtual ~DisplayMenuItem();
23
24 virtual void doTrigger();
25 virtual void checkTrigger(char);
26
27 virtual const string formatEntry();
28
29 virtual const string getDescription();
30
31private:
32 StringView *view;
[2309fa]33 string title;
34 int length;
35 char spacer;
[df55a0]36};
37
38#endif /* DISPLAYMENUITEM_HPP_ */
Note: See TracBrowser for help on using the repository browser.