2011-07-20 10:33:24 +02:00
|
|
|
/**
|
|
|
|
* @author Edouard DUPIN
|
2012-11-25 11:55:06 +01:00
|
|
|
*
|
|
|
|
* @copyright 2010, Edouard DUPIN, all right reserved
|
|
|
|
*
|
|
|
|
* @license GPL v3 (see license file)
|
2011-07-20 10:33:24 +02:00
|
|
|
*/
|
2012-11-25 11:55:06 +01:00
|
|
|
|
2012-03-14 09:26:14 +01:00
|
|
|
#ifndef __MAIN_WINDOWS_H__
|
|
|
|
#define __MAIN_WINDOWS_H__
|
2012-02-18 00:35:15 +01:00
|
|
|
|
2013-10-25 20:49:26 +02:00
|
|
|
#include <appl/debug.h>
|
2012-04-24 09:42:14 +02:00
|
|
|
#include <appl/globalMsg.h>
|
2011-07-20 10:33:24 +02:00
|
|
|
|
2013-10-28 21:47:51 +01:00
|
|
|
#include <appl/Gui/BufferView.h>
|
|
|
|
#include <appl/BufferManager.h>
|
2012-02-27 18:15:56 +01:00
|
|
|
#include <ewol/widget/Label.h>
|
2013-11-07 21:08:57 +01:00
|
|
|
#include <appl/BufferManager.h>
|
2012-02-18 00:35:15 +01:00
|
|
|
|
2013-12-13 21:50:40 +01:00
|
|
|
class MainWindows : public ewol::widget::Windows {
|
2011-07-20 10:33:24 +02:00
|
|
|
private:
|
2014-05-19 22:30:39 +02:00
|
|
|
ewol::object::Shared<ewol::widget::Label> m_widgetLabelFileName;
|
2011-07-20 10:33:24 +02:00
|
|
|
public:
|
2012-02-18 00:35:15 +01:00
|
|
|
// Constructeur
|
2014-05-15 21:37:39 +02:00
|
|
|
MainWindows();
|
2014-05-27 21:43:02 +02:00
|
|
|
virtual ~MainWindows();
|
2013-11-07 21:08:57 +01:00
|
|
|
private:
|
2014-05-20 21:35:41 +02:00
|
|
|
ewol::object::Shared<appl::BufferManager> m_bufferManager; //!< handle on the buffer manager
|
2013-11-14 23:44:55 +01:00
|
|
|
/**
|
|
|
|
* @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.
|
|
|
|
*/
|
2014-05-20 21:35:41 +02:00
|
|
|
void saveAsPopUp(const ewol::object::Shared<appl::Buffer>& _buffer);
|
2013-11-14 23:44:55 +01:00
|
|
|
/**
|
|
|
|
* @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.
|
|
|
|
*/
|
2014-05-20 21:35:41 +02:00
|
|
|
void closeNotSavedFile(const ewol::object::Shared<appl::Buffer>& _buffer);
|
2013-05-12 21:08:31 +02:00
|
|
|
public: // Derived function
|
2013-12-13 21:50:40 +01:00
|
|
|
virtual void onReceiveMessage(const ewol::object::Message& _msg);
|
2014-05-20 21:35:41 +02:00
|
|
|
virtual void onObjectRemove(const ewol::object::Shared<ewol::Object>& _removeObject);
|
2011-07-20 10:33:24 +02:00
|
|
|
};
|
2012-03-14 09:26:14 +01:00
|
|
|
|
|
|
|
|
2011-07-20 10:33:24 +02:00
|
|
|
#endif
|
|
|
|
|
2012-02-18 00:35:15 +01:00
|
|
|
|