48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
/**
|
|
* @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 <appl/debug.h>
|
|
#include <appl/globalMsg.h>
|
|
|
|
#include <appl/Gui/BufferView.h>
|
|
#include <appl/BufferManager.h>
|
|
#include <ewol/widget/Label.h>
|
|
#include <appl/BufferManager.h>
|
|
|
|
class MainWindows : public ewol::widget::Windows {
|
|
private:
|
|
ewol::object::Shared<ewol::widget::Label> m_widgetLabelFileName;
|
|
public:
|
|
// Constructeur
|
|
MainWindows();
|
|
virtual ~MainWindows();
|
|
private:
|
|
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.
|
|
*/
|
|
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.
|
|
*/
|
|
void closeNotSavedFile(const ewol::object::Shared<appl::Buffer>& _buffer);
|
|
public: // Derived function
|
|
virtual void onReceiveMessage(const ewol::object::Message& _msg);
|
|
virtual void onObjectRemove(const ewol::object::Shared<ewol::Object>& _removeObject);
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
|