50 lines
1.0 KiB
C
50 lines
1.0 KiB
C
|
/**
|
||
|
* @author Edouard DUPIN
|
||
|
*
|
||
|
* @copyright 2010, Edouard DUPIN, all right reserved
|
||
|
*
|
||
|
* @license GPL v3 (see license file)
|
||
|
*/
|
||
|
|
||
|
#ifndef __APPL_BUFFER_H__
|
||
|
#define __APPL_BUFFER_H__
|
||
|
|
||
|
#include <etk/UString.h>
|
||
|
#include <etk/os/FSNode.h>
|
||
|
#include <etk/unicode.h>
|
||
|
#include <ewol/ewol.h>
|
||
|
#include <etk/Buffer.h>
|
||
|
#include <ewol/renderer/EObject.h>
|
||
|
|
||
|
namespace appl
|
||
|
{
|
||
|
class Buffer : public ewol::EObject
|
||
|
{
|
||
|
public:
|
||
|
Buffer(void) { };
|
||
|
~Buffer(void) { };
|
||
|
private:
|
||
|
etk::UString m_fileName; //!< name of the file (with his path)
|
||
|
public:
|
||
|
/**
|
||
|
* @brief Get the curent filename of the Buffer
|
||
|
*/
|
||
|
const etk::UString& GetFileName(void) { return m_fileName; }
|
||
|
bool LoadFile(const etk::UString& _name);
|
||
|
void SetFileName(const etk::UString& _name);
|
||
|
bool m_isModify; //!< true if the file is modify
|
||
|
etk::Buffer m_data; //!< copy of the file buffer
|
||
|
public:
|
||
|
etk::Buffer& GetData(void) { return m_data; };
|
||
|
/*
|
||
|
appl::History m_history;
|
||
|
Highlight m_highlight;
|
||
|
ejson::Value* m_property;
|
||
|
appl::Selection m_selection;
|
||
|
*/
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif
|