15 |
|
|
16 |
from Thuban.Model.resource import GetUserProjFiles, GetSystemProjFiles, \ |
from Thuban.Model.resource import GetUserProjFiles, GetSystemProjFiles, \ |
17 |
ReadProjFile, WriteProjFile |
ReadProjFile, WriteProjFile |
18 |
from Thuban.UI.dialogs import NonModalDialog |
from Thuban.UI.dialogs import NonModalNonParentDialog |
19 |
|
|
20 |
|
|
21 |
ID_PROJ_ADVANCED = 4001 |
ID_PROJ_ADVANCED = 4001 |
33 |
CLIENT_PROJ = 0 |
CLIENT_PROJ = 0 |
34 |
CLIENT_PROJFILE = 1 |
CLIENT_PROJFILE = 1 |
35 |
|
|
36 |
class ProjFrame(NonModalDialog): |
class ProjFrame(NonModalNonParentDialog): |
37 |
|
|
38 |
def __init__(self, parent, name, title, receiver): |
def __init__(self, parent, name, title, receiver): |
39 |
"""Initialize the projection dialog. |
"""Initialize the projection dialog. |
57 |
self.projPanels.append( |
self.projPanels.append( |
58 |
("latlong", _("Geographic"), GeoPanel)) |
("latlong", _("Geographic"), GeoPanel)) |
59 |
|
|
60 |
NonModalDialog.__init__(self, parent, name, title) |
NonModalNonParentDialog.__init__(self, parent, name, title) |
61 |
# originally generate by wxGlade |
# originally generate by wxGlade |
62 |
self.panel_1 = wxPanel(self, -1) |
self.panel_1 = wxPanel(self, -1) |
63 |
self.panel_edit = wxPanel(self, -1) |
self.panel_edit = wxPanel(self, -1) |
562 |
sizer_13.Add(self.projname, 1, wxALL, 4) |
sizer_13.Add(self.projname, 1, wxALL, 4) |
563 |
self.sizer_projctrls.Add(sizer_13, 0, wxEXPAND, 0) |
self.sizer_projctrls.Add(sizer_13, 0, wxEXPAND, 0) |
564 |
sizer_14.Add(self.label_3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4) |
sizer_14.Add(self.label_3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 4) |
565 |
sizer_14.Add(self.projchoice, 1, wxALL|wxEXPAND|wxADJUST_MINSIZE, 4) |
sizer_14.Add(self.projchoice, 1, wxALL|wxALIGN_CENTER_VERTICAL, 4) |
566 |
self.sizer_projctrls.Add(sizer_14, 0, wxEXPAND, 0) |
self.sizer_projctrls.Add(sizer_14, 0, wxEXPAND, 0) |
567 |
self.sizer_edit.Add(self.sizer_projctrls, 1, wxEXPAND, 0) |
self.sizer_edit.Add(self.sizer_projctrls, 1, wxEXPAND, 0) |
568 |
sizer_11.Add(self.button_new, 0, wxALL, 4) |
sizer_11.Add(self.button_new, 0, wxALL, 4) |
633 |
sizer = wxBoxSizer(wxHORIZONTAL) |
sizer = wxBoxSizer(wxHORIZONTAL) |
634 |
sizer.Add(wxStaticText(self, -1, _("Ellipsoid:")), 0, |
sizer.Add(wxStaticText(self, -1, _("Ellipsoid:")), 0, |
635 |
wxALL|wxALIGN_CENTER_VERTICAL, 4) |
wxALL|wxALIGN_CENTER_VERTICAL, 4) |
636 |
sizer.Add(self.__ellps, 1, wxALL|wxEXPAND|wxADJUST_MINSIZE, 4) |
sizer.Add(self.__ellps, 1, wxALL|wxALIGN_CENTER_VERTICAL, 4) |
637 |
panelSizer.Add(sizer, 0, wxALL|wxEXPAND, 4) |
panelSizer.Add(sizer, 0, wxALL|wxEXPAND, 4) |
638 |
|
|
639 |
if childPanel is not None: |
if childPanel is not None: |