dialogs/PouTransitionDialog.py
changeset 1649 3291024e00da
parent 1617 3f3d97be9a9f
child 1670 cd03b8432541
equal deleted inserted replaced
1648:6431f26aa501 1649:3291024e00da
     1 #!/usr/bin/env python
     1 #!/usr/bin/env python
     2 # -*- coding: utf-8 -*-
     2 # -*- coding: utf-8 -*-
     3 
     3 
     4 #This file is part of PLCOpenEditor, a library implementing an IEC 61131-3 editor
     4 # This file is part of Beremiz, a Integrated Development Environment for
     5 #based on the plcopen standard. 
     5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
     6 #
     6 #
     7 #Copyright (C) 2012: Edouard TISSERANT and Laurent BESSARD
     7 # Copyright (C) 2012: Edouard TISSERANT and Laurent BESSARD
     8 #
     8 #
     9 #See COPYING file for copyrights details.
     9 # See COPYING file for copyrights details.
    10 #
    10 #
    11 #This library is free software; you can redistribute it and/or
    11 # This program is free software; you can redistribute it and/or
    12 #modify it under the terms of the GNU General Public
    12 # modify it under the terms of the GNU General Public License
    13 #License as published by the Free Software Foundation; either
    13 # as published by the Free Software Foundation; either version 2
    14 #version 2.1 of the License, or (at your option) any later version.
    14 # of the License, or (at your option) any later version.
    15 #
    15 #
    16 #This library is distributed in the hope that it will be useful,
    16 # This program is distributed in the hope that it will be useful,
    17 #but WITHOUT ANY WARRANTY; without even the implied warranty of
    17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    18 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19 #General Public License for more details.
    19 # GNU General Public License for more details.
    20 #
    20 #
    21 #You should have received a copy of the GNU General Public
    21 # You should have received a copy of the GNU General Public License
    22 #License along with this library; if not, write to the Free Software
    22 # along with this program; if not, write to the Free Software
    23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 
    24 
    25 import wx
    25 import wx
    26 
    26 
    27 from plcopen.structures import TestIdentifier, IEC_KEYWORDS
    27 from plcopen.structures import TestIdentifier, IEC_KEYWORDS
    28 
    28 
    30 #                                POU Transition Dialog
    30 #                                POU Transition Dialog
    31 #-------------------------------------------------------------------------------
    31 #-------------------------------------------------------------------------------
    32 
    32 
    33 def GetTransitionLanguages():
    33 def GetTransitionLanguages():
    34     _ = lambda x : x
    34     _ = lambda x : x
    35     return [_("IL"), _("ST"), _("LD"), _("FBD")]
    35     #
       
    36     # IL language is temporary disabled because
       
    37     # matiec freezes if transition is written in IL
       
    38     #
       
    39     # return [_("IL"), _("ST"), _("LD"), _("FBD")]
       
    40     return [ _("ST"), _("LD"), _("FBD")]
    36 TRANSITION_LANGUAGES_DICT = dict([(_(language), language) for language in GetTransitionLanguages()])
    41 TRANSITION_LANGUAGES_DICT = dict([(_(language), language) for language in GetTransitionLanguages()])
    37 
    42 
    38 class PouTransitionDialog(wx.Dialog):
    43 class PouTransitionDialog(wx.Dialog):
    39     
    44     
    40     def __init__(self, parent):
    45     def __init__(self, parent):