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 __TOOLS_GLOBALS_H__
|
|
|
|
#define __TOOLS_GLOBALS_H__
|
|
|
|
|
2013-10-25 20:49:26 +02:00
|
|
|
#include <appl/debug.h>
|
2013-03-22 21:26:06 +01:00
|
|
|
#include <ewol/widget/Sizer.h>
|
2012-01-11 15:26:53 +01:00
|
|
|
|
2011-07-20 10:33:24 +02:00
|
|
|
|
|
|
|
namespace globals
|
|
|
|
{
|
2014-05-15 21:37:39 +02:00
|
|
|
void init();
|
|
|
|
void UnInit();
|
|
|
|
int32_t getNbColoneBorder();
|
|
|
|
int32_t getNbLineBorder();
|
2011-07-20 10:33:24 +02:00
|
|
|
|
2014-05-15 21:37:39 +02:00
|
|
|
bool isSetDisplayEndOfLine();
|
2013-10-09 22:00:24 +02:00
|
|
|
void setDisplayEndOfLine(bool _newVal);
|
2011-07-20 10:33:24 +02:00
|
|
|
|
2014-05-15 21:37:39 +02:00
|
|
|
bool isSetDisplaySpaceChar();
|
2013-10-09 22:00:24 +02:00
|
|
|
void setDisplaySpaceChar(bool _newVal);
|
2011-07-20 10:33:24 +02:00
|
|
|
|
2014-05-15 21:37:39 +02:00
|
|
|
bool isSetDisplayTabChar();
|
2013-10-09 22:00:24 +02:00
|
|
|
void setDisplayTabChar(bool _newVal);
|
2012-07-23 17:21:44 +02:00
|
|
|
|
2014-05-15 21:37:39 +02:00
|
|
|
bool isSetAutoIndent();
|
2013-10-09 22:00:24 +02:00
|
|
|
void setAutoIndent(bool _newVal);
|
2011-07-20 10:33:24 +02:00
|
|
|
|
2014-05-15 21:37:39 +02:00
|
|
|
void init2();
|
2012-07-23 17:21:44 +02:00
|
|
|
|
2014-05-15 21:37:39 +02:00
|
|
|
bool OrderTheBufferList();
|
2012-07-23 17:21:44 +02:00
|
|
|
|
2013-12-13 21:50:40 +01:00
|
|
|
class ParameterGlobalsGui : public ewol::widget::Sizer {
|
2014-08-07 23:41:48 +02:00
|
|
|
protected:
|
2014-05-15 21:37:39 +02:00
|
|
|
ParameterGlobalsGui();
|
2014-08-07 23:41:48 +02:00
|
|
|
void init();
|
|
|
|
public:
|
|
|
|
DECLARE_FACTORY(ParameterGlobalsGui);
|
2014-05-27 21:43:02 +02:00
|
|
|
virtual ~ParameterGlobalsGui();
|
2014-08-25 05:55:06 +02:00
|
|
|
void onCallbackEndOfLine(const bool& _value);
|
|
|
|
void onCallbackIndentation(const bool& _value);
|
|
|
|
void onCallbackSpace(const bool& _value);
|
|
|
|
void onCallbackTabulation(const bool& _value);
|
|
|
|
void onCallbackRounded(const bool& _value);
|
2012-07-23 17:21:44 +02:00
|
|
|
};
|
2011-07-20 10:33:24 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|