Browse Subversion Repository
Contents of /jpinput/PlainTextConverter.cpp
Parent Directory
| Revision Log
Revision 230 -
( show annotations)
( download)
( as text)
Sun Feb 10 14:35:16 2008 UTC
(16 years, 2 months ago)
by satofumi
File MIME type: text/x-c++src
File size: 1394 byte(s)
add gl_gui's samples
| 1 |
/*! |
| 2 |
\file |
| 3 |
\brief –³•ÏŠ·ƒNƒ‰ƒX |
| 4 |
|
| 5 |
\author Satofumi KAMIMURA |
| 6 |
|
| 7 |
$Id$ |
| 8 |
*/ |
| 9 |
|
| 10 |
#include "PlainTextConverter.h" |
| 11 |
|
| 12 |
using namespace beego; |
| 13 |
|
| 14 |
|
| 15 |
struct PlainTextConverter::pImpl { |
| 16 |
std::vector<Uint16> inputed_text; |
| 17 |
}; |
| 18 |
|
| 19 |
|
| 20 |
PlainTextConverter::PlainTextConverter(void) : pimpl(new pImpl) { |
| 21 |
} |
| 22 |
|
| 23 |
|
| 24 |
PlainTextConverter::~PlainTextConverter(void) { |
| 25 |
} |
| 26 |
|
| 27 |
|
| 28 |
void PlainTextConverter::clear(void) { |
| 29 |
pimpl->inputed_text.clear(); |
| 30 |
} |
| 31 |
|
| 32 |
|
| 33 |
void PlainTextConverter::setConvertBuffer(const std::vector<Uint16>& buffer) { |
| 34 |
pimpl->inputed_text = buffer; |
| 35 |
} |
| 36 |
|
| 37 |
|
| 38 |
void PlainTextConverter::getConvertBuffer(std::vector<Uint16>& buffer) { |
| 39 |
buffer = pimpl->inputed_text; |
| 40 |
} |
| 41 |
|
| 42 |
|
| 43 |
bool PlainTextConverter::addChar(char ch) { |
| 44 |
pimpl->inputed_text.push_back(ch); |
| 45 |
return true; |
| 46 |
} |
| 47 |
|
| 48 |
|
| 49 |
bool PlainTextConverter::moveLeft(void) { |
| 50 |
// !!! |
| 51 |
return false; |
| 52 |
} |
| 53 |
|
| 54 |
|
| 55 |
bool PlainTextConverter::moveRight(void) { |
| 56 |
// !!! |
| 57 |
return false; |
| 58 |
} |
| 59 |
|
| 60 |
|
| 61 |
bool PlainTextConverter::moveUp(void) { |
| 62 |
// !!! |
| 63 |
return false; |
| 64 |
} |
| 65 |
|
| 66 |
|
| 67 |
bool PlainTextConverter::moveDown(void) { |
| 68 |
// !!! |
| 69 |
return false; |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
bool PlainTextConverter::escapePressed(void) { |
| 74 |
// !!! |
| 75 |
return false; |
| 76 |
} |
| 77 |
|
| 78 |
|
| 79 |
bool PlainTextConverter::deleteBack(void) { |
| 80 |
if (pimpl->inputed_text.empty()) { |
| 81 |
return false; |
| 82 |
} |
| 83 |
|
| 84 |
pimpl->inputed_text.pop_back(); |
| 85 |
return true; |
| 86 |
} |
| 87 |
|
| 88 |
|
| 89 |
bool PlainTextConverter::deleteCurrent(void) { |
| 90 |
// !!! |
| 91 |
return false; |
| 92 |
} |
| 93 |
|
| 94 |
|
| 95 |
bool PlainTextConverter::convertInput(void) { |
| 96 |
// !!! |
| 97 |
return false; |
| 98 |
} |
|