Files Classes Functions Hierarchy
#include <menusystem.h>
Public Types | |
| enum | drawmenu { drawmenuthis, drawmenuparent, drawmenuparents } |
| drawmenuthis only echos the input text only. More... | |
Public Member Functions | |
| menusystemOneShot (point2< int > const &p, uintc columnchange_, uintc index_, drawmenu drawchoice_=drawmenuthis) | |
| Create the menu without hooking it up to other menues, do this after construction. | |
| void | draw () |
| Draw the menu and parents based on the drawchoice state. | |
Public Attributes | |
| drawmenu | drawchoice |
| The current drawing choice. | |
Protected Member Functions | |
| void | readImmediate (charc ch) |
| The immediate mode is used to initialize the read. | |
| void | readBufferedTerminationAction () |
| readBufferedResult contains the string that was read. | |
To turn on reading set immediate mode to true and make this the current menu.
Once the client passes a return character through read(charc) the menu system control is passed back to the parent menu. Hence the name one-shot because when the job is done control is passed back.
Definition at line 332 of file menusystem.h.
drawmenuthis only echos the input text only.
drawmenuparent draws the parent too. drawmenuparents draws all the parents recursively up.
Definition at line 342 of file menusystem.h.
00342 { drawmenuthis, drawmenuparent, drawmenuparents};
| menusystemOneShot::menusystemOneShot | ( | point2< int > const & | p, | |
| uintc | columnchange_, | |||
| uintc | index_, | |||
| drawmenu | drawchoice_ = drawmenuthis | |||
| ) | [inline] |
Create the menu without hooking it up to other menues, do this after construction.
Definition at line 350 of file menusystem.h.
00356 : menusystem(true,p,columnchange_), index(index_), 00357 drawchoice(drawchoice_) {}
| void menusystemOneShot::draw | ( | ) | [virtual] |
Draw the menu and parents based on the drawchoice state.
Reimplemented from menusystem.
Definition at line 532 of file menusystem.cpp.
References drawchoice, drawmenuparent, drawmenuparents, drawmenuthis, menusystem::drawparent(), menusystem::drawparents(), and GOBJDEBUGCODE.
00533 { 00534 GOBJDEBUGCODE 00535 switch (drawchoice) 00536 { 00537 case drawmenuthis: 00538 break; 00539 case drawmenuparent: 00540 drawparent(); 00541 break; 00542 case drawmenuparents: 00543 drawparents(); 00544 break; 00545 } 00546 menusystem::draw(); 00547 }
| void menusystemOneShot::readBufferedTerminationAction | ( | ) | [inline, protected, virtual] |
readBufferedResult contains the string that was read.
Reimplemented from menusystem.
Definition at line 374 of file menusystem.h.
References menusystem::readmodeimmediate, and menusystem::transfercontroltoparent().
00375 { 00376 readmodeimmediate=true; 00377 transfercontroltoparent(); 00378 }
| void menusystemOneShot::readImmediate | ( | charc | ch | ) | [inline, protected, virtual] |
The immediate mode is used to initialize the read.
Reimplemented from menusystem.
Definition at line 366 of file menusystem.h.
References menusystem::read(), menusystem::readBufferedSet(), and menusystem::readmodeimmediate.
00367 { 00368 readmodeimmediate=false; 00369 readBufferedSet(index); 00370 read(ch); 00371 }
1.5.8