StdPopUp.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <ewol/widget/PopUp.hpp>
9 #include <ewol/widget/Label.hpp>
10 #include <ewol/widget/Button.hpp>
11 #include <ewol/widget/Sizer.hpp>
12 namespace ewol {
13  namespace widget {
14  class StdPopUp;
15  using StdPopUpShared = ememory::SharedPtr<ewol::widget::StdPopUp>;
16  using StdPopUpWeak = ememory::WeakPtr<ewol::widget::StdPopUp>;
41  class StdPopUp : public ewol::widget::PopUp {
42  public: // properties:
45  protected:
49  StdPopUp();
50  void init();
51  public:
52  DECLARE_WIDGET_FACTORY(StdPopUp, "StdPopUp");
56  virtual ~StdPopUp();
57  protected:
59 
62  void onChangePropertyTitle();
64 
68  protected:
70  public:
75  ewol::widget::ButtonShared addButton(const std::string& _text, bool _autoExit=false);
76  public:
77  virtual void onCallBackButtonExit();
78  };
79  }
80 }
81 
void onChangePropertyComment()
property callback when request a change of the Comment.
ewol::widget::LabelShared m_title
Title Label widget.
Definition: StdPopUp.hpp:58
eproperty::Value< std::string > propertyComment
comment in the pop-up (can be decorated text)
Definition: StdPopUp.hpp:44
StdPopUp()
std-pop-up constructor.
virtual ~StdPopUp()
std-pop-up destructor.
ewol::widget::LabelShared m_comment
Comment label widget.
Definition: StdPopUp.hpp:63
eproperty::Value< std::string > propertyTitle
Title of the pop-up.
Definition: StdPopUp.hpp:43
Definition: Area.hpp:16
void onChangePropertyTitle()
property callback when request a change of the title.
Definition: PopUp.hpp:24
ewol::widget::SizerShared m_subBar
subwidget bar containing all the button.
Definition: StdPopUp.hpp:69
ewol::widget::ButtonShared addButton(const std::string &_text, bool _autoExit=false)
Add a buttom button.
The std pop up widget is a siple message widget to notify user of some simple things, like:
Definition: StdPopUp.hpp:41