Thu, 29 Dec 2016 18:41:38 +0300make FindInPouDialog work on Windows with wxPython 2.8
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Thu, 29 Dec 2016 18:41:38 +0300] rev 1620
make FindInPouDialog work on Windows with wxPython 2.8

additional fix for changeset 474de7f

Thu, 29 Dec 2016 18:36:00 +0300fix local search in actions and transitions
Surkov Sergey <surkovsv93@gmail.com> [Thu, 29 Dec 2016 18:36:00 +0300] rev 1619
fix local search in actions and transitions

Wed, 28 Dec 2016 19:05:28 +0300convert FindInPouDialog from wx.Frame to wx.Dialog
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 28 Dec 2016 19:05:28 +0300] rev 1618
convert FindInPouDialog from wx.Frame to wx.Dialog

In this case FindInPouDialog Windows isn't listed in windows manager
on Alt-Tab. And it's not shown on top of other applications. For
example, previously the dialog was shown even on top of web browser or
word processor.

Wed, 28 Dec 2016 17:10:04 +0300temporary disable SFC transitions in IL, because matiec can't compile it
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 28 Dec 2016 17:10:04 +0300] rev 1617
temporary disable SFC transitions in IL, because matiec can't compile it

matiec freezes in this case.
See https://bitbucket.org/mjsousa/matiec/issues/58/iec2c-freezes-if-sfc-transition-is-in-il

Wed, 28 Dec 2016 16:33:50 +0300fix issue with creating SFC transitions using ST and IL
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 28 Dec 2016 16:33:50 +0300] rev 1616
fix issue with creating SFC transitions using ST and IL

Beremiz generates text representation for transitions without names.
Therefore transition name in its IL code is not needed.

Mon, 26 Dec 2016 14:01:54 +0300replace '-' with '.' in resource tab and transition/action SFC code
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Mon, 26 Dec 2016 14:01:54 +0300] rev 1615
replace '-' with '.' in resource tab and transition/action SFC code


This makes tab names consistent with the way the same information is shown in variable panel.

Mon, 26 Dec 2016 13:49:38 +0300check during program generation whether source signal is defined for single task
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Mon, 26 Dec 2016 13:49:38 +0300] rev 1614
check during program generation whether source signal is defined for single task

Fri, 23 Dec 2016 18:40:31 +0300fix strange behavior on Backspace press in ST
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Fri, 23 Dec 2016 18:40:31 +0300] rev 1613
fix strange behavior on Backspace press in ST

Before:
if text was selected and cursor was at indention, one indention (two
spaces) was removed.

if cursor was at start position of the line, then nothing happened.

if cursor was in the middle of indention then on backspace more
indention were added


Now:
if text is selected, it will be removed.
if cursor is at start position, then new line will be removed.
if cursor was in the middle of indention one indention is removed.

Thu, 22 Dec 2016 17:39:58 +0300fix close button in system menu for AboutDialog on Windows
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Thu, 22 Dec 2016 17:39:58 +0300] rev 1612
fix close button in system menu for AboutDialog on Windows


If SetEscapeId receives wx.ID_CLOSE as parameter, then on Windows with
wxPython 2.8 system close button in title bar stops working.
If wx.ID_CANCEL or wx.ID_OK is used in SetEscapeId call, then close
button works correctly.

Thu, 22 Dec 2016 14:38:56 +0300make renames caseinsensitive
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Thu, 22 Dec 2016 14:38:56 +0300] rev 1611
make renames caseinsensitive

Tue, 20 Dec 2016 17:11:36 +0300fix problem with SFC action/transition rename
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Tue, 20 Dec 2016 17:11:36 +0300] rev 1610
fix problem with SFC action/transition rename

Traceback (most recent call last):
File "/home/developer/WorkData/PLC/beremiz/beremiz/IDEFrame.py", line
1636, in OnProjectTreeItemEndEdit
elif new_name.upper() in [name.upper() for name in
self.Controler.GetProjectPouVariableNames(pou_name) if name !=
old_name]:
NameError: global name 'pou_name' is not defined

Tue, 20 Dec 2016 14:41:10 +0300fix problem that it was impossible to edit SFC jump, if it references non-existent SFC step
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Tue, 20 Dec 2016 14:41:10 +0300] rev 1609
fix problem that it was impossible to edit SFC jump, if it references non-existent SFC step

Tue, 20 Dec 2016 13:26:54 +0300remove all corresponding SFC jumps when SFC step is removed (but only in DRIVENDRAWING_MODE)
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Tue, 20 Dec 2016 13:26:54 +0300] rev 1608
remove all corresponding SFC jumps when SFC step is removed (but only in DRIVENDRAWING_MODE)

Tue, 20 Dec 2016 13:26:24 +0300rename all corresponding SFC jumps when SFC step is renamed (but only in DRIVENDRAWING_MODE)
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Tue, 20 Dec 2016 13:26:24 +0300] rev 1607
rename all corresponding SFC jumps when SFC step is renamed (but only in DRIVENDRAWING_MODE)

