[DEV] add override attribute

This commit is contained in:
Edouard DUPIN 2016-03-10 23:48:55 +01:00
parent f1a0b784f6
commit 229f45d158
35 changed files with 220 additions and 219 deletions

View File

@ -24,7 +24,7 @@ namespace ewol {
* @brief Constructor. * @brief Constructor.
*/ */
Worker(); Worker();
void init(); void init() override;
public: public:
/** /**
* @brief Factory * @brief Factory
@ -35,7 +35,7 @@ namespace ewol {
*/ */
virtual ~Worker(); virtual ~Worker();
public: public:
virtual void destroy(); void destroy() override;
}; };
} }
} }

View File

@ -56,7 +56,7 @@ namespace ewol {
* @param[in] _shaperName Shaper file properties * @param[in] _shaperName Shaper file properties
*/ */
Button(); Button();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(Button, "Button"); DECLARE_WIDGET_FACTORY(Button, "Button");
/** /**
@ -80,19 +80,19 @@ namespace ewol {
*/ */
void CheckStatus(); void CheckStatus();
protected: // Derived function protected: // Derived function
virtual void onDraw(); virtual void onDraw() override;
public: // Derived function public:
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onChangeSize(); void onChangeSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual bool onEventEntry(const ewol::event::Entry& _event); bool onEventEntry(const ewol::event::Entry& _event) override;
virtual void onDetectPresenceToggleWidget() { void onDetectPresenceToggleWidget() override {
propertyToggleMode.set(true); propertyToggleMode.set(true);
} }
private: // derived function protected:
virtual void periodicCall(const ewol::event::Time& _event); void periodicCall(const ewol::event::Time& _event) override;
virtual void onLostFocus(); void onLostFocus() override;
protected: protected:
virtual void onChangePropertyShape(); virtual void onChangePropertyShape();
virtual void onChangePropertyValue(); virtual void onChangePropertyValue();

View File

@ -44,27 +44,26 @@ namespace ewol {
* @param[in] _shaperName The new shaper filename. * @param[in] _shaperName The new shaper filename.
*/ */
ButtonColor(); ButtonColor();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(ButtonColor, "ButtonColor"); DECLARE_WIDGET_FACTORY(ButtonColor, "ButtonColor");
/** /**
* @brief Main destructor. * @brief Main destructor.
*/ */
virtual ~ButtonColor(); virtual ~ButtonColor();
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
private: private:
/** /**
* @brief internal system to change the property of the current status * @brief internal system to change the property of the current status
* @param[in] _newStatusId new state * @param[in] _newStatusId new state
*/ */
void changeStatusIn(int32_t _newStatusId); void changeStatusIn(int32_t _newStatusId);
// Derived function void periodicCall(const ewol::event::Time& _event) override;
virtual void periodicCall(const ewol::event::Time& _event);
// Callback function: // Callback function:
void onCallbackColorChange(const etk::Color<>& _color); void onCallbackColorChange(const etk::Color<>& _color);
protected: protected:

View File

@ -46,7 +46,7 @@ namespace ewol {
* @param[in] _shaperName Shaper file properties * @param[in] _shaperName Shaper file properties
*/ */
CheckBox(); CheckBox();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(CheckBox, "CheckBox"); DECLARE_WIDGET_FACTORY(CheckBox, "CheckBox");
/** /**
@ -63,15 +63,15 @@ namespace ewol {
* @brief update the status with the internal satte of the button ... * @brief update the status with the internal satte of the button ...
*/ */
void CheckStatus(); void CheckStatus();
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onChangeSize(); void onChangeSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual bool onEventEntry(const ewol::event::Entry& _event); bool onEventEntry(const ewol::event::Entry& _event) override;
virtual void periodicCall(const ewol::event::Time& _event); void periodicCall(const ewol::event::Time& _event) override;
protected: protected:
virtual void onChangePropertyShape(); virtual void onChangePropertyShape();
virtual void onChangePropertyValue(); virtual void onChangePropertyValue();

View File

@ -33,12 +33,12 @@ namespace ewol {
private: private:
ewol::compositing::Drawing m_draw; //!< Compositing drawing element ewol::compositing::Drawing m_draw; //!< Compositing drawing element
vec2 m_currentUserPos; vec2 m_currentUserPos;
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
protected: protected:
virtual void onChangePropertyValue(); virtual void onChangePropertyValue();
}; };

View File

@ -59,16 +59,16 @@ namespace ewol {
* @brief Unlink the subwidget Node. * @brief Unlink the subwidget Node.
*/ */
void subWidgetUnLink(); void subWidgetUnLink();
public: // Derived function public:
virtual void systemDraw(const ewol::DrawProperty& _displayProp); void systemDraw(const ewol::DrawProperty& _displayProp) override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual void onChangeSize(); void onChangeSize() override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
virtual ewol::ObjectShared getSubObjectNamed(const std::string& _objectName); ewol::ObjectShared getSubObjectNamed(const std::string& _objectName) override;
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
virtual void setOffset(const vec2& _newVal); void setOffset(const vec2& _newVal) override;
virtual void requestDestroyFromChild(const ewol::ObjectShared& _child); void requestDestroyFromChild(const ewol::ObjectShared& _child) override;
}; };
}; };
}; };

