|
Last change
on this file since df55a0 was df55a0, checked in by Frederik Heber <heber@…>, 16 years ago |
|
Added basic View functionality. - Added DisplayMenuItem to show certain types of Views - Added Views to make StringViews from methods producing strings and from methods taking streams Signed-off-by: Tillmann Crueger <crueger@…>
|
-
Property mode
set to
100644
|
|
File size:
598 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * DisplayMenuItem.cpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Dec 14, 2009
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #include "Menu/DisplayMenuItem.hpp"
|
|---|
| 9 | #include "Views/StringView.hpp"
|
|---|
| 10 |
|
|---|
| 11 | #include <iostream>
|
|---|
| 12 |
|
|---|
| 13 | DisplayMenuItem::DisplayMenuItem(Menu* _menu, StringView *_view):
|
|---|
| 14 | MenuItem('\0',"",_menu),
|
|---|
| 15 | view(_view)
|
|---|
| 16 | {
|
|---|
| 17 |
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | DisplayMenuItem::~DisplayMenuItem()
|
|---|
| 21 | {
|
|---|
| 22 | // TODO Auto-generated destructor stub
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | void DisplayMenuItem::doTrigger(){}
|
|---|
| 27 | void DisplayMenuItem::checkTrigger(char c){}
|
|---|
| 28 |
|
|---|
| 29 | const string DisplayMenuItem::formatEntry(){
|
|---|
| 30 | return view->toString();
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | const string DisplayMenuItem::getDescription(){
|
|---|
| 35 | return string("");
|
|---|
| 36 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.