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;
|
|
|
|
|
|
|
|
#include "Singleton.h"
|
2011-08-19 16:09:58 +02:00
|
|
|
#include "MsgBroadcast.h"
|
2011-07-20 10:33:24 +02:00
|
|
|
#include "Highlight.h"
|
|
|
|
|
|
|
|
|
2011-08-19 16:09:58 +02:00
|
|
|
class HighlightManager: public Singleton<HighlightManager>, public MsgBroadcast
|
2011-07-20 10:33:24 +02:00
|
|
|
{
|
|
|
|
friend class Singleton<HighlightManager>;
|
|
|
|
// specific for sigleton system...
|
|
|
|
private:
|
|
|
|
// Constructeur
|
|
|
|
HighlightManager(void);
|
|
|
|
~HighlightManager(void);
|
|
|
|
|
2011-08-19 16:09:58 +02:00
|
|
|
public:
|
|
|
|
void OnMessage(int32_t id, int32_t dataID);
|
2011-07-20 10:33:24 +02:00
|
|
|
public:
|
|
|
|
void loadLanguages(void);
|
2011-08-07 10:47:06 +02:00
|
|
|
Highlight * Get(Edn::File &fileName);
|
|
|
|
bool Exist(Edn::File &fileName);
|
2011-07-20 10:33:24 +02:00
|
|
|
|
|
|
|
private:
|
2011-08-08 14:06:11 +02:00
|
|
|
Edn::VectorType<Highlight*> listHighlight; //!< List of ALL hightlight modules
|
2011-07-20 10:33:24 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|