edn/sources/appl/Gui/MainWindows.h

48 lines
1.3 KiB
C
Raw Normal View History

/**
* @author Edouard DUPIN
2012-11-25 11:55:06 +01:00
*
* @copyright 2010, Edouard DUPIN, all right reserved
*
* @license GPL v3 (see license file)
*/
2012-11-25 11:55:06 +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>
#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 {
private:
ewol::object::Shared<ewol::widget::Label> m_widgetLabelFileName;
public:
2012-02-18 00:35:15 +01:00
// Constructeur
MainWindows();
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
/**
* @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);
/**
* @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);
};
#endif
2012-02-18 00:35:15 +01:00