/** * @author Edouard DUPIN * * @copyright 2010, Edouard DUPIN, all right reserved * * @license GPL v3 (see license file) */ #ifndef __MAIN_WINDOWS_H__ #define __MAIN_WINDOWS_H__ #include #include #include #include #include #include class MainWindows : public ewol::Windows { private: int32_t m_currentSavingAsIdBuffer; widget::Label* m_widgetLabelFileName; public: // Constructeur MainWindows(void); ~MainWindows(void); private: appl::BufferManager* m_bufferManager; //!< handle on the buffer manager /** * @brief Display a pop-up to the select the name of the file. * @param[in] _buffer Buffer that might be saved with a new name. */ void saveAsPopUp(appl::Buffer* _buffer); /** * @brief Display a pop-up to the user to confirm wat he want to do when he close a file not saved. * @param[in] _buffer Buffer that might be close. */ void closeNotSavedFile(appl::Buffer* _buffer); public: // Derived function virtual void onReceiveMessage(const ewol::EMessage& _msg); virtual void onObjectRemove(ewol::EObject * _removeObject); }; #endif