View File

@ -157,20 +157,19 @@ namespace ewol {
*/ */
virtual void subWidgetReplace(const ewol::WidgetShared& _oldWidget, virtual void subWidgetReplace(const ewol::WidgetShared& _oldWidget,
const ewol::WidgetShared& _newWidget); const ewol::WidgetShared& _newWidget);
public: // Derived function public:
virtual void systemDraw(const ewol::DrawProperty& _displayProp); void systemDraw(const ewol::DrawProperty& _displayProp) override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual void onChangeSize() { void onChangeSize() override {
onChangeSizePadded(); onChangeSizePadded();
} }
virtual void calculateMinMaxSize() { void calculateMinMaxSize() override {
calculateMinMaxSizePadded(); calculateMinMaxSizePadded();
} }
//virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::ObjectShared getSubObjectNamed(const std::string& _objectName) override;
virtual ewol::ObjectShared getSubObjectNamed(const std::string& _objectName); bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); void setOffset(const vec2& _newVal) override;
virtual void setOffset(const vec2& _newVal); void requestDestroyFromChild(const ewol::ObjectShared& _child) override;
virtual void requestDestroyFromChild(const ewol::ObjectShared& _child);
}; };
}; };
}; };

View File

@ -39,7 +39,7 @@ namespace ewol {
protected: protected:
bvec2 m_subExpend; //!< reference of the sub element expention requested. bvec2 m_subExpend; //!< reference of the sub element expention requested.
// herited function // herited function
virtual bvec2 canExpand(); virtual bvec2 canExpand() override;
public: public:
/** /**
* @brief remove all sub element from the widget. * @brief remove all sub element from the widget.
@ -90,16 +90,16 @@ namespace ewol {
* @param[in] _newWidget the element pointer. * @param[in] _newWidget the element pointer.
*/ */
virtual void subWidgetUnLink(ewol::WidgetShared _newWidget); virtual void subWidgetUnLink(ewol::WidgetShared _newWidget);
public:// Derived function public:
virtual void systemDraw(const ewol::DrawProperty& _displayProp); void systemDraw(const ewol::DrawProperty& _displayProp) override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual void onChangeSize(); void onChangeSize() override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
virtual ewol::ObjectShared getSubObjectNamed(const std::string& _objectName); ewol::ObjectShared getSubObjectNamed(const std::string& _objectName) override;
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
virtual void setOffset(const vec2& _newVal); void setOffset(const vec2& _newVal) override;
virtual void requestDestroyFromChild(const ewol::ObjectShared& _child); void requestDestroyFromChild(const ewol::ObjectShared& _child) override;
protected: protected:
virtual void onChangePropertyLockExpand(); virtual void onChangePropertyLockExpand();
}; };

View File

