some work ...

This commit is contained in:
Edouard Dupin 2011-07-26 17:25:45 +02:00
parent 4da853c367
commit d92945717d
8 changed files with 40 additions and 47 deletions

View File

@ -159,9 +159,9 @@ CXXFILES+= tools/AL/AL_Mutex.cpp \
tools/MsgBroadcast/AccelKey.cpp \ tools/MsgBroadcast/AccelKey.cpp \
tools/charset/charsetTable.cpp \ tools/charset/charsetTable.cpp \
tools/charset/charset.cpp \ tools/charset/charset.cpp \
tools/EdnRegExp/EdnRegExp.cpp \
tools/NameSpaceEdn/File.cpp \ tools/NameSpaceEdn/File.cpp \
tools/NameSpaceEdn/String.cpp tools/NameSpaceEdn/String.cpp \
tools/NameSpaceEdn/RegExp.cpp
# Gui: # Gui:
CXXFILES+= CustumWidget/BufferView/BufferView.cpp \ CXXFILES+= CustumWidget/BufferView/BufferView.cpp \

View File

@ -29,6 +29,7 @@
#include "BufferText.h" #include "BufferText.h"
#include "toolsMemory.h" #include "toolsMemory.h"
#include "Edn.h" #include "Edn.h"
#include "RegExp.h"
#undef __class__ #undef __class__
#define __class__ "BufferText" #define __class__ "BufferText"
@ -1145,7 +1146,6 @@ void BufferText::AddChar(char * UTF8data)
UpdateWindowsPosition(); UpdateWindowsPosition();
} }
#include "EdnRegExp.h"
int32_t BufferText::FindLine(Edn::String &data) int32_t BufferText::FindLine(Edn::String &data)
{ {

View File

@ -29,7 +29,7 @@
class HighlightPattern; class HighlightPattern;
#include "Edn.h" #include "Edn.h"
#include "EdnRegExp.h" #include "RegExp.h"
#include "Colorize.h" #include "Colorize.h"
#include "EdnVectorBin.h" #include "EdnVectorBin.h"
#include "tinyxml.h" #include "tinyxml.h"
@ -71,8 +71,8 @@ class HighlightPattern {
Edn::String m_paternName; //!< Current style name (like "c++" or "c" or "script Bash") Edn::String m_paternName; //!< Current style name (like "c++" or "c" or "script Bash")
Edn::String m_colorName; //!< Current color name Edn::String m_colorName; //!< Current color name
Colorize * m_color; //!< Link to the color manager Colorize * m_color; //!< Link to the color manager
EdnRegExp * m_regExpStart; //!< Start of Regular expression EdnRegExp * m_regExpStart; //!< Start of Regular expression
EdnRegExp * m_regExpStop; //!< Stop of Regular Expression EdnRegExp * m_regExpStop; //!< Stop of Regular Expression
bool m_haveStopPatern; //!< Stop patern presence bool m_haveStopPatern; //!< Stop patern presence
bool m_multiline; //!< The patern is multiline bool m_multiline; //!< The patern is multiline
char m_escapeChar; //!< Escape char to prevent exeit of patern .... char m_escapeChar; //!< Escape char to prevent exeit of patern ....

View File

@ -28,17 +28,8 @@
#include "toolsMemory.h" #include "toolsMemory.h"
#include "EdnVectorBin.h" #include "EdnVectorBin.h"
#ifndef __EDN_H__
#define __EDN_H__
#define _IN_NAMESPACE_EDN_ (plop) #include "String.h"
namespace Edn #include "File.h"
{
#include "String.h"
#include "File.h"
}
#undef IN_NAMESPACE_EDN
#endif

View File

@ -23,31 +23,32 @@
******************************************************************************* *******************************************************************************
*/ */
#ifndef __EDN__FILE_H__
#define __EDN__FILE_H__
#ifndef _IN_NAMESPACE_EDN_ namespace Edn
# error This will be include only in "edn.h"
#else
class File
{ {
public: class File
File(void) { m_lineNumberOpen=0; } {
File(Edn::String &filename, int32_t LineNumber = 0); public:
File(Edn::String &filename, Edn::String &folder, int32_t lineNumber = 0); File(void) { m_lineNumberOpen=0; }
~File(void); File(Edn::String &filename, int32_t LineNumber = 0);
Edn::String GetFolder(void); File(Edn::String &filename, Edn::String &folder, int32_t lineNumber = 0);
Edn::String GetShortFilename(void); ~File(void);
Edn::String GetCompleateName(void); Edn::String GetFolder(void);
int32_t GetLineNumber(void); Edn::String GetShortFilename(void);
Edn::String GetCompleateName(void);
void SetCompleateName(Edn::String &newFilename); int32_t GetLineNumber(void);
private : void SetCompleateName(Edn::String &newFilename);
void ExtranctAndName(Edn::String &inputString);
Edn::String m_folder; private :
Edn::String m_shortFilename; void ExtranctAndName(Edn::String &inputString);
int32_t m_lineNumberOpen; Edn::String m_folder;
}; Edn::String m_shortFilename;
int32_t m_lineNumberOpen;
};
}
#endif #endif

View File

@ -1,6 +1,6 @@
/** /**
******************************************************************************* *******************************************************************************
* @file EdnRegExp.cpp * @file RegExp.cpp
* @brief Editeur De N'ours : Regular expression annalyser (sources) * @brief Editeur De N'ours : Regular expression annalyser (sources)
* @author Edouard DUPIN * @author Edouard DUPIN
* @date 04/04/2011 * @date 04/04/2011
@ -26,7 +26,7 @@
#include "tools_debug.h" #include "tools_debug.h"
#include "tools_globals.h" #include "tools_globals.h"
#include "toolsMemory.h" #include "toolsMemory.h"
#include "EdnRegExp.h" #include "RegExp.h"
// internal define to permit to have all neeed system // internal define to permit to have all neeed system

View File

@ -1,6 +1,6 @@
/** /**
******************************************************************************* *******************************************************************************
* @file EdnRegExp.h * @file RegExp.h
* @brief Editeur De N'ours : Regular expression annalyser (header) * @brief Editeur De N'ours : Regular expression annalyser (header)
* @author Edouard DUPIN * @author Edouard DUPIN
* @date 04/04/2011 * @date 04/04/2011

View File

@ -22,11 +22,11 @@
* *
******************************************************************************* *******************************************************************************
*/ */
#ifndef __END__STRING_H__
#define __END__STRING_H__
#ifndef _IN_NAMESPACE_EDN_ namespace Edn
# error This will be include only in "edn.h" {
#else
class String class String
{ {
public: public:
@ -77,6 +77,7 @@
}; };
void TestUntaire_String(void); void TestUntaire_String(void);
}
#endif #endif