[DEV] review all the search bar

This commit is contained in:
2013-11-23 18:30:52 +01:00
parent a95a1e8033
commit 60903845c1
27 changed files with 646 additions and 808 deletions

View File

@@ -10,19 +10,35 @@
#define __SEARCH_H__
#include <appl/debug.h>
#include <ewol/widget/Sizer.h>
#include <ewol/widget/Composer.h>
#include <ewol/widget/Entry.h>
#include <appl/Buffer.h>
#include <appl/Gui/ViewerManager.h>
class Search : public widget::Sizer
class Search : public widget::Composer
{
private:
appl::ViewerManager* m_viewerManager; //!< handle on the buffer manager
bool m_forward;
widget::Entry * m_searchEntry;
widget::Entry * m_replaceEntry;
bool m_caseSensitive;
bool m_wrap;
widget::Entry* m_searchEntry;
widget::Entry* m_replaceEntry;
std::u32string m_searchData;
std::u32string m_replaceData;
public:
// Constructeur
Search(void);
~Search(void);
private:
/**
* @brief Find the next element that corespond at the search
*/
void find(void);
/**
* @brief Replace the current selected text.
*/
void replace(void);
public: // derived function
virtual void onReceiveMessage(const ewol::EMessage& _msg);
virtual void onObjectRemove(ewol::EObject * _removeObject);