@ -38,7 +38,7 @@ namespace ewol {
eproperty::List<enum markPosition> propertyArrawBorder; eproperty::List<enum markPosition> propertyArrawBorder;
protected: protected:
ContextMenu(); ContextMenu();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(ContextMenu, "ContextMenu"); DECLARE_WIDGET_FACTORY(ContextMenu, "ContextMenu");
virtual ~ContextMenu(); virtual ~ContextMenu();
@ -54,14 +54,14 @@ namespace ewol {
public: public:
void setPositionMarkAuto(const vec2& _origin, const vec2& _size); void setPositionMarkAuto(const vec2& _origin, const vec2& _size);
void setPositionMark(enum markPosition _position, const vec2& _arrowPos); void setPositionMark(enum markPosition _position, const vec2& _arrowPos);
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual void onChangeSize(); void onChangeSize() override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
protected: protected:
virtual void onChangePropertyArrowPos(); virtual void onChangePropertyArrowPos();
virtual void onChangePropertyArrawBorder(); virtual void onChangePropertyArrawBorder();

View File

@ -57,7 +57,7 @@ namespace ewol {
* @param[in] _newData The USting that might be set in the Entry box (no event generation!!) * @param[in] _newData The USting that might be set in the Entry box (no event generation!!)
*/ */
Entry(); Entry();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(Entry, "Entry"); DECLARE_WIDGET_FACTORY(Entry, "Entry");
/** /**
@ -105,18 +105,18 @@ namespace ewol {
* @note This request a regeneration of the display * @note This request a regeneration of the display
*/ */
virtual void removeSelected(); virtual void removeSelected();
public: // Derived function public:
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual bool onEventEntry(const ewol::event::Entry& _event); bool onEventEntry(const ewol::event::Entry& _event) override;
virtual void onEventClipboard(enum gale::context::clipBoard::clipboardListe _clipboardID); void onEventClipboard(enum gale::context::clipBoard::clipboardListe _clipboardID) override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
virtual void onGetFocus(); void onGetFocus() override;
virtual void onLostFocus(); void onLostFocus() override;
virtual void changeStatusIn(int32_t _newStatusId); virtual void changeStatusIn(int32_t _newStatusId);
virtual void periodicCall(const ewol::event::Time& _event); void periodicCall(const ewol::event::Time& _event) override;
private: // callback functions private: // callback functions
void onCallbackShortCut(const std::string& _value); void onCallbackShortCut(const std::string& _value);
void onCallbackEntryClean(); void onCallbackEntryClean();

View File

@ -122,6 +122,7 @@ namespace ewol {
*/ */
virtual void subWidgetUnLink(int32_t _colId, int32_t _rowId); virtual void subWidgetUnLink(int32_t _colId, int32_t _rowId);
private: private:
// TODO : property
ivec2 m_borderSize; //!< Border size needed for all the display ivec2 m_borderSize; //!< Border size needed for all the display
public: public:
/** /**
@ -136,12 +137,12 @@ namespace ewol {
const ivec2& getBorderSize() { const ivec2& getBorderSize() {
return m_borderSize; return m_borderSize;
}; };
public: // Derived function public:
virtual void systemDraw(const ewol::DrawProperty& _displayProp); virtual void systemDraw(const ewol::DrawProperty& _displayProp) override;
virtual void onRegenerateDisplay(); virtual void onRegenerateDisplay() override;
virtual ewol::WidgetShared getWidgetAtPos(const vec2& pos); virtual ewol::WidgetShared getWidgetAtPos(const vec2& pos) override;
virtual void onChangeSize(); virtual void onChangeSize() override;
virtual void calculateMinMaxSize(); virtual void calculateMinMaxSize() override;
}; };
}; };
}; };

View File

@ -58,13 +58,13 @@ namespace ewol {
void set(const std::string& _file, const gale::Dimension& _border); void set(const std::string& _file, const gale::Dimension& _border);
protected: protected:
vec2 m_imageRenderSize; //!< size of the image when we render it vec2 m_imageRenderSize; //!< size of the image when we render it
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
protected: protected:
virtual void onChangePropertySource(); virtual void onChangePropertySource();
virtual void onChangePropertyImageSize(); virtual void onChangePropertyImageSize();

View File

@ -83,9 +83,9 @@ namespace ewol {
*/ */
void getProperty(float& _distance, float& _angle); void getProperty(float& _distance, float& _angle);
public: // Derived function public:
virtual void onRegenerateDisplay(); virtual void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); virtual bool onEventInput(const ewol::event::Input& _event) override;
}; };
}; };
}; };

View File

@ -47,13 +47,13 @@ namespace ewol {
* @brief destructor * @brief destructor
*/ */
virtual ~Label(); virtual ~Label();
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
protected: protected:
virtual void onChangePropertyValue(); virtual void onChangePropertyValue();
virtual void onChangePropertyAutoTranslate(); virtual void onChangePropertyAutoTranslate();

View File

@ -32,8 +32,8 @@ namespace ewol {
* @brief Desstructor * @brief Desstructor
*/ */
virtual ~Layer(); virtual ~Layer();
public: // Derived function public:
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
}; };
}; };
}; };

View File

