Fix dialogs positions to stay on the same screen than parent frame
authorlaurent
Thu, 21 Apr 2011 09:55:28 +0200
changeset 534 d506a353b3d3
parent 533 7081b52a8a2d
child 535 08f32198e932
Fix dialogs positions to stay on the same screen than parent frame
PLCOpenEditor.py
dialogs/ActionBlockDialog.py
dialogs/ArrayTypeDialog.py
dialogs/ConnectionDialog.py
dialogs/FBDBlockDialog.py
dialogs/FBDVariableDialog.py
dialogs/LDElementDialog.py
dialogs/LDPowerRailDialog.py
dialogs/SFCDivergenceDialog.py
dialogs/SFCStepDialog.py
dialogs/SFCTransitionDialog.py
--- a/PLCOpenEditor.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/PLCOpenEditor.py	Thu Apr 21 09:55:28 2011 +0200
@@ -2862,7 +2862,7 @@
 
     def _init_ctrls(self, prnt):
         wx.Dialog.__init__(self, id=ID_PROJECTDIALOG,
-              name='ProjectDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='ProjectDialog', parent=prnt,
               size=wx.Size(500, 350), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Project properties'))
         self.SetClientSize(wx.Size(500, 350))
@@ -3242,7 +3242,7 @@
         
     def _init_ctrls(self, prnt):
         wx.Dialog.__init__(self, id=ID_POUDIALOG,
-              name='PouDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='PouDialog', parent=prnt,
               size=wx.Size(300, 200), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Create a new POU'))
         self.SetClientSize(wx.Size(300, 200))
@@ -3419,7 +3419,7 @@
 
     def _init_ctrls(self, prnt):
         wx.Dialog.__init__(self, id=ID_POUTRANSITIONDIALOG,
-              name='PouTransitionDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='PouTransitionDialog', parent=prnt,
               size=wx.Size(350, 200), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Create a new transition'))
         self.SetClientSize(wx.Size(350, 160))
@@ -3563,7 +3563,7 @@
 
     def _init_ctrls(self, prnt):
         wx.Dialog.__init__(self, id=ID_POUACTIONDIALOG,
-              name='PouActionDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='PouActionDialog', parent=prnt,
               size=wx.Size(320, 200), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER,
               title=_('Create a new action'))
         self.SetClientSize(wx.Size(320, 160))
--- a/dialogs/ActionBlockDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/ActionBlockDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -251,7 +251,7 @@
     
     def _init_ctrls(self, prnt):
         wx.Dialog.__init__(self, id=ID_ACTIONBLOCKDIALOG,
-              name='ActionBlockDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='ActionBlockDialog', parent=prnt,
               size=wx.Size(500, 300), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER,
               title=_('Edit action block properties'))
         self.SetClientSize(wx.Size(500, 300))
--- a/dialogs/ArrayTypeDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/ArrayTypeDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -67,7 +67,7 @@
     
     def _init_ctrls(self, prnt):
         wx.Dialog.__init__(self, id=ID_ARRAYTYPEDIALOG,
-              name='ArrayTypeDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='ArrayTypeDialog', parent=prnt,
               size=wx.Size(500, 300), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER,
               title=_('Edit array type properties'))
         self.SetClientSize(wx.Size(500, 300))
--- a/dialogs/ConnectionDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/ConnectionDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -96,7 +96,7 @@
 
     def _init_ctrls(self, prnt, ctrler):
         wx.Dialog.__init__(self, id=ID_CONNECTIONDIALOG,
-              name='ConnectionDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='ConnectionDialog', parent=prnt,
               size=wx.Size(350, 220), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Connection Properties'))
         self.SetClientSize(wx.Size(350, 220))
--- a/dialogs/FBDBlockDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/FBDBlockDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -108,7 +108,7 @@
 
     def _init_ctrls(self, prnt):
         wx.Dialog.__init__(self, id=ID_FBDBLOCKDIALOG,
-              name='FBDBlockDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='FBDBlockDialog', parent=prnt,
               size=wx.Size(600, 400), style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER,
               title=_('Block Properties'))
         self.SetClientSize(wx.Size(600, 400))
--- a/dialogs/FBDVariableDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/FBDVariableDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -115,7 +115,7 @@
 
     def _init_ctrls(self, prnt, ctrler):
         wx.Dialog.__init__(self, id=ID_FBDVARIABLEDIALOG,
-              name='FBDVariableDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='FBDVariableDialog', parent=prnt,
               size=wx.Size(400, 380), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Variable Properties'))
         self.SetClientSize(wx.Size(400, 380))
--- a/dialogs/LDElementDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/LDElementDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -108,7 +108,7 @@
 
     def _init_ctrls(self, prnt, ctrler, title, extra_size = 0):
         wx.Dialog.__init__(self, id=ID_LDELEMENTDIALOG,
-              name='LDElementDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='LDElementDialog', parent=prnt,
               size=wx.Size(350, 260 + extra_size), style=wx.DEFAULT_DIALOG_STYLE,
               title=title)
         self.SetClientSize(wx.Size(350, 260 + extra_size))
--- a/dialogs/LDPowerRailDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/LDPowerRailDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -97,7 +97,7 @@
 
     def _init_ctrls(self, prnt, ctrler):
         wx.Dialog.__init__(self, id=ID_LDPOWERRAILDIALOG,
-              name='PowerRailDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='PowerRailDialog', parent=prnt,
               size=wx.Size(350, 260), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Power Rail Properties'))
         self.SetClientSize(wx.Size(350, 260))
--- a/dialogs/SFCDivergenceDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/SFCDivergenceDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -98,7 +98,7 @@
     
     def _init_ctrls(self, prnt, ctrler):
         wx.Dialog.__init__(self, id=ID_SFCDIVERGENCEDIALOG,
-              name='SFCDivergenceDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='SFCDivergenceDialog', parent=prnt,
               size=wx.Size(500, 300), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Create a new divergence or convergence'))
         self.SetClientSize(wx.Size(500, 300))
--- a/dialogs/SFCStepDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/SFCStepDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -96,7 +96,7 @@
 
     def _init_ctrls(self, prnt, ctrler):
         wx.Dialog.__init__(self, id=ID_SFCSTEPDIALOG,
-              name='SFCStepDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='SFCStepDialog', parent=prnt,
               size=wx.Size(400, 250), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Edit Step'))
         self.SetClientSize(wx.Size(400, 250))
--- a/dialogs/SFCTransitionDialog.py	Tue Apr 19 17:10:31 2011 +0200
+++ b/dialogs/SFCTransitionDialog.py	Thu Apr 21 09:55:28 2011 +0200
@@ -99,7 +99,7 @@
 
     def _init_ctrls(self, prnt, ctrler):
         wx.Dialog.__init__(self, id=ID_SFCTRANSITIONDIALOG,
-              name='SFCTransitionDialog', parent=prnt, pos=wx.Point(376, 223),
+              name='SFCTransitionDialog', parent=prnt,
               size=wx.Size(350, 300), style=wx.DEFAULT_DIALOG_STYLE,
               title=_('Edit transition'))
         self.SetClientSize(wx.Size(350, 300))