2013-10-20 18:14:22 +02:00
|
|
|
/**
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
*
|
|
|
|
* @copyright 2010, Edouard DUPIN, all right reserved
|
|
|
|
*
|
|
|
|
* @license GPL v3 (see license file)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __APPL_TEXT_PLUGIN_COPY_H__
|
|
|
|
#define __APPL_TEXT_PLUGIN_COPY_H__
|
|
|
|
|
|
|
|
#include <etk/types.h>
|
2013-12-13 21:50:40 +01:00
|
|
|
#include <ewol/object/Object.h>
|
2013-10-20 18:14:22 +02:00
|
|
|
#include <appl/Gui/TextViewer.h>
|
|
|
|
#include <ewol/compositing/Text.h>
|
2013-10-28 21:47:51 +01:00
|
|
|
#include <appl/TextPlugin.h>
|
2013-10-20 18:14:22 +02:00
|
|
|
|
|
|
|
namespace appl {
|
|
|
|
class TextPluginCopy : public appl::TextViewerPlugin {
|
2014-08-29 22:52:21 +02:00
|
|
|
private:
|
|
|
|
int32_t m_menuIdTitle;
|
|
|
|
int32_t m_menuIdCopy;
|
|
|
|
int32_t m_menuIdCut;
|
|
|
|
int32_t m_menuIdPast;
|
|
|
|
int32_t m_menuIdRemove;
|
2014-08-07 23:41:48 +02:00
|
|
|
protected:
|
2014-05-15 21:37:39 +02:00
|
|
|
TextPluginCopy();
|
2014-08-07 23:41:48 +02:00
|
|
|
void init();
|
|
|
|
public:
|
|
|
|
DECLARE_FACTORY(TextPluginCopy);
|
2014-05-27 21:43:02 +02:00
|
|
|
virtual ~TextPluginCopy() {
|
2013-10-20 18:14:22 +02:00
|
|
|
// nothing to do ...
|
|
|
|
};
|
|
|
|
public:
|
|
|
|
virtual void onPluginEnable(appl::TextViewer& _textDrawer);
|
|
|
|
virtual void onPluginDisable(appl::TextViewer& _textDrawer);
|
2014-08-27 22:58:21 +02:00
|
|
|
virtual bool onReceiveShortCut(appl::TextViewer& _textDrawer, const std::string& _shortCutName);
|
2013-10-20 18:14:22 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|