diff options
author | elfmz <fenix1905@tut.by> | 2022-11-07 17:22:05 +0300 |
---|---|---|
committer | elfmz <fenix1905@tut.by> | 2022-11-07 17:40:09 +0300 |
commit | e1c7f10e98950f3f35473b34f3970e63346053e0 (patch) | |
tree | 3cfba39e1e537aee8180a9c951b5beb4f2ddfc42 /far2l/src/edit.hpp | |
parent | fa30944de1bd03ca9e2bfdf6ad82085a5b730f59 (diff) |
use truecolor in colorer by adopting truemod functionality and extending editor API
Diffstat (limited to 'far2l/src/edit.hpp')
-rw-r--r-- | far2l/src/edit.hpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/far2l/src/edit.hpp b/far2l/src/edit.hpp index ec531f16..66916245 100644 --- a/far2l/src/edit.hpp +++ b/far2l/src/edit.hpp @@ -38,6 +38,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "bitflags.hpp" #include "FilesSuggestor.hpp" #include <memory> +#include <vector> // Младший байт (маска 0xFF) юзается классом ScreenObject!!! enum FLAGS_CLASS_EDITLINE @@ -66,6 +67,9 @@ struct ColorItem int StartPos; int EndPos; int Color; + FarTrueColor TrueFore; + FarTrueColor TrueBack; + bool TrueColorDefined; }; enum SetCPFlags @@ -144,8 +148,9 @@ class Edit:public ScreenObject wchar_t *Mask; - ColorItem *ColorList; - int ColorCount; +// ColorItem *ColorList; +// int ColorCount; + std::vector<ColorItem> ColorList; int Color; int SelColor; @@ -297,9 +302,9 @@ class Edit:public ScreenObject void InsertTab(); - void AddColor(ColorItem *col); - int DeleteColor(int ColorPos); - int GetColor(ColorItem *col,int Item); + void AddColor(const ColorItem *col); + size_t DeleteColor(int ColorPos); + bool GetColor(ColorItem *col,int Item); void Xlat(bool All=false); |