Design Patterns
entry_field.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_ENTRY_FIELD_H_
7 #define OPERATIONAL_MEDIATOR_ENTRY_FIELD_H_
8 
9 #include "mediator_widget.h"
10 
11 #include <string>
12 
13 namespace operational
14 {
15 namespace madiator
16 {
17 class EntryField : public MediatorWidget
18 {
19  public:
20  explicit EntryField(DialogDirectorInterface* director);
21 
22  virtual void HandleMouse(MouseEvent& event) override;
23 
24  virtual void text(const std::string& text);
25  virtual const std::string &text() const;
26 
27  private:
28  std::string text_;
29 };
30 }
31 }
32 #endif
33 
Definition: mouse_event.h:13
Definition: application.cc:10
virtual void HandleMouse(MouseEvent &event) override
Definition: entry_field.cc:24
virtual const std::string & text() const
Definition: entry_field.cc:19
Definition: mediator_widget.h:16
Definition: dialog_director_interface.h:15
EntryField(DialogDirectorInterface *director)
Definition: entry_field.cc:12
Definition: entry_field.h:17