2011-07-20 10:33:24 +02:00
|
|
|
/**
|
|
|
|
*******************************************************************************
|
|
|
|
* @file HighlightManager.h
|
|
|
|
* @brief Editeur De N'ours : Hightlining Manager (header)
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @date 14/12/2010
|
|
|
|
* @par Project
|
|
|
|
* Edn
|
|
|
|
*
|
|
|
|
* @par Copyright
|
|
|
|
* Copyright 2010 Edouard DUPIN, all right reserved
|
|
|
|
*
|
|
|
|
* This software is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY.
|
|
|
|
*
|
|
|
|
* Licence summary :
|
|
|
|
* You can modify and redistribute the sources code and binaries.
|
|
|
|
* You can send me the bug-fix
|
|
|
|
* You can not earn money with this Software (if the source extract from Edn
|
|
|
|
* represent less than 50% of original Sources)
|
|
|
|
* Term of the licence in in the file licence.txt.
|
|
|
|
*
|
|
|
|
*******************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __HIGHLIGHT_MANAGER_H__
|
|
|
|
#define __HIGHLIGHT_MANAGER_H__
|
|
|
|
|
|
|
|
class HighlightManager;
|
|
|
|
|
2012-01-11 15:26:53 +01:00
|
|
|
#include <etk/Singleton.h>
|
|
|
|
#include <MsgBroadcast.h>
|
|
|
|
#include <Highlight.h>
|
2012-01-31 18:26:04 +01:00
|
|
|
#include <ewol/Widget.h>
|
2011-07-20 10:33:24 +02:00
|
|
|
|
|
|
|
|
2012-01-31 18:26:04 +01:00
|
|
|
class HighlightManager: public etk::Singleton<HighlightManager>, public ewol::Widget
|
2011-07-20 10:33:24 +02:00
|
|
|
{
|
2012-01-11 15:26:53 +01:00
|
|
|
friend class etk::Singleton<HighlightManager>;
|
2011-07-20 10:33:24 +02:00
|
|
|
// specific for sigleton system...
|
|
|
|
private:
|
|
|
|
// Constructeur
|
|
|
|
HighlightManager(void);
|
|
|
|
~HighlightManager(void);
|
|
|
|
|
2011-08-19 16:09:58 +02:00
|
|
|
public:
|
2012-01-31 18:26:04 +01:00
|
|
|
bool OnEventAreaExternal(int32_t widgetID, const char * generateEventId, const char * eventExternId, etkFloat_t x, etkFloat_t y);
|
2011-07-20 10:33:24 +02:00
|
|
|
public:
|
|
|
|
void loadLanguages(void);
|
2012-01-11 15:26:53 +01:00
|
|
|
Highlight * Get(etk::File &fileName);
|
|
|
|
bool Exist(etk::File &fileName);
|
2011-07-20 10:33:24 +02:00
|
|
|
|
|
|
|
private:
|
2012-01-11 15:26:53 +01:00
|
|
|
etk::VectorType<Highlight*> listHighlight; //!< List of ALL hightlight modules
|
2011-07-20 10:33:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|