[DEV] work corectly with refcounting object (and remove some memory leek at close)
This commit is contained in:
@@ -14,35 +14,37 @@
|
||||
#include <ewol/widget/Entry.h>
|
||||
#include <appl/Buffer.h>
|
||||
#include <appl/Gui/ViewerManager.h>
|
||||
|
||||
class Search : public ewol::widget::Composer {
|
||||
private:
|
||||
ewol::object::Shared<appl::ViewerManager> m_viewerManager; //!< handle on the buffer manager
|
||||
bool m_forward;
|
||||
bool m_caseSensitive;
|
||||
bool m_wrap;
|
||||
ewol::object::Shared<ewol::widget::Entry> m_searchEntry;
|
||||
ewol::object::Shared<ewol::widget::Entry> m_replaceEntry;
|
||||
std::u32string m_searchData;
|
||||
std::u32string m_replaceData;
|
||||
public:
|
||||
// Constructeur
|
||||
Search();
|
||||
~Search();
|
||||
private:
|
||||
/**
|
||||
* @brief Find the next element that corespond at the search
|
||||
*/
|
||||
void find();
|
||||
/**
|
||||
* @brief Replace the current selected text.
|
||||
*/
|
||||
void replace();
|
||||
public: // derived function
|
||||
virtual void onReceiveMessage(const ewol::object::Message& _msg);
|
||||
virtual void onObjectRemove(const ewol::object::Shared<ewol::Object> _removeObject);
|
||||
namespace appl {
|
||||
namespace widget {
|
||||
class Search : public ewol::widget::Composer {
|
||||
private:
|
||||
ewol::object::Shared<appl::ViewerManager> m_viewerManager; //!< handle on the buffer manager
|
||||
bool m_forward;
|
||||
bool m_caseSensitive;
|
||||
bool m_wrap;
|
||||
ewol::object::Shared<ewol::widget::Entry> m_searchEntry;
|
||||
ewol::object::Shared<ewol::widget::Entry> m_replaceEntry;
|
||||
std::u32string m_searchData;
|
||||
std::u32string m_replaceData;
|
||||
public:
|
||||
// Constructeur
|
||||
Search();
|
||||
virtual ~Search();
|
||||
private:
|
||||
/**
|
||||
* @brief Find the next element that corespond at the search
|
||||
*/
|
||||
void find();
|
||||
/**
|
||||
* @brief Replace the current selected text.
|
||||
*/
|
||||
void replace();
|
||||
public: // derived function
|
||||
virtual void onReceiveMessage(const ewol::object::Message& _msg);
|
||||
virtual void onObjectRemove(const ewol::object::Shared<ewol::Object>& _object);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user