2011-07-20 10:33:24 +02:00
|
|
|
/**
|
|
|
|
* @author Edouard DUPIN
|
2012-11-25 11:55:06 +01:00
|
|
|
*
|
|
|
|
* @copyright 2010, Edouard DUPIN, all right reserved
|
|
|
|
*
|
|
|
|
* @license GPL v3 (see license file)
|
2011-07-20 10:33:24 +02:00
|
|
|
*/
|
2012-11-25 11:55:06 +01:00
|
|
|
|
2011-07-20 10:33:24 +02:00
|
|
|
#ifndef __HIGHLIGHT_MANAGER_H__
|
|
|
|
#define __HIGHLIGHT_MANAGER_H__
|
|
|
|
|
|
|
|
|
2013-12-28 14:23:25 +01:00
|
|
|
#include <etk/types.h>
|
2012-04-24 09:42:14 +02:00
|
|
|
#include <appl/globalMsg.h>
|
2013-11-23 18:30:52 +01:00
|
|
|
#include <appl/Highlight.h>
|
2012-08-20 18:12:14 +02:00
|
|
|
#include <ewol/widget/Widget.h>
|
2011-07-20 10:33:24 +02:00
|
|
|
|
2013-10-23 21:19:30 +02:00
|
|
|
namespace appl {
|
|
|
|
namespace highlightManager {
|
|
|
|
/**
|
|
|
|
* @brief Init the Highlight manager
|
|
|
|
*/
|
2014-05-15 21:37:39 +02:00
|
|
|
void init();
|
2013-10-23 21:19:30 +02:00
|
|
|
/**
|
|
|
|
* @brief Un-Init the Highlight manager
|
|
|
|
*/
|
2014-05-15 21:37:39 +02:00
|
|
|
void unInit();
|
2013-10-23 21:19:30 +02:00
|
|
|
/**
|
|
|
|
* @brief Un-Init the Highlight manager
|
|
|
|
* @param[in] extention of the file
|
|
|
|
* @return type of highlight
|
|
|
|
*/
|
2013-11-14 21:57:10 +01:00
|
|
|
std::string getTypeExtention(const std::string& _extention);
|
2013-10-27 11:34:45 +01:00
|
|
|
/**
|
|
|
|
* @brief Get filename with type.
|
|
|
|
* @param[in] _type Type name of the highlight.
|
|
|
|
* @return filename of the highlight.
|
|
|
|
*/
|
2013-11-14 21:57:10 +01:00
|
|
|
std::string getFileWithTypeType(const std::string& _type);
|
2013-10-23 21:19:30 +02:00
|
|
|
/**
|
|
|
|
* @brief Get the list of extention type
|
|
|
|
* @return the requested list.
|
|
|
|
*/
|
2014-05-15 21:37:39 +02:00
|
|
|
std::vector<std::string> getTypeList();
|
2013-10-23 21:19:30 +02:00
|
|
|
};
|
2011-07-20 10:33:24 +02:00
|
|
|
};
|
|
|
|
|
2012-02-19 22:33:43 +01:00
|
|
|
|
2011-07-20 10:33:24 +02:00
|
|
|
#endif
|
|
|
|
|