2016-05-02 22:01:55 +02:00
|
|
|
/** @file
|
2013-11-25 22:18:06 +01:00
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2010, Edouard DUPIN, all right reserved
|
|
|
|
* @license GPL v3 (see license file)
|
|
|
|
*/
|
2016-05-02 22:01:55 +02:00
|
|
|
#pragma once
|
2016-10-03 22:01:55 +02:00
|
|
|
#include <etk/types.hpp>
|
|
|
|
#include <ewol/object/Object.hpp>
|
|
|
|
#include <appl/Gui/TextViewer.hpp>
|
|
|
|
#include <ewol/compositing/Text.hpp>
|
|
|
|
#include <appl/TextPlugin.hpp>
|
2013-11-25 22:18:06 +01:00
|
|
|
|
|
|
|
namespace appl {
|
|
|
|
class TextPluginSelectAll : public appl::TextViewerPlugin {
|
2014-08-07 23:41:48 +02:00
|
|
|
protected:
|
2014-05-15 21:37:39 +02:00
|
|
|
TextPluginSelectAll();
|
2014-08-29 22:52:21 +02:00
|
|
|
int32_t m_menuIdTitle;
|
|
|
|
int32_t m_menuIdSelectAll;
|
|
|
|
int32_t m_menuIdSelectNone;
|
2014-08-07 23:41:48 +02:00
|
|
|
public:
|
|
|
|
DECLARE_FACTORY(TextPluginSelectAll);
|
2014-05-27 21:43:02 +02:00
|
|
|
virtual ~TextPluginSelectAll() {
|
2013-11-25 22:18:06 +01: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-11-25 22:18:06 +01:00
|
|
|
};
|
2016-05-02 22:01:55 +02:00
|
|
|
}
|
2013-11-25 22:18:06 +01:00
|
|
|
|