Logo Search packages:      
Sourcecode: ibus-xkbc version File versions  Download package

xkb_keymap.py

# vim:set et sts=4 sw=4:
#
# ibus-xkbc - The Input Bus Keyboard Layout emulaton engine.
#
# Copyright (c) 2009, 2010 Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

from constants import *
from parser import *

00024 class KeymapParser(Parser):

    def __init__(self, basedir):
        Parser.__init__(self, basedir)

    def get_component_class(self):
        return XKB_Keymap

    def get_component_keyword(self):
        return KWD_KEYMAP

    def get_component_dirname(self):
        return DN_KEYMAP

from xkb_component import XKB_Component

00040 class XKB_Keymap(XKB_Component):
    #### xkb_keymap data body ####

    ##############################

00045     def __init__(self):
        XKB_Component.__init__(self)

    def set_content(self, content):
        length = len(content)
        i = 0
        # while i < length:
        #    token = content[i]; i += 1


Generated by  Doxygen 1.6.0   Back to index