@ -26,7 +26,7 @@ namespace ewol {
List(); List();
public: public:
virtual ~List(); virtual ~List();
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
void setLabel(std::string _newLabel); void setLabel(std::string _newLabel);
// drawing capabilities .... // drawing capabilities ....
private: private:
@ -76,13 +76,13 @@ namespace ewol {
* @param[in] _id Id of the raw that might be visible. * @param[in] _id Id of the raw that might be visible.
*/ */
void setRawVisible(int32_t _id); void setRawVisible(int32_t _id);
protected: // Derived function protected:
virtual void onGetFocus(); void onGetFocus() override;
virtual void onLostFocus(); void onLostFocus() override;
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
}; };
}; };
}; };

View File

@ -44,13 +44,13 @@ namespace ewol {
int32_t m_colorIdBackground1; //!< Color of the Background. int32_t m_colorIdBackground1; //!< Color of the Background.
int32_t m_colorIdBackground2; //!< Color of the Background 2. int32_t m_colorIdBackground2; //!< Color of the Background 2.
int32_t m_colorIdBackgroundSelected; //!< Color of line selected. int32_t m_colorIdBackgroundSelected; //!< Color of line selected.
protected : // Derived function from the List... protected:
virtual etk::Color<> getBasicBG(); etk::Color<> getBasicBG() override;
virtual uint32_t getNuberOfColomn(); uint32_t getNuberOfColomn() override;
virtual bool getTitle(int32_t _colomn, std::string& _myTitle, etk::Color<>& _fg, etk::Color<>& _bg); bool getTitle(int32_t _colomn, std::string& _myTitle, etk::Color<>& _fg, etk::Color<>& _bg) override;
virtual uint32_t getNuberOfRaw(); uint32_t getNuberOfRaw() override;
virtual bool getElement(int32_t _colomn, int32_t _raw, std::string& _myTextToWrite, etk::Color<>& _fg, etk::Color<>& _bg); bool getElement(int32_t _colomn, int32_t _raw, std::string& _myTextToWrite, etk::Color<>& _fg, etk::Color<>& _bg) override;
virtual bool onItemEvent(int32_t _IdInput, enum gale::key::status _typeEvent, int32_t _colomn, int32_t _raw, float _x, float _y); bool onItemEvent(int32_t _IdInput, enum gale::key::status _typeEvent, int32_t _colomn, int32_t _raw, float _x, float _y) override;
protected: protected:
// TODO: use shred_ptr // TODO: use shred_ptr
std::vector<etk::FSNode *> m_list; //!< List of all element in the path. (they are filtered) std::vector<etk::FSNode *> m_list; //!< List of all element in the path. (they are filtered)

View File

@ -42,10 +42,10 @@ namespace ewol {
DECLARE_WIDGET_FACTORY(Menu, "Menu"); DECLARE_WIDGET_FACTORY(Menu, "Menu");
virtual ~Menu(); virtual ~Menu();
private: private:
virtual void subWidgetRemoveAll(); void subWidgetRemoveAll() override;
virtual int32_t subWidgetAdd(ewol::WidgetShared _newWidget); int32_t subWidgetAdd(ewol::WidgetShared _newWidget) override;
virtual void subWidgetRemove(ewol::WidgetShared _newWidget); void subWidgetRemove(ewol::WidgetShared _newWidget) override;
virtual void subWidgetUnLink(ewol::WidgetShared _newWidget); void subWidgetUnLink(ewol::WidgetShared _newWidget) override;
private: private:
std::vector<ewol::widget::MenuElement> m_listElement; std::vector<ewol::widget::MenuElement> m_listElement;
int32_t m_staticId; // unique ID for every element of the menu ... int32_t m_staticId; // unique ID for every element of the menu ...

View File

@ -34,7 +34,7 @@ namespace ewol {
* @param[in] _shaperName Shaper file properties * @param[in] _shaperName Shaper file properties
*/ */
PopUp(); PopUp();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(PopUp, "PopUp"); DECLARE_WIDGET_FACTORY(PopUp, "PopUp");
/** /**
@ -43,18 +43,18 @@ namespace ewol {
virtual ~PopUp(); virtual ~PopUp();
protected: protected:
ewol::compositing::Shaper m_shaper; //!< Compositing theme. ewol::compositing::Shaper m_shaper; //!< Compositing theme.
protected: // Derived function
virtual void onDraw();
public: // Derived function
virtual void periodicCall(const ewol::event::Time& _event);
virtual void systemDraw(const ewol::DrawProperty& _displayProp);
virtual void onRegenerateDisplay();
virtual void onChangeSize();
virtual bool onEventInput(const ewol::event::Input& _event);
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos);
protected: protected:
virtual bool onStartAnnimation(enum ewol::Widget::annimationMode _mode); void onDraw() override;
virtual void onStopAnnimation(); public:
void periodicCall(const ewol::event::Time& _event) override;
void systemDraw(const ewol::DrawProperty& _displayProp) override;
void onRegenerateDisplay() override;
void onChangeSize() override;
bool onEventInput(const ewol::event::Input& _event) override;
ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
protected:
bool onStartAnnimation(enum ewol::Widget::annimationMode _mode) override;
void onStopAnnimation() override;
protected: protected:
virtual void onChangePropertyShape(); virtual void onChangePropertyShape();
virtual void onChangePropertyLockExpand(); virtual void onChangePropertyLockExpand();

View File

@ -30,17 +30,17 @@ namespace ewol {
eproperty::Value<etk::Color<>> propertyTextColorBgOff; //!< bar color disable eproperty::Value<etk::Color<>> propertyTextColorBgOff; //!< bar color disable
protected: protected:
ProgressBar(); ProgressBar();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(ProgressBar, "ProgressBar"); DECLARE_WIDGET_FACTORY(ProgressBar, "ProgressBar");
virtual ~ProgressBar(); virtual ~ProgressBar();
private: private:
ewol::compositing::Drawing m_draw; // basic drawing element ewol::compositing::Drawing m_draw; // basic drawing element
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
protected: protected:
virtual void onChangePropertyValue(); virtual void onChangePropertyValue();
virtual void onChangePropertyTextColorFg(); virtual void onChangePropertyTextColorFg();

View File

@ -44,18 +44,18 @@ namespace ewol {
enum gale::key::type m_highSpeedType; enum gale::key::type m_highSpeedType;
protected: protected:
Scroll(); Scroll();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(Scroll, "Scroll"); DECLARE_WIDGET_FACTORY(Scroll, "Scroll");
virtual ~Scroll(); virtual ~Scroll();
public: // Derived function public:
void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual void systemDraw(const ewol::DrawProperty& _displayProp); void systemDraw(const ewol::DrawProperty& _displayProp) override;
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
protected: protected:
virtual void onChangePropertyLimit(); virtual void onChangePropertyLimit();
virtual void onChangePropertyShapeVert(); virtual void onChangePropertyShapeVert();

View File

@ -53,8 +53,8 @@ namespace ewol {
void optionClear(); void optionClear();
void optionAdd(int32_t _value, std::string _name); void optionAdd(int32_t _value, std::string _name);
protected: protected:
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
virtual void updateGui(); void updateGui() override;
protected: protected:
void onCallbackOpenMenu(); void onCallbackOpenMenu();
void onCallbackLabelPressed(int32_t _value); void onCallbackLabelPressed(int32_t _value);

View File

@ -53,14 +53,14 @@ namespace ewol {
* @brief Destructor * @brief Destructor
*/ */
virtual ~Sizer(); virtual ~Sizer();
public: // Derived function public:
virtual void onChangeSize(); void onChangeSize() override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
// overwrite the set fuction to start annimations ... // overwrite the set fuction to start annimations ...
virtual int32_t subWidgetAdd(ewol::WidgetShared _newWidget); int32_t subWidgetAdd(ewol::WidgetShared _newWidget) override;
virtual int32_t subWidgetAddStart(ewol::WidgetShared _newWidget); int32_t subWidgetAddStart(ewol::WidgetShared _newWidget) override;
virtual void subWidgetRemove(ewol::WidgetShared _newWidget); void subWidgetRemove(ewol::WidgetShared _newWidget) override;
virtual void subWidgetUnLink(ewol::WidgetShared _newWidget); void subWidgetUnLink(ewol::WidgetShared _newWidget) override;
protected: protected:
virtual void onChangePropertyMode(); virtual void onChangePropertyMode();
virtual void onChangePropertyBorderSize(); virtual void onChangePropertyBorderSize();

View File

@ -47,10 +47,10 @@ namespace ewol {
etk::Color<> m_textColorBg; //!< Background color etk::Color<> m_textColorBg; //!< Background color
void updateValue(float _newValue); void updateValue(float _newValue);
public: // Derived function public: // Derived function
virtual void onDraw(); void onDraw() override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
protected: protected:
virtual void onChangePropertyValue(); virtual void onChangePropertyValue();
virtual void onChangePropertyMinimum(); virtual void onChangePropertyMinimum();

View File

@ -38,10 +38,12 @@ namespace ewol {
virtual ~Spacer(); virtual ~Spacer();
private: private:
ewol::compositing::Drawing m_draw; //!< Compositing drawing element ewol::compositing::Drawing m_draw; //!< Compositing drawing element
public: // Derived function public:
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos) { return nullptr; }; ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override {
virtual void onRegenerateDisplay(); return nullptr;
virtual void onDraw(); };
void onRegenerateDisplay() override;
void onDraw() override;
protected: protected:
virtual void onChangePropertyColor(); virtual void onChangePropertyColor();
}; };

View File

@ -67,12 +67,12 @@ namespace ewol {
* @param[in] _widgetName Name of the subwidget name * @param[in] _widgetName Name of the subwidget name
*/ */
void subWidgetSelectSet(const std::string& _widgetName); void subWidgetSelectSet(const std::string& _widgetName);
public: // Derived function public:
virtual void onChangeSize(); void onChangeSize() override;
virtual void systemDraw(const ewol::DrawProperty& _displayProp); void systemDraw(const ewol::DrawProperty& _displayProp) override;
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
virtual void periodicCall(const ewol::event::Time& _event); void periodicCall(const ewol::event::Time& _event) override;
protected: protected:
virtual void onChangePropertySelectWidget(); virtual void onChangePropertySelectWidget();
virtual void onChangePropertyTransitionMode(); virtual void onChangePropertyTransitionMode();

View File

@ -514,8 +514,8 @@ namespace ewol {
* @return the type of the cursor. * @return the type of the cursor.
*/ */
virtual enum gale::context::cursor getCursor(); virtual enum gale::context::cursor getCursor();
public: // Derived function public:
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
public: public:
/** /**
* @brief need to be call When the size of the current widget have change ==> this force the system to recalculate all the widget positions * @brief need to be call When the size of the current widget have change ==> this force the system to recalculate all the widget positions

View File

@ -74,19 +74,19 @@ namespace ewol {
* @param[in] _shaperName Shaper name if the scrolled widget. * @param[in] _shaperName Shaper name if the scrolled widget.
*/ */
WidgetScrolled(); WidgetScrolled();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(WidgetScrolled, "WidgetScrolled"); DECLARE_WIDGET_FACTORY(WidgetScrolled, "WidgetScrolled");
/** /**
* @brief Scroll widget destructor. * @brief Scroll widget destructor.
*/ */
virtual ~WidgetScrolled(); virtual ~WidgetScrolled();
protected: // Derived function protected:
virtual void onDraw(); void onDraw() override;
public: // Derived function public:
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual void systemDraw(const ewol::DrawProperty& _displayProp); void systemDraw(const ewol::DrawProperty& _displayProp) override;
protected: protected:
/** /**
* @brief For mouse event when we have a scrolling UP and dows, specify the number of pixel that we scrooled * @brief For mouse event when we have a scrolling UP and dows, specify the number of pixel that we scrooled

View File

@ -73,14 +73,14 @@ namespace ewol {
* @param[IN] the new requested color. * @param[IN] the new requested color.
*/ */
void setBackgroundColor(const etk::Color<float>& _color); void setBackgroundColor(const etk::Color<float>& _color);
protected: // Derived function protected:
virtual void systemDraw(const ewol::DrawProperty& _displayProp); void systemDraw(const ewol::DrawProperty& _displayProp) override;
public: // Derived function public: // Derived function
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual void onChangeSize(); void onChangeSize() override;
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos); ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override;
virtual void requestDestroyFromChild(const ewol::ObjectShared& _child); void requestDestroyFromChild(const ewol::ObjectShared& _child) override;
virtual ewol::ObjectShared getSubObjectNamed(const std::string& _objectName); ewol::ObjectShared getSubObjectNamed(const std::string& _objectName) override;
void setTitle(const std::string& _title); void setTitle(const std::string& _title);
public: public:
enum popUpMessageType { enum popUpMessageType {

View File

@ -33,7 +33,7 @@ namespace ewol {
eproperty::Value<etk::Color<>> propertyValue; eproperty::Value<etk::Color<>> propertyValue;
protected: protected:
ColorChooser(); ColorChooser();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(ColorChooser, "ColorChooser"); DECLARE_WIDGET_FACTORY(ColorChooser, "ColorChooser");
virtual ~ColorChooser(); virtual ~ColorChooser();

View File

@ -145,7 +145,7 @@ void ewol::widget::FileChooser::onChangePropertyPath() {
void ewol::widget::FileChooser::onChangePropertyFile() { void ewol::widget::FileChooser::onChangePropertyFile() {
propertySetOnWidgetNamed("[" + etk::to_string(getId()) + "]file-shooser:entry-file", "value", propertyFile); propertySetOnWidgetNamed("[" + etk::to_string(getId()) + "]file-shooser:entry-file", "value", propertyFile);
updateCurrentFolder(); //updateCurrentFolder();
} }
void ewol::widget::FileChooser::onChangePropertyLabelTitle() { void ewol::widget::FileChooser::onChangePropertyLabelTitle() {

View File

@ -77,15 +77,15 @@ namespace ewol {
eproperty::Value<std::string> propertyLabelCancel; eproperty::Value<std::string> propertyLabelCancel;
protected: protected:
FileChooser(); FileChooser();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(FileChooser, "FileChooser"); DECLARE_WIDGET_FACTORY(FileChooser, "FileChooser");
virtual ~FileChooser(); virtual ~FileChooser();
private: private:
std::string getCompleateFileName(); std::string getCompleateFileName();
void updateCurrentFolder(); void updateCurrentFolder();
public: // Derived function public:
virtual void onGetFocus(); void onGetFocus() override;
private: private:
// callback functions: // callback functions:
void onCallbackEntryFolderChangeValue(const std::string& _value); void onCallbackEntryFolderChangeValue(const std::string& _value);

View File

@ -48,7 +48,7 @@ namespace ewol {
ewol::widget::LabelShared m_widgetTitle; ewol::widget::LabelShared m_widgetTitle;
ewol::widget::ParameterListShared m_paramList; ewol::widget::ParameterListShared m_paramList;
ewol::widget::WSliderShared m_wSlider; ewol::widget::WSliderShared m_wSlider;
private: //callback functions: private:
void onCallbackMenuclosed(); void onCallbackMenuclosed();
void onCallbackParameterSave(); void onCallbackParameterSave();
void onCallbackMenuSelected(const int32_t& _value); void onCallbackMenuSelected(const int32_t& _value);

View File

@ -45,7 +45,7 @@ namespace ewol {
std::vector<ewol::widget::elementPL *> m_list; std::vector<ewol::widget::elementPL *> m_list;
protected: protected:
ParameterList(); ParameterList();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(ParameterList, "ParameterList"); DECLARE_WIDGET_FACTORY(ParameterList, "ParameterList");
virtual ~ParameterList(); virtual ~ParameterList();
@ -68,14 +68,14 @@ namespace ewol {
void menuClear(); void menuClear();
void menuSeparator(); void menuSeparator();
public: // Derived function public:
virtual void onRegenerateDisplay(); void onRegenerateDisplay() override;
virtual bool onEventInput(const ewol::event::Input& _event); bool onEventInput(const ewol::event::Input& _event) override;
virtual void calculateMinMaxSize(); void calculateMinMaxSize() override;
protected: // Derived function protected:
virtual void onGetFocus(); void onGetFocus() override;
virtual void onLostFocus(); void onLostFocus() override;
virtual void onDraw(); void onDraw() override;
}; };
}; };
}; };

View File

@ -82,7 +82,7 @@ namespace ewol {
* @param[in] _mode The mode to display the elements * @param[in] _mode The mode to display the elements
*/ */
SpinBase(); SpinBase();
void init(); void init() override;
public: public:
/** /**
* @brief Destructor * @brief Destructor
@ -93,8 +93,8 @@ namespace ewol {
ewol::widget::ButtonShared m_widgetButtonDown; ewol::widget::ButtonShared m_widgetButtonDown;
ewol::widget::ButtonShared m_widgetButtonUp; ewol::widget::ButtonShared m_widgetButtonUp;
virtual void updateGui(); virtual void updateGui();
public: // Derived function public:
virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node); virtual bool loadXML(const std::shared_ptr<const exml::Element>& _node) override;
protected: protected:
virtual void onChangePropertySpinMode(); virtual void onChangePropertySpinMode();
virtual void onChangePropertyShape(); virtual void onChangePropertyShape();