/** @file * @author Edouard DUPIN * @copyright 2019, Edouard DUPIN, all right reserved * @license MPL v2.0 (see license file) */ #pragma once #include #include namespace appl { enum wordMode { wordMode_ALL_WORD, wordMode_ORDERED_WORD, wordMode_NUMBER, wordMode_SELECTED_WORD, }; class Windows : public ewol::widget::Windows { public: eproperty::Value propertyCount; eproperty::Value propertyInput; eproperty::Value propertyRandom; eproperty::Value propertyCorpusPath; eproperty::Value propertyUserName; eproperty::Value propertyUserBirthYear; eproperty::List propertyWordMode; private: ememory::SharedPtr m_composer; protected: Windows(); void init() override; public: DECLARE_FACTORY(Windows); public: // callback functions void onCallbackRecord(); void onCallbackGenerate(); void onCallbackFinished(); void resetCount(); void stop(); void remove(); etk::String m_textToSay; int32_t m_listPos = 0; int32_t m_count = 0; int32_t m_total = 0; void configureNewText(const etk::String& _text); void next(); void updateCurentLabel(); void inputChangeValue(); etk::Vector m_previousFiles; }; }