[DEBUG] gcc compilation warning
This commit is contained in:
parent
03fa46bbcd
commit
d31137e1a3
@ -35,7 +35,7 @@ appl::TextViewerPlugin::~TextViewerPlugin() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_isEnable = false;
|
m_isEnable = false;
|
||||||
onPluginDisable();
|
onPluginGlobalDisable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void appl::TextViewerPlugin::setEnableStatus(bool _status) {
|
void appl::TextViewerPlugin::setEnableStatus(bool _status) {
|
||||||
@ -44,9 +44,9 @@ void appl::TextViewerPlugin::setEnableStatus(bool _status) {
|
|||||||
}
|
}
|
||||||
m_isEnable = _status;
|
m_isEnable = _status;
|
||||||
if (m_isEnable == true) {
|
if (m_isEnable == true) {
|
||||||
onPluginEnable();
|
onPluginGlobalEnable();
|
||||||
} else {
|
} else {
|
||||||
onPluginDisable();
|
onPluginGlobalDisable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,13 +42,13 @@ namespace appl {
|
|||||||
/**
|
/**
|
||||||
* @brief On plugin global enable.
|
* @brief On plugin global enable.
|
||||||
*/
|
*/
|
||||||
virtual void onPluginEnable() {
|
virtual void onPluginGlobalEnable() {
|
||||||
// nothing to do here ...
|
// nothing to do here ...
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* @brief On plugin global disable.
|
* @brief On plugin global disable.
|
||||||
*/
|
*/
|
||||||
virtual void onPluginDisable() {
|
virtual void onPluginGlobalDisable() {
|
||||||
// nothing to do here ...
|
// nothing to do here ...
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
@ -61,7 +61,7 @@ namespace appl {
|
|||||||
if (data == nullptr) {
|
if (data == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return onReceiveMessageViewer(_textDrawer, _msg, *data);
|
return onDataReceiveMessageViewer(_textDrawer, _msg, *data);
|
||||||
}
|
}
|
||||||
bool onWrite(appl::TextViewer& _textDrawer,
|
bool onWrite(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
@ -70,7 +70,7 @@ namespace appl {
|
|||||||
if (data == nullptr) {
|
if (data == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return onWrite(_textDrawer, _pos, _data, *data);
|
return onDataWrite(_textDrawer, _pos, _data, *data);
|
||||||
}
|
}
|
||||||
bool onReplace(appl::TextViewer& _textDrawer,
|
bool onReplace(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
@ -80,7 +80,7 @@ namespace appl {
|
|||||||
if (data == nullptr) {
|
if (data == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return onReplace(_textDrawer, _pos, _data, _posEnd, *data);
|
return onDataReplace(_textDrawer, _pos, _data, _posEnd, *data);
|
||||||
}
|
}
|
||||||
bool onRemove(appl::TextViewer& _textDrawer,
|
bool onRemove(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
@ -89,29 +89,29 @@ namespace appl {
|
|||||||
if (data == nullptr) {
|
if (data == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return onRemove(_textDrawer, _pos, _posEnd, *data);
|
return onDataRemove(_textDrawer, _pos, _posEnd, *data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool onReceiveMessageViewer(appl::TextViewer& _textDrawer,
|
virtual bool onDataReceiveMessageViewer(appl::TextViewer& _textDrawer,
|
||||||
const ewol::object::Message& _msg,
|
const ewol::object::Message& _msg,
|
||||||
TYPE& _data) {
|
TYPE& _data) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
virtual bool onWrite(appl::TextViewer& _textDrawer,
|
virtual bool onDataWrite(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const std::string& _strData,
|
const std::string& _strData,
|
||||||
TYPE& _data) {
|
TYPE& _data) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
virtual bool onReplace(appl::TextViewer& _textDrawer,
|
virtual bool onDataReplace(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const std::string& _strData,
|
const std::string& _strData,
|
||||||
const appl::Buffer::Iterator& _posEnd,
|
const appl::Buffer::Iterator& _posEnd,
|
||||||
TYPE& _data) {
|
TYPE& _data) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
virtual bool onRemove(appl::TextViewer& _textDrawer,
|
virtual bool onDataRemove(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const appl::Buffer::Iterator& _posEnd,
|
const appl::Buffer::Iterator& _posEnd,
|
||||||
TYPE& _data) {
|
TYPE& _data) {
|
||||||
|
@ -40,7 +40,7 @@ void appl::TextPluginHistory::onPluginDisable(appl::TextViewer& _textDrawer) {
|
|||||||
// TODO : unknow function ...
|
// TODO : unknow function ...
|
||||||
}
|
}
|
||||||
|
|
||||||
bool appl::TextPluginHistory::onReceiveMessageViewer(appl::TextViewer& _textDrawer,
|
bool appl::TextPluginHistory::onDataReceiveMessageViewer(appl::TextViewer& _textDrawer,
|
||||||
const ewol::object::Message& _msg,
|
const ewol::object::Message& _msg,
|
||||||
appl::PluginHistoryData& _data) {
|
appl::PluginHistoryData& _data) {
|
||||||
if (isEnable() == false) {
|
if (isEnable() == false) {
|
||||||
@ -111,7 +111,7 @@ void appl::TextPluginHistory::clearUndo(appl::PluginHistoryData& _data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool appl::TextPluginHistory::onWrite(appl::TextViewer& _textDrawer,
|
bool appl::TextPluginHistory::onDataWrite(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const std::string& _strData,
|
const std::string& _strData,
|
||||||
appl::PluginHistoryData& _data) {
|
appl::PluginHistoryData& _data) {
|
||||||
@ -134,7 +134,7 @@ bool appl::TextPluginHistory::onWrite(appl::TextViewer& _textDrawer,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool appl::TextPluginHistory::onReplace(appl::TextViewer& _textDrawer,
|
bool appl::TextPluginHistory::onDataReplace(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const std::string& _strData,
|
const std::string& _strData,
|
||||||
const appl::Buffer::Iterator& _posEnd,
|
const appl::Buffer::Iterator& _posEnd,
|
||||||
@ -159,7 +159,7 @@ bool appl::TextPluginHistory::onReplace(appl::TextViewer& _textDrawer,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool appl::TextPluginHistory::onRemove(appl::TextViewer& _textDrawer,
|
bool appl::TextPluginHistory::onDataRemove(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const appl::Buffer::Iterator& _posEnd,
|
const appl::Buffer::Iterator& _posEnd,
|
||||||
appl::PluginHistoryData& _data) {
|
appl::PluginHistoryData& _data) {
|
||||||
|
@ -46,19 +46,19 @@ namespace appl {
|
|||||||
public:
|
public:
|
||||||
virtual void onPluginEnable(appl::TextViewer& _textDrawer);
|
virtual void onPluginEnable(appl::TextViewer& _textDrawer);
|
||||||
virtual void onPluginDisable(appl::TextViewer& _textDrawer);
|
virtual void onPluginDisable(appl::TextViewer& _textDrawer);
|
||||||
virtual bool onReceiveMessageViewer(appl::TextViewer& _textDrawer,
|
virtual bool onDataReceiveMessageViewer(appl::TextViewer& _textDrawer,
|
||||||
const ewol::object::Message& _msg,
|
const ewol::object::Message& _msg,
|
||||||
appl::PluginHistoryData& _data);
|
appl::PluginHistoryData& _data);
|
||||||
virtual bool onWrite(appl::TextViewer& _textDrawer,
|
virtual bool onDataWrite(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const std::string& _strData,
|
const std::string& _strData,
|
||||||
appl::PluginHistoryData& _data);
|
appl::PluginHistoryData& _data);
|
||||||
virtual bool onReplace(appl::TextViewer& _textDrawer,
|
virtual bool onDataReplace(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const std::string& _strData,
|
const std::string& _strData,
|
||||||
const appl::Buffer::Iterator& _posEnd,
|
const appl::Buffer::Iterator& _posEnd,
|
||||||
appl::PluginHistoryData& _data);
|
appl::PluginHistoryData& _data);
|
||||||
virtual bool onRemove(appl::TextViewer& _textDrawer,
|
virtual bool onDataRemove(appl::TextViewer& _textDrawer,
|
||||||
const appl::Buffer::Iterator& _pos,
|
const appl::Buffer::Iterator& _pos,
|
||||||
const appl::Buffer::Iterator& _posEnd,
|
const appl::Buffer::Iterator& _posEnd,
|
||||||
appl::PluginHistoryData& _data);
|
appl::PluginHistoryData& _data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user