Wed, 14 Dec 2016 13:14:45 +0300add check of new project path in Save As
Sergey Surkov <surkovsv93@gmail.com> [Wed, 14 Dec 2016 13:14:45 +0300] rev 1606
add check of new project path in Save As
add dialog window if selected directory is the current directory project, or already contains another project

Wed, 14 Dec 2016 12:44:30 +0300fix issue that in Debug mode LD instance doesn't show correctly its state after
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 14 Dec 2016 12:44:30 +0300] rev 1605
fix issue that in Debug mode LD instance doesn't show correctly its state after
continuation of FBD_Connector.

Previously state signals doesn't propogate through FBD_Connector.

Wed, 14 Dec 2016 12:36:04 +0300fix issue with task rename if "Name" column label is translated into
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 14 Dec 2016 12:36:04 +0300] rev 1604
fix issue with task rename if "Name" column label is translated into
other language

Wed, 14 Dec 2016 12:31:06 +0300fix issue with compiling SFC POU with non-connected transition (type "connection")
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 14 Dec 2016 12:31:06 +0300] rev 1603
fix issue with compiling SFC POU with non-connected transition (type "connection")

Tue, 13 Dec 2016 17:47:34 +0300fix bug with recent projects menu, remove path to the project from menu, if project directory doesn't exist
Sergey Surkov <surkovsv93@gmail.com> [Tue, 13 Dec 2016 17:47:34 +0300] rev 1602
fix bug with recent projects menu, remove path to the project from menu, if project directory doesn't exist

Tue, 13 Dec 2016 17:40:03 +0300fix bug with empty directories in recent projects menu
Sergey Surkov <surkovsv93@gmail.com> [Tue, 13 Dec 2016 17:40:03 +0300] rev 1601
fix bug with empty directories in recent projects menu
remove path to a project from recent projects menu, if project directory is empty

Mon, 12 Dec 2016 14:29:40 +0300fix list of recent projects in File menu, add path to current project after Save As
Sergey Surkov <surkovsv93@gmail.com> [Mon, 12 Dec 2016 14:29:40 +0300] rev 1600
fix list of recent projects in File menu, add path to current project after Save As

Thu, 08 Dec 2016 17:54:43 +0300by default init input and output in step sfc block, and output for initial step sfc block
Sergey Surkov <surkovsv93@gmail.com> [Thu, 08 Dec 2016 17:54:43 +0300] rev 1599
by default init input and output in step sfc block, and output for initial step sfc block

Wed, 07 Dec 2016 19:28:13 +0300update PLC status after initialization
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 19:28:13 +0300] rev 1598
update PLC status after initialization

This is necessary especially if existed PLC program is loaded, but PLC
is not started automatically. In this case taskbar icon shows that PLC
isn't empty.

Wed, 07 Dec 2016 19:25:58 +0300always load existing PLC program from the working directory
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 19:25:58 +0300] rev 1597
always load existing PLC program from the working directory

Wed, 07 Dec 2016 19:24:16 +0300stop PLC before unloading
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 19:24:16 +0300] rev 1596
stop PLC before unloading


This fixes segmentation fault if service was quit without stopping it.
It has happened if Beremiz service was quit using taskbar icon or by
closing Beremiz IDE (in case of autostarted local service).

In second case to trigger the bug following step has to be done:
1. Open Beremiz IDE
2. Open project, compile and connect to LOCAL:// runtime
3. Transfer and start the PLC program
4. Open other project without disconneting the PLC runtime
5. Close Beremiz IDE

Wed, 07 Dec 2016 18:32:34 +0300add internatialization support for Beremiz_service.py
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 18:32:34 +0300] rev 1595
add internatialization support for Beremiz_service.py

Wed, 07 Dec 2016 18:25:37 +0300fix issue with changing annonced Pyro service name via taskbar icon
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 18:25:37 +0300] rev 1594
fix issue with changing annonced Pyro service name via taskbar icon

Wed, 07 Dec 2016 18:23:59 +0300don't crash on trying to change IP interface for Beremiz_service using taskbar icon if IP wasn't previously
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 18:23:59 +0300] rev 1593
don't crash on trying to change IP interface for Beremiz_service using taskbar icon if IP wasn't previously


By default IP is not set (None) and service listen only on localhost interface.

Wed, 07 Dec 2016 18:15:04 +0300start/stop from taskbar icon only if PLC is stopped/started
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 18:15:04 +0300] rev 1592
start/stop from taskbar icon only if PLC is stopped/started

Wed, 07 Dec 2016 17:54:41 +0300close Pyro socket after daemon stop
Andrey Skvortsov <andrej.skvortzov@gmail.com> [Wed, 07 Dec 2016 17:54:41 +0300] rev 1591
close Pyro socket after daemon stop


without that socket port is open after daemon shutdown.
As a result if you restart daemon with new settings (service name, for example),
it can't listen on already used port and opens the next free TCP port
regardless of requested settings.