#!./python_link
# -*- coding: utf-8 -*-
################################################################################
#    DChars-FE Copyright (C) 2008 Xavier Faure
#    Contact: faure dot epistulam dot mihi dot scripsisti at orange dot fr
#
#    This file is part of DChars-FE.
#    DChars-FE 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 3 of the License, or
#    (at your option) any later version.
#
#    DChars-FE 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 DChars-FE.  If not, see <http://www.gnu.org/licenses/>.
################################################################################
"""
        ❏DChars-FE❏ kshortcuts.py

        (keyboard) shortcuts
"""

################################################################################
class KeyboardShortcut(object):
    """
        class KeyboardShortcut

        Use this class to store two representations of shortcuts :  the Qt one
        and the "human readable" one.
    """

    #///////////////////////////////////////////////////////////////////////////
    def __init__(self, qstring, human_readeable_string):
        """
                KeyboardShortcut.__init__
        """
        self.qstring = qstring
        self.human_readeable_string = human_readeable_string



KSHORTCUTS = {
                "open" : \
                        KeyboardShortcut( qstring = "CTRL+O",
                                          human_readeable_string = "CTRL+O" ),

                "save as" : \
                        KeyboardShortcut( qstring = "CTRL+S",
                                          human_readeable_string = "CTRL+S" ),

                "exit" : \
                        KeyboardShortcut( qstring = "CTRL+Q",
                                          human_readeable_string = "CTRL+Q" ),

                "display help chars" : \
                        KeyboardShortcut( qstring = "CTRL+H",
                                          human_readeable_string = "CTRL+H" ),

                "apply" : \
                        KeyboardShortcut( qstring = "CTRL+SPACE",
                                          human_readeable_string = "CTRL+SPACE" ),

                "add trans" : \
                        KeyboardShortcut( qstring = "CTRL++",
                                          human_readeable_string = "CTRL + '+'" ),

                "sub trans" : \
                        KeyboardShortcut( qstring = "CTRL+-",
                                          human_readeable_string = "CTRL + '-'" ),
             }
