22 # You should have received a copy of the GNU General Public License |
22 # You should have received a copy of the GNU General Public License |
23 # along with this program; if not, write to the Free Software |
23 # along with this program; if not, write to the Free Software |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
25 |
25 |
26 import re |
26 import re |
|
27 import wx |
27 from plcopen.plcopen import * |
28 from plcopen.plcopen import * |
28 import wx |
29 from util.TranslationCatalogs import NoTranslate |
29 |
30 |
30 #------------------------------------------------------------------------------- |
31 #------------------------------------------------------------------------------- |
31 # Search In Project Dialog |
32 # Search In Project Dialog |
32 #------------------------------------------------------------------------------- |
33 #------------------------------------------------------------------------------- |
33 |
34 |
34 |
35 |
35 def GetElementsChoices(): |
36 def GetElementsChoices(): |
36 _ = lambda x: x |
37 _ = NoTranslate |
37 return [("datatype", _("Data Type")), |
38 return [("datatype", _("Data Type")), |
38 ("function", _("Function")), |
39 ("function", _("Function")), |
39 ("functionBlock", _("Function Block")), |
40 ("functionBlock", _("Function Block")), |
40 ("program", _("Program")), |
41 ("program", _("Program")), |
41 ("configuration", _("Configuration"))] |
42 ("configuration", _("Configuration"))] |