Design Patterns
mediator_button.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef OPERATIONAL_MEDIATOR_MEDIATOR_BUTTON_H_
7 #define OPERATIONAL_MEDIATOR_MEDIATOR_BUTTON_H_
8 
9 #include "mediator_widget.h"
10 
11 #include <string>
12 
13 namespace operational
14 {
15 namespace madiator
16 {
18 {
19  public:
20  explicit MediatorButton(DialogDirectorInterface* director);
21 
22  virtual void text(const std::string& text);
23  virtual const std::string &text(const std::string& text) const;
24 
25  virtual void HandleMouse(MouseEvent& event) override;
26 
27  private:
28  std::string text_;
29 };
30 }
31 }
32 
33 #endif
34 
Definition: mouse_event.h:13
Definition: application.cc:10
MediatorButton(DialogDirectorInterface *director)
Definition: mediator_button.cc:14
virtual void text(const std::string &text)
Definition: mediator_button.cc:16
Definition: mediator_widget.h:16
Definition: mediator_button.h:17
Definition: dialog_director_interface.h:15
virtual void HandleMouse(MouseEvent &event) override
Definition: mediator_button.cc:26