#include "file_storage_impl.h"
FileStorage::FileStorage(const IString_Provider* string_provider):
- m_string_provider(string_provider),
m_storage(NULL),
+ m_offset(0),
m_size(0),
- m_offset(0) {
+ m_string_provider(string_provider) {
}
FileStorage::~FileStorage() {
assert(record_name != NULL);
if ( current_record_name == NULL ||0 != strcmp(current_record_name, record_name)) {
current_record_name = record_name;
- curRecordIndex = find_metadata_record_index(record_name);
+ curRecordIndex = (int)find_metadata_record_index(record_name);
if (curRecordIndex == -1) {
printf("Can not find %s metadata record.\n", record_name);
}
}
}
private:
- const int find_metadata_record_index(const char* name)const{
+ size_t find_metadata_record_index(const char* name)const{
if (name == NULL) return -1;
const MetaData* metadata = m_metadataParser->get_metadata();
- for ( int i = 0; i < metadata->m_vec_metadata_record.size(); ++i) {
+ for ( size_t i = 0; i < metadata->m_vec_metadata_record.size(); ++i) {
const MetaData_Record& metadata_record = metadata->m_vec_metadata_record.at(i);
if (0 == strcmp(metadata_record.m_name, name)) {
class String_Provider: public IString_Provider{
public:
String_Provider(const String_Bin_Parser* sp): m_sp(sp) {}
- const char* get_string_by_id(const int id)const{
+ const char* get_string_by_id(int id)const{
if (m_sp == NULL) return NULL;
const std::vector<const char*>& string_depository = m_sp->get_string_depository();
- if (id >= 0 && id < string_depository.size())
+ if (id >= 0 && id < (int)string_depository.size())
return string_depository.at(id);
return NULL;
load(int layout_id)
{
BinResource *bin_xmlres = BinResource::get_instance();
- int layout_data_offset = bin_xmlres->info[LAYOUT].offset;
char path[_POSIX_PATH_MAX] = {0};
void
BinKeyCoordFrameParser::decode_key_coordinate_record(FileStorage& storage, const PSclLayoutKeyCoordinate cur, const Key_coordinate_record_width& record_width) {
- int width = 0;
-
cur->valid = (sclboolean)true;
//x
cur->x = storage.get<sint_t>(record_width.x);
m_layout_size = m_storage.get<sint_t>(REC_NUM_BYTES);
// layout_rec_data_size
- int layout_rec_data_size = m_storage.get<sint_t>(LAYOUT_REC_DATA_SIZE_BYTES);
+ m_storage.advance(LAYOUT_REC_DATA_SIZE_BYTES);
for (int i = 0; i < m_layout_size; ++i) {
SclLayout& cur = m_layout_table[i];
}
}
- sclwindow evwin = (sclwindow)(ev->window);
sclboolean is_scl_window = FALSE;
if (elm_win_xwindow_get(static_cast<Evas_Object*>(windows->get_base_window())) == ev->window) {
is_scl_window = TRUE;
rotatey = orgx;
}
break;
+ case ROTATION_0: break;
+ default: break;
}
#ifdef DO_NOT_MOVE_MAGNIFIER_WINDOW
sclboolean draw_button_bg_by_sw(const sclwindow window, const scldrawctx draw_ctx, const scl16 key_index, const SCLButtonState state);
sclboolean draw_window_bg_by_sw(const sclwindow window, const scldrawctx draw_ctx, const SclSize size,
const scldouble line_width, const SclColor line_color, const SclColor fill_color);
- sclboolean draw_button_bg_by_img(const sclwindow window, const scldrawctx draw_ctx,const scl16 key_index,
- const SCLButtonState state, const sclboolean shift);
+ sclboolean draw_button_bg_by_img(const sclwindow window, const scldrawctx draw_ctx, const scl16 key_index,
+ SCLButtonState state, SCLShiftState shift);
sclboolean draw_button_bg_by_layoutimg(const sclwindow window, const scldrawctx draw_ctx, const scl16 key_index,
const SCLButtonState state, const sclboolean shift);
sclboolean draw_button_label(const sclwindow window, const scldrawctx draw_ctx, const scl16 key_index,
- const SCLButtonState state, const sclboolean shift);
+ SCLButtonState state, SCLShiftState shift);
sclboolean draw_magnifier_label(const sclwindow window, const scldrawctx draw_ctx, const scl16 label_index, const sclchar* label);
MultiTouchContext *ctx = find_multi_touch_context(touch_id);
if (ctx) {
CSCLUtils *utils = CSCLUtils::get_instance();
- sclint deltax = ctx->cur_pressed_point.x - x;
- sclint deltay = ctx->cur_pressed_point.y - y;
ctx->farthest_move_dist = utils->get_approximate_distance(x, y, ctx->cur_pressed_point.x, ctx->cur_pressed_point.y);
ctx->farthest_move_point.x = x;
handler->on_event_key_clicked(key_event_desc);
}
break;
+ case BUTTON_TYPE_UIITEM: break;
+ case MAX_BUTTON_TYPE: break;
+ default: break;
}
-
switch (coordinate->popup_type) {
case POPUP_TYPE_BTN_PRESS_POPUP_DRAG: {
sclint popup_input_mode = sclres_manager->get_inputmode_id(coordinate->popup_input_mode[SCL_DRAG_STATE_NONE]);
case POPUP_TYPE_BTN_LONGPRESS_POPUP_ONCE:
case POPUP_TYPE_AUTO_POPUP:
case POPUP_TYPE_NONE:
+ case MAX_POPUP_TYPE:
+ default:
/* Nothing to do in here */
break;
}
}
}
break;
+ case BUTTON_TYPE_UIITEM: break;
+ case MAX_BUTTON_TYPE: break;
+ default: break;
}
}
}
}
}
break;
+ case BUTTON_TYPE_NORMAL: break;
+ case BUTTON_TYPE_GRAB: break;
+ case BUTTON_TYPE_SELFISH: break;
+ case BUTTON_TYPE_MULTITAP: break;
+ case BUTTON_TYPE_ROTATION: break;
+ case BUTTON_TYPE_DIRECTION: break;
+ case BUTTON_TYPE_RELATIVE_DIRECTION: break;
+ case BUTTON_TYPE_UIITEM: break;
+ case MAX_BUTTON_TYPE: break;
+ default:
+ break;
}
#ifdef DIRECTLY_DRAW_ON_EVENTS
if (keyindex != highlighted_key || window != highlighted_window ) {
printf("%d != %d || %p != %p\n", keyindex, highlighted_key, window, highlighted_window);
if(layout) {
- SclPoint pos = {0,};
sclfloat scale_rate_x, scale_rate_y;
if(layout->display_mode == DISPLAYMODE_PORTRAIT) {
scale_rate_x = utils->get_scale_rate_x();
{ 5 * (M_PI / 8), 7 * (M_PI / 8), KEY_MODIFIER_DIRECTION_DOWN_LEFT},
{ 7 * (M_PI / 8), 8 * (M_PI / 8), KEY_MODIFIER_DIRECTION_LEFT},
};
- for (sclint loop = 0;loop < sizeof(info) / sizeof(DIRECTIONINFO);loop++) {
+ for (size_t loop = 0; loop < sizeof(info) / sizeof(DIRECTIONINFO); loop++) {
if (theta >= info[loop].lowerbound && theta <= info[loop].upperbound) {
key_modifier = info[loop].modifier;
}
{ 1 * (M_PI / 4), 3 * (M_PI / 4), KEY_MODIFIER_DIRECTION_DOWN},
{ 3 * (M_PI / 4), 4 * (M_PI / 4), KEY_MODIFIER_DIRECTION_LEFT},
};
- for (sclint loop = 0;loop < sizeof(info) / sizeof(DIRECTIONINFO);loop++) {
+ for (size_t loop = 0; loop < sizeof(info) / sizeof(DIRECTIONINFO); loop++) {
if (theta >= info[loop].lowerbound && theta <= info[loop].upperbound) {
key_modifier = info[loop].modifier;
}
case BUTTON_TYPE_DRAG : {
}
break;
- }
+ case BUTTON_TYPE_UIITEM: break;
+ case MAX_BUTTON_TYPE: break;
+ default: break;
+ }
switch (coordinate->popup_type) {
case POPUP_TYPE_BTN_RELEASE_POPUP:
case POPUP_TYPE_BTN_RELEASE_POPUP_ONCE: {
case POPUP_TYPE_NONE:
/* Nothing to do in here */
break;
+ case POPUP_TYPE_BTN_LONGPRESS_POPUP_ONCE: break;
+ case POPUP_TYPE_BTN_LONGPRESS_POPUP: break;
+ case MAX_POPUP_TYPE: break;
+ default: break;
}
}
sclboolean signaled = FALSE;
if (coordinate) {
switch (coordinate->popup_type) {
- case POPUP_TYPE_BTN_RELEASE_POPUP:
- case POPUP_TYPE_BTN_RELEASE_POPUP_ONCE:
- case POPUP_TYPE_BTN_LONGPRESS_POPUP:
- case POPUP_TYPE_BTN_LONGPRESS_POPUP_ONCE:
- /* Fix me : We should consider z-order */
- skipwindow = windows->get_nth_window_in_Z_order_list(SCL_WINDOW_Z_TOP);
- handle_engine_signal(SCL_SIG_MOUSE_RELEASE, skipwindow);
- signaled = TRUE;
- break;
+ case POPUP_TYPE_BTN_RELEASE_POPUP:
+ case POPUP_TYPE_BTN_RELEASE_POPUP_ONCE:
+ case POPUP_TYPE_BTN_LONGPRESS_POPUP:
+ case POPUP_TYPE_BTN_LONGPRESS_POPUP_ONCE:
+ {
+ /* Fix me : We should consider z-order */
+ skipwindow = windows->get_nth_window_in_Z_order_list(SCL_WINDOW_Z_TOP);
+ handle_engine_signal(SCL_SIG_MOUSE_RELEASE, skipwindow);
+ signaled = TRUE;
+ }
+ break;
+ case POPUP_TYPE_NONE: break;
+ case POPUP_TYPE_BTN_PRESS_POPUP_DRAG: break;
+ case POPUP_TYPE_AUTO_POPUP: break;
+ case MAX_POPUP_TYPE: break;
+ default: break;
}
}
if (!signaled) {
sclboolean
CSCLController::timer_event(const scl32 data)
{
- struct my_srtuct {
- struct typeA {short x; short y;};
- struct typeB {short x; short y;};
- } strt;
SCL_DEBUG();
CSCLWindows *windows = CSCLWindows::get_instance();
CSCLContext *context = CSCLContext::get_instance();
break;
case SCL_TIMER_AUTOTEST: {
CSCLResourceCache *cache = CSCLResourceCache::get_instance();
- SCLDisplayMode display_mode = context->get_display_mode();
sclint rnd = rand() % 100;
sclint x = (rand() % (cache->get_cur_layout(windows->get_base_window())->width));
windows->close_all_popups();
}
break;
+ case SCL_SIG_START:
+ case SCL_SIG_INPMODE_CHANGE:
+ case SCL_SIG_DISP_CHANGE:
+ case SCL_SIG_POPUP_SHOW:
+ case SCL_SIG_POPUP_HIDE:
+ case SCL_SIG_MOUSE_PRESS:
+ case SCL_SIG_MOUSE_LONG_PRESS:
+ case SCL_SIG_MOUSE_RELEASE:
+ case SCL_SIG_KEYEVENT:
+ default:
+ break;
}
int loop = 0;
uiimpl->set_shift_state(SCL_SHIFT_STATE_OFF);
}
break;
+ case SCL_SHIFT_STATE_MAX:
+ default:
+ break;
}
}
}
sclshort layout = NOT_USED;
if (windows && context && utils) {
- sclbyte display = context->get_display_mode();
sclbyte inputmode = context->get_input_mode();
if (windows->is_base_window(window)) {
clear_privatekeyproperties(priv);
/* gets the value of the previous key properties */
- sclint loop;
SclLayoutKeyCoordinate keyCoordinate = { 0 };
if (scl_check_arrindex_unsigned(layout_index, MAX_SCL_LAYOUT) &&
scl_check_arrindex_unsigned(key_index, MAX_KEY)) {
* @remark draw_button
*/
sclboolean
-CSCLUIBuilder::draw_button_label(const sclwindow window, const scldrawctx draw_ctx, const scl16 key_index, const SCLButtonState state, const sclboolean shift)
+CSCLUIBuilder::draw_button_label(const sclwindow window, const scldrawctx draw_ctx, const scl16 key_index, SCLButtonState state, SCLShiftState shift)
{
SCL_DEBUG();
* @remark draw_button
*/
sclboolean
-CSCLUIBuilder::draw_button_bg_by_img(const sclwindow window, const scldrawctx draw_ctx,const scl16 key_index, const SCLButtonState state, const sclboolean shift)
+CSCLUIBuilder::draw_button_bg_by_img(const sclwindow window, const scldrawctx draw_ctx, scl16 key_index, SCLButtonState state, SCLShiftState shift)
{
SCL_DEBUG();
if (magnifier_configure->show_shift_label) {
shiftidx = SCL_SHIFT_STATE_ON;
}
- if (coordinate->use_long_key_magnifier && state->get_cur_action_state() == ACTION_STATE_BASE_LONGKEY ||
+ if ((coordinate->use_long_key_magnifier && state->get_cur_action_state() == ACTION_STATE_BASE_LONGKEY) ||
state->get_cur_action_state() == ACTION_STATE_POPUP_LONGKEY) {
const sclchar* targetstr = coordinate->long_key_value;
const sclchar* customstr = context->get_custom_magnifier_label(context->get_last_touch_device_id(), loop);
{
SCL_DEBUG();
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLUtils *utils = CSCLUtils::get_instance();
CSCLWindows *windows = CSCLWindows::get_instance();
//if (auto_relocate) {
if (TRUE) {
/* Let's relocate our base window - bottomed center aligned */
- sclint width, height;
- //get_layout_size(&width, &height);
SclRectangle rect = get_main_window_rect();
sclint scrx, scry;
{
SCL_DEBUG();
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLController *controller = CSCLController::get_instance();
CSCLWindows *windows = CSCLWindows::get_instance();
{
SCL_DEBUG();
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLEventHandler *handler = CSCLEventHandler::get_instance();
if (handler) {
//if (auto_relocate) {
if (TRUE) {
/* Let's relocate our base window - bottomed center aligned */
- sclint width, height;
- //get_layout_size(&width, &height);
SclRectangle rect = get_main_window_rect();
sclint scrx, scry;
CSCLUIImpl::unset_private_key(const sclchar* custom_id)
{
SCL_DEBUG();
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLResourceCache *cache = CSCLResourceCache::get_instance();
if (cache) {
CSCLUIImpl::notify_app_focus_changed()
{
SCL_DEBUG();
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLController *controller = CSCLController::get_instance();
if (controller) {
CSCLUIImpl::reset_popup_timeout()
{
SCL_DEBUG();
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLEvents *events = CSCLEvents::get_instance();
CSCLWindows *windows = CSCLWindows::get_instance();
CSCLUIImpl::close_all_popups()
{
SCL_DEBUG();
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLWindows *windows = CSCLWindows::get_instance();
if (windows) {
void
CSCLUIImpl::get_screen_resolution(sclint *width, sclint *height)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLUtils *utils = CSCLUtils::get_instance();
if (utils && width && height) {
void
CSCLUIImpl::set_debug_mode(SCLDebugMode mode)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLController *controller = CSCLController::get_instance();
if (controller) {
void
CSCLUIImpl::set_update_pending(sclboolean pend)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLWindows *windows = CSCLWindows::get_instance();
if (windows) {
void
CSCLUIImpl::enable_button(const sclchar* custom_id, sclboolean enabled)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLResourceCache *cache = CSCLResourceCache::get_instance();
if (cache) {
void
CSCLUIImpl::enable_magnifier(sclboolean enabled)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLContext *context = CSCLContext::get_instance();
if (context) {
void
CSCLUIImpl::enable_sound(sclboolean enabled)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLContext *context = CSCLContext::get_instance();
if (context) {
void
CSCLUIImpl::enable_vibration(sclboolean enabled)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLContext *context = CSCLContext::get_instance();
if (context) {
void
CSCLUIImpl::enable_tts(sclboolean enabled)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLContext *context = CSCLContext::get_instance();
if (context) {
void
CSCLUIImpl::enable_shift_multi_touch(sclboolean enabled)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLContext *context = CSCLContext::get_instance();
if (context) {
void
CSCLUIImpl::disable_input_events(sclboolean disabled)
{
- sclboolean ret = FALSE;
-
if (m_initialized) {
CSCLController *controller = CSCLController::get_instance();
if (controller) {
static Eina_Bool _get_default_zone_geometry_info (Ecore_X_Window root, scluint *x, scluint *y, scluint *w, scluint *h)
{
Ecore_X_Atom zone_geometry_atom;
- Ecore_X_Window default_zone;
Ecore_X_Window* zone_lists;
sclint num_zone_lists;
sclint num_ret;
static Evas_Coord scr_w = 0, scr_h = 0;
if (scr_w == 0 || scr_h == 0) {
scluint w, h;
+ w = h = 0;
if (_get_default_zone_geometry_info(ecore_x_window_root_first_get(), NULL, NULL, &w, &h)) {
scr_w = w;
scr_h = h;
../res/simple_debug.cpp
)
-SET(PACKAGE ${PROJECT_NAME})
-SET(PKGNAME ${PACKAGE})
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(BINDIR "${PREFIX}/bin")
SET(METADATADIR "${PREFIX}/share/libscl-ui")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -g")
-ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE}\"")
-ADD_DEFINITIONS("-DPACKAGE_NAME=\"${PKGNAME}\"")
-
ADD_EXECUTABLE(${PROJECT_NAME} ${SRCS})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${pkgs_LDFLAGS})
}
}
-static bool isEmptyRecord(const SclLayoutKeyCoordinate& cur) {
- return (cur.x == 0 && cur.y == 0 && cur.width == 0 && cur.height == 0);
-}
-
int
encode_label_properties_frame_file(ResourceStorage& storage, IMetaData_Helper& md_helper) {
inline void ResourceStorage::
expand_storage() {
unsigned int _new_size = (unsigned int)(m_capability + __RE_NEW_LENGTH__);
- if (_new_size > __MAX_NEW_SIZE__) {
+ if (_new_size > (unsigned int)__MAX_NEW_SIZE__) {
printf("expand_storage failed: size is limited to %d\n", __MAX_NEW_SIZE__);
return;
}
if (field_name == NULL) return 0;
int idx = m_current_metadata_record_id;
- if (idx < 0 || idx > metadata.m_vec_metadata_record.size()) return 0;
+ if (idx < 0 || idx > (int)metadata.m_vec_metadata_record.size()) return 0;
const MetaData_Record& metadata_record = metadata.m_vec_metadata_record.at(idx);
const unsigned short MetaData_Handler::
get_width(const char* name, const MetaData_Record& metadata_record) const{
assert(name);
- for (int i = 0; i < metadata_record.vField.size(); ++i) {
+ for (size_t i = 0; i < metadata_record.vField.size(); ++i) {
if ( 0 == strcmp(name, metadata_record.vField.at(i).m_name)) {
return metadata_record.vField.at(i).m_width;
}
find_metadata_record_index(const char* name)const{
assert(name);
- for ( int i = 0; i < metadata.m_vec_metadata_record.size(); ++i) {
+ for ( size_t i = 0; i < metadata.m_vec_metadata_record.size(); ++i) {
const MetaData_Record& metadata_record = metadata.m_vec_metadata_record.at(i);
if (0 == strcmp(metadata_record.m_name, name)) {
int value = LABEL_ALIGN_LEFT_TOP;
- for(int i = 0; i < sizeof(table)/sizeof(Match_table_t); ++i) {
+ for(size_t i = 0; i < sizeof(table)/sizeof(Match_table_t); ++i) {
if (0 == strcmp(key, table[i].key))
{
value = table[i].value;
int value = SHADOW_DIRECTION_NONE;
- for(int i = 0; i < sizeof(table)/sizeof(Match_table_t); ++i) {
+ for(size_t i = 0; i < sizeof(table)/sizeof(Match_table_t); ++i) {
if (0 == strcmp(key, table[i].key))
{
value = table[i].value;
void
LayoutParserImpl::release_layout_strings() {
- for(int loop = 0;loop < m_vec_layout_strings.size();loop++) {
+ for(size_t loop = 0; loop < m_vec_layout_strings.size(); loop++) {
if (m_vec_layout_strings[loop]) {
xmlFree(m_vec_layout_strings[loop]);
}
void
LayoutParserImpl::release_key_strings() {
- for(int loop = 0;loop < m_vec_key_strings.size();loop++) {
+ for(size_t loop = 0; loop < m_vec_key_strings.size(); loop++) {
if (m_vec_key_strings[loop]) {
xmlFree(m_vec_key_strings[loop]);
}
set_default_layout_value(cur_rec_layout);
- int row_y = 0;
xmlChar* key;
- SclLayoutKeyCoordinatePointer *cur_key = &m_key_coordinate_pointer_frame[layout_no][0];
-
if (equal_prop(cur_node, LAYOUT_DIRECTION_ATTRIBUTE,
LAYOUT_DIRECTION_ATTRIBUTE_LANDSCAPE_VALUE)) {
cur_rec_layout->display_mode = DISPLAYMODE_LANDSCAPE;
assert(cur_node != NULL);
int row_y = 0;
- xmlChar* key;
SclLayoutKeyCoordinatePointer *cur_key = &m_key_coordinate_pointer_frame[layout_no][0];
int drag_state = SCL_DRAG_STATE_NONE;
- for(int i = 0; i < sizeof(table)/sizeof(Match_Struct); ++i) {
+ for(size_t i = 0; i < sizeof(table)/sizeof(Match_Struct); ++i) {
if (0 == strcmp((const char*)key, table[i].key))
{
drag_state = table[i].value;
int type = SCL_MULTI_TOUCH_TYPE_EXCLUSIVE;
- for(int i = 0; i < sizeof(table)/sizeof(Match_Struct); ++i) {
+ for(size_t i = 0; i < sizeof(table)/sizeof(Match_Struct); ++i) {
if (0 == strcmp((const char*)key, table[i].key))
{
type = table[i].value;
int type = DIRECTION_EXTRA_OPTION_4_DIRECTIONS;
- for(int i = 0; i < sizeof(table)/sizeof(Match_Struct); ++i) {
+ for(size_t i = 0; i < sizeof(table)/sizeof(Match_Struct); ++i) {
if (0 == strcmp((const char*)key, table[i].key))
{
type = table[i].value;
doc = xmlReadFile(input_file, NULL, 0);
if (doc == NULL) {
- SCLLOG(SclLog::DEBUG, "Could not load file: %s.", input_file);
return -1;
}
cur_node = xmlDocGetRootElement(doc);
if (cur_node == NULL) {
- SCLLOG(SclLog::DEBUG, "MainEntryParser: empty document.\n");
xmlFreeDoc(doc);
return -1;
}
if (0 != xmlStrcmp(cur_node->name, (const xmlChar*)"main-entry"))
{
- SCLLOG(SclLog::DEBUG, "MainEntryParser: root name error: %s\n!", (char *)cur_node->name);
xmlFreeDoc(doc);
return -1;
}
MainEntryParser::~MainEntryParser() {
if (m_impl) {
- SCLLOG(SclLog::MESSAGE, "~MainEntryParser() has called");
delete m_impl;
- m_impl = NULL;
}
}
int key_modifier_state = KEY_MODIFIER_NONE;
- for(int i = 0; i < sizeof(table)/sizeof(Key_modifier_state_match_table_t); ++i) {
+ for(size_t i = 0; i < sizeof(table)/sizeof(Key_modifier_state_match_table_t); ++i) {
if (0 == strcmp(key, table[i].key) )
{
key_modifier_state = table[i].key_modifier_state;
InputModeConfigParser *input_mode_configure_parser = InputModeConfigParser::get_instance();
for(int inputmode = 0; inputmode < MAX_SCL_INPUT_MODE; inputmode++) {
- int empty_index;
- const sclchar* cur_layout_file;
PSclInputModeConfigure configure_table = input_mode_configure_parser->get_input_mode_configure_table();
SclInputModeConfigure& cur_input_mode_configure = configure_table[inputmode];