KVIrc  4.9.2
DeveloperAPIs
Namespaces | Macros | Enumerations | Functions
KviControlCodes.h File Reference

This file holds the text control codes. More...

#include "kvi_settings.h"
#include "KviCString.h"

Go to the source code of this file.

Namespaces

 KviControlCodes
 Holds all text control code KVIrc uses.
 

Macros

#define KVI_MIRCCOLOR_MAX_BACKGROUND   15
 
#define KVI_MIRCCOLOR_MAX_FOREGROUND   15
 

Enumerations

enum  KviControlCodes::Color {
  KviControlCodes::White = 0, KviControlCodes::Black = 1, KviControlCodes::DarkBlue = 2, KviControlCodes::DarkGreen = 3,
  KviControlCodes::Red = 4, KviControlCodes::DarkRed = 5, KviControlCodes::DarkViolet = 6, KviControlCodes::Orange = 7,
  KviControlCodes::Yellow = 8, KviControlCodes::LightGreen = 9, KviControlCodes::BlueMarine = 10, KviControlCodes::LightBlue = 11,
  KviControlCodes::Blue = 12, KviControlCodes::LightViolet = 13, KviControlCodes::DarkGray = 14, KviControlCodes::LightGray = 15,
  KviControlCodes::Transparent = 100, KviControlCodes::NoChange = 101
}
 Contains mIRC color codes. More...
 
enum  KviControlCodes::Control {
  KviControlCodes::CTCP = 0x01, KviControlCodes::Bold = 0x02, KviControlCodes::Color = 0x03, KviControlCodes::Escape = 0x04,
  KviControlCodes::UnEscape = 0x05, KviControlCodes::UnIcon = 0x06, KviControlCodes::Reset = 0x0f, KviControlCodes::Reverse = 0x16,
  KviControlCodes::Icon = 0x1d, KviControlCodes::CryptEscape = 0x1e, KviControlCodes::Underline = 0x1f
}
 Contains mIRC control codes. More...
 

Functions

const kvi_wchar_tKviControlCodes::getColorBytesW (const kvi_wchar_t *pwData, unsigned char *pcByte1, unsigned char *pcByte2)
 
unsigned int KviControlCodes::getUnicodeColorBytes (const QString &szData, unsigned int iChar, unsigned char *pcByte1, unsigned char *pcByte2)
 
QString KviControlCodes::stripControlBytes (const QString &szData)
 Removes control bytes from the given string. More...
 

Detailed Description

This file holds the text control codes.

Author
Szymon Stefanek It was originally named KviMircCntrl

Macro Definition Documentation

#define KVI_MIRCCOLOR_MAX_BACKGROUND   15
#define KVI_MIRCCOLOR_MAX_FOREGROUND   15