source: src/UIElements/TextUI/TextWindow.hpp@ 9a4949

Last change on this file since 9a4949 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
RevLine 
[a56275]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
[56f73b]11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
[5079a0]17#include "MainWindow.hpp"
[a56275]18
[daa5f1]19#include <string>
[326bbe]20#include <set>
21
[b59da6]22#include "Menu/TextMenu/TextMenu.hpp"
23
[ce7fdc]24namespace MoleCuilder {
25 class Action;
26}
[12b845]27class StringView;
[0188ea]28class TextStatusIndicator;
[b59da6]29class TxMenu;
[12b845]30
[d893f79]31
[a56275]32class TextWindow : public MainWindow
33{
34public:
[d893f79]35 TextWindow();
[a56275]36 virtual ~TextWindow();
37
[12b845]38 virtual void display();
[11428f]39
[12b845]40private:
[b59da6]41 TextMenu<TxMenu> *main_menu;
[12b845]42
[cb85f24]43 MoleCuilder::Action *quitAction;
[12b845]44 // all views that are contained in the main Menu
45 StringView *moleculeView;
[0188ea]46 TextStatusIndicator *statusIndicator;
[a56275]47};
48
49#endif /* TEXTWINDOW_HPP_ */
Note: See TracBrowser for help on using the repository browser.