git-svn-id: svn://db.shs.com.ru/pip@904 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -19,69 +19,71 @@
|
||||
|
||||
#include "piscreendrawer.h"
|
||||
|
||||
// comment for use ascii instead of unicode symbols
|
||||
#define USE_UNICODE
|
||||
|
||||
using namespace PIScreenTypes;
|
||||
|
||||
|
||||
PIScreenDrawer::PIScreenDrawer(PIVector<PIVector<Cell> > & c): cells(c) {
|
||||
arts_[LineVertical] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("│");
|
||||
#else
|
||||
PIChar('|');
|
||||
#endif
|
||||
|
||||
arts_[LineHorizontal] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("─");
|
||||
#else
|
||||
PIChar('-');
|
||||
#endif
|
||||
|
||||
arts_[Cross] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┼");
|
||||
#else
|
||||
PIChar('+');
|
||||
#endif
|
||||
|
||||
arts_[CornerTopLeft] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┌");
|
||||
#else
|
||||
PIChar('+');
|
||||
#endif
|
||||
|
||||
arts_[CornerTopRight] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┐");
|
||||
#else
|
||||
PIChar('+');
|
||||
#endif
|
||||
|
||||
arts_[CornerBottomLeft] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("└");
|
||||
#else
|
||||
PIChar('+');
|
||||
#endif
|
||||
|
||||
arts_[CornerBottomRight] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("┘");
|
||||
#else
|
||||
PIChar('+');
|
||||
#endif
|
||||
|
||||
arts_[Unchecked] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("☐");
|
||||
#else
|
||||
PIChar('O');
|
||||
#endif
|
||||
|
||||
arts_[Checked] =
|
||||
#ifdef PIP_ICU
|
||||
#ifdef USE_UNICODE
|
||||
PIChar::fromUTF8("☑");
|
||||
#else
|
||||
PIChar('0');
|
||||
|
||||
Reference in New Issue
Block a user