|
Last change
on this file since 88bb6b was 126867, checked in by Frederik Heber <heber@…>, 12 years ago |
|
Actions no longer register themselves, ActionQueue::addAction() introduced.
- eventually, Actions should be constrained to the ActionQueue alone. They
may be created externally but their control has to be delivered to the
ActionQueue.
- Hence, we reversed the registering process: Actions do not register
themselves with the ActionRegistry but as almost all are created in
ActionRegistry::fillRegistry() they are registered there as well.
- Actions cstor and dstor are now protected, ActionRegistry is friend.
- Action needs to befriend Registry<T> and ActionSequenceTest to grant
access to dstor.
|
-
Property mode
set to
100644
|
|
File size:
747 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * TextWindow.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Jan 7, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef TEXTWINDOW_HPP_
|
|---|
| 9 | #define TEXTWINDOW_HPP_
|
|---|
| 10 |
|
|---|
| 11 | // include config.h
|
|---|
| 12 | #ifdef HAVE_CONFIG_H
|
|---|
| 13 | #include <config.h>
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 | #include "MainWindow.hpp"
|
|---|
| 18 |
|
|---|
| 19 | #include <string>
|
|---|
| 20 | #include <set>
|
|---|
| 21 |
|
|---|
| 22 | #include "Menu/TextMenu/TextMenu.hpp"
|
|---|
| 23 |
|
|---|
| 24 | namespace MoleCuilder {
|
|---|
| 25 | class Action;
|
|---|
| 26 | }
|
|---|
| 27 | class StringView;
|
|---|
| 28 | class TextStatusIndicator;
|
|---|
| 29 | class TxMenu;
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | class TextWindow : public MainWindow
|
|---|
| 33 | {
|
|---|
| 34 | public:
|
|---|
| 35 | TextWindow();
|
|---|
| 36 | virtual ~TextWindow();
|
|---|
| 37 |
|
|---|
| 38 | virtual void display();
|
|---|
| 39 |
|
|---|
| 40 | private:
|
|---|
| 41 | TextMenu<TxMenu> *main_menu;
|
|---|
| 42 |
|
|---|
| 43 | MoleCuilder::Action *quitAction;
|
|---|
| 44 | // all views that are contained in the main Menu
|
|---|
| 45 | StringView *moleculeView;
|
|---|
| 46 | TextStatusIndicator *statusIndicator;
|
|---|
| 47 | };
|
|---|
| 48 |
|
|---|
| 49 | #endif /* TEXTWINDOW_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.