|
Last change
on this file since d20ed5 was d20ed5, checked in by Frederik Heber <heber@…>, 16 years ago |
|
Added basic menu and action framework
- Added action base class
- Added class to make actions from methods
- Added Menu base class
- Added TextMenu class to produce text menus
- Added MenuItem base class for menu items
- Added ActionMenuItem for menu items using an action
- Added SubMenuItem class for menu items presenting a submenu
- Added SeperatorItem class for menu seperators without functioninality
Signed-off-by: Tillmann Crueger <crueger@…>
|
-
Property mode
set to
100644
|
|
File size:
440 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * MethodAction.cpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Dec 11, 2009
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #include <iostream>
|
|---|
| 9 |
|
|---|
| 10 | #include "MethodAction.hpp"
|
|---|
| 11 |
|
|---|
| 12 | using namespace std;
|
|---|
| 13 |
|
|---|
| 14 | MethodAction::MethodAction()
|
|---|
| 15 | {
|
|---|
| 16 | // TODO Auto-generated constructor stub
|
|---|
| 17 |
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | MethodAction::~MethodAction()
|
|---|
| 21 | {
|
|---|
| 22 | // TODO Auto-generated destructor stub
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 | void MethodAction::call() {
|
|---|
| 27 | executeMethod();
|
|---|
| 28 | }
|
|---|
| 29 | void MethodAction::undo() {
|
|---|
| 30 |
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | bool MethodAction::canUndo() {
|
|---|
| 34 | return false;
|
|---|
| 35 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.