# -*- coding: utf-8 -*-
# vim: expandtab ts=4 sw=4 sts=4:
#
# Copyright (C) 2007-2010 GNS3 Development Team (http://www.gns3.net/team).
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation;
#
# 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# http://www.gns3.net/contact
#

workaround_ManualLink = False
addingLinkFlag = False
addingNote = False
drawingRectangle = False
drawingEllipse = False
nodeConfiguratorWindow = None
preferencesWindow = None
hypervisor_baseport = 7200
recordConfiguration = True
interfaceLabels = {}
debugLevel = 1

# A singleton instance of GNS3 Application
# used for storing / accessing highly used object.
GApp = None

# Enum
class Enum:

    class LinkType:
        Manual = 0
        Ethernet = 1
        FastEthernet = 2
        GigaEthernet = 3
        Serial = 4
        ATM = 5
        POS = 6

linkTypes = {
    'Manual': Enum.LinkType.Manual,
    'Ethernet': Enum.LinkType.Ethernet,
    'FastEthernet': Enum.LinkType.FastEthernet,
    'GigaEthernet': Enum.LinkType.GigaEthernet,
    'Serial': Enum.LinkType.Serial,
    'ATM': Enum.LinkType.ATM,
    'POS': Enum.LinkType.POS
}

linkAbrv = {
    Enum.LinkType.Ethernet: 'e',
    Enum.LinkType.FastEthernet: 'f',
    Enum.LinkType.GigaEthernet: 'g',
    Enum.LinkType.Serial: 's',
    Enum.LinkType.ATM: 'a',
    Enum.LinkType.POS: 'p'
}

currentLinkType = Enum.LinkType.Manual
