def __init__(self, *args, **kwds): #spath = wx.StandardPaths.Get() config.documentsdir = os.path.expanduser('~') self.abortEvent = delayedresult.AbortEvent() self.jobID = 0 self.rendering = False self.resume = False kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.panel_1 = wx.Panel(self, -1) self.panel_2 = wx.Panel(self.panel_1, -1) # Events self.Bind(EVT_GENERIC_GUI, self.updateRenderText) self.Bind(wxgdal.EVT_UPDATE_PROGRESS, self.updateProgress) self.Bind(wx.EVT_CLOSE, self.OnQuit) # List of steps on left side self.bitmap_1 = wx.StaticBitmap(self, -1, icons.getIcon140Bitmap()) self.steplabel = [] self.steplabel.append(wx.StaticText(self, -1, _("Tile Profile"))) self.steplabel.append(wx.StaticText(self, -1, _("Source Data Files"))) self.steplabel.append(wx.StaticText(self, -1, _("Spatial Reference"))) self.steplabel.append( wx.StaticText(self, -1, _("Tile Details")) ) # Zoom levels, PNG/JPEG, Tile addressing, Postprocessing? self.steplabel.append(wx.StaticText( self, -1, _("Destination"))) # Directory / database self.steplabel.append(wx.StaticText(self, -1, _("Viewers"))) self.steplabel.append(wx.StaticText(self, -1, _("Viewer Details"))) self.steplabel.append(wx.StaticText(self, -1, _("Rendering"))) self.label_10 = wx.StaticText( self, -1, _("MapSlicer - Tile Generator for Map Mashups")) self.label_8 = wx.StaticText(self, -1, _("Version %s") % config.version) self.label_9 = wx.StaticText( self, -1, _("https://wiki.osgeo.org/wiki/MapSlicer")) self.button_back = wx.Button(self, -1, _("Go &Back")) self.Bind(wx.EVT_BUTTON, self.OnBack, self.button_back) self.button_continue = wx.Button(self, -1, _("&Continue")) self.Bind(wx.EVT_BUTTON, self.OnContinue, self.button_continue) self.html = wizard.WizardHtmlWindow(self.panel_2, -1) self.html.SetBorders(0) self.html.SetMinSize((500, 385)) # Set the first step of the wizard self.SetStep(1) self.__set_properties() self.__do_layout()
def __init__(self, *args, **kwds): #spath = wx.StandardPaths.Get() config.documentsdir = os.path.expanduser('~') self.abortEvent = delayedresult.AbortEvent() self.jobID = 0 self.rendering = False self.resume = False kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.panel_1 = wx.Panel(self, -1) self.panel_2 = wx.Panel(self.panel_1, -1) # Events self.Bind(EVT_GENERIC_GUI, self.updateRenderText) self.Bind(wxgdal.EVT_UPDATE_PROGRESS, self.updateProgress) self.Bind(wx.EVT_CLOSE, self.OnQuit) # List of steps on left side self.bitmap_1 = wx.StaticBitmap(self, -1, icons.getIcon140Bitmap()) self.steplabel = [] self.steplabel.append(wx.StaticText(self, -1, _("Tile Profile"))) self.steplabel.append(wx.StaticText(self, -1, _("Source Data Files"))) self.steplabel.append(wx.StaticText(self, -1, _("Spatial Reference"))) self.steplabel.append(wx.StaticText(self, -1, _("Tile Details"))) # Zoom levels, PNG/JPEG, Tile addressing, Postprocessing? self.steplabel.append(wx.StaticText(self, -1, _("Destination"))) # Directory / database self.steplabel.append(wx.StaticText(self, -1, _("Viewers"))) self.steplabel.append(wx.StaticText(self, -1, _("Viewer Details"))) self.steplabel.append(wx.StaticText(self, -1, _("Rendering"))) self.label_10 = wx.StaticText(self, -1, _("MapSlicer - Tile Generator for Map Mashups")) self.label_8 = wx.StaticText(self, -1, _("Version %s") % config.version ) self.label_9 = wx.StaticText(self, -1, _("https://wiki.osgeo.org/wiki/MapSlicer")) self.button_back = wx.Button(self, -1, _("Go &Back")) self.Bind(wx.EVT_BUTTON, self.OnBack, self.button_back) self.button_continue = wx.Button(self, -1, _("&Continue")) self.Bind(wx.EVT_BUTTON, self.OnContinue, self.button_continue) self.html = wizard.WizardHtmlWindow(self.panel_2, -1) self.html.SetBorders(0) self.html.SetMinSize((500, 385)) # Set the first step of the wizard self.SetStep(1) self.__set_properties() self.__do_layout()
def __init__(self, *args, **kwds): #spath = wx.StandardPaths.Get() #config.documentsdir = spath.GetDocumentsDir() config.documentsdir = os.path.expanduser('~') self.abortEvent = delayedresult.AbortEvent() self.jobID = 0 self.rendering = False self.resume = False kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.panel_1 = wx.Panel(self, -1) self.panel_2 = wx.Panel(self.panel_1, -1) # Menu Bar self.main_frame_menubar = wx.MenuBar() menu = wx.Menu() item = menu.Append(wx.NewId(), _("Insert &raster map files")) self.Bind(wx.EVT_MENU, self.OnOpen, item) #item = menu.Append(wx.ID_PREFERENCES, _("&Preferences")) #self.Bind(wx.EVT_MENU, self.OnPrefs, item) item = menu.Append(wx.ID_EXIT, _("&Exit")) self.Bind(wx.EVT_MENU, self.OnQuit, item) self.main_frame_menubar.Append(menu, _("&File")) menu = wx.Menu() item = menu.Append(wx.ID_HELP, _("Online &Help && FAQ")) self.Bind(wx.EVT_MENU, self.OnHelp, item) item = menu.Append(wx.NewId(), _("MapTiler user &group")) self.Bind(wx.EVT_MENU, self.OnGroupWeb, item) item = menu.Append(wx.NewId(), _("Project &website")) self.Bind(wx.EVT_MENU, self.OnProjectWeb, item) item = menu.Append(wx.ID_ABOUT, _("&About")) self.Bind(wx.EVT_MENU, self.OnAbout, item) self.main_frame_menubar.Append(menu, _("&Help")) self.Bind(EVT_GENERIC_GUI, self.updateRenderText) self.Bind(wxgdal.EVT_UPDATE_PROGRESS, self.updateProgress) self.SetMenuBar(self.main_frame_menubar) # Events self.Bind(wx.EVT_CLOSE, self.OnQuit) #self.Bind(wx.EVT_RADIOBUTTON, self.OnRadio) # Menu Bar end self.bitmap_1 = wx.StaticBitmap(self, -1, icons.getIcon140Bitmap()) # wx.Bitmap("../resources/icon140.png", wx.BITMAP_TYPE_ANY)) self.steplabel = [] self.steplabel.append(wx.StaticText(self, -1, _("Tile Profile"))) self.steplabel.append(wx.StaticText(self, -1, _("Source Data Files"))) self.steplabel.append(wx.StaticText(self, -1, _("Spatial Reference"))) self.steplabel.append(wx.StaticText(self, -1, _("Tile Details"))) # Zoom levels, PNG/JPEG, Tile adressing, Postprocessing? self.steplabel.append(wx.StaticText(self, -1, _("Destination"))) # Directory / database self.steplabel.append(wx.StaticText(self, -1, _("Viewers"))) self.steplabel.append(wx.StaticText(self, -1, _("Viewer Details"))) self.steplabel.append(wx.StaticText(self, -1, _("Rendering"))) self.label_10 = wx.StaticText(self, -1, _("MapTiler - Map Tile Generator for Mashups")) self.label_8 = wx.StaticText(self, -1, _("http://www.maptiler.org/")) self.label_9 = wx.StaticText(self, -1, _(u"(C) 2008 - Klokan Petr Přidal")) self.button_back = wx.Button(self, -1, _("Go &Back")) self.Bind(wx.EVT_BUTTON, self.OnBack, self.button_back) self.button_continue = wx.Button(self, -1, _("&Continue")) self.Bind(wx.EVT_BUTTON, self.OnContinue, self.button_continue) #self.html = widgets.SpatialReferencePanel(self.panel_2, -1) self.html = wizard.WizardHtmlWindow(self.panel_2, -1) self.html.SetBorders(0) self.html.SetMinSize((500, 385)) # Set the first step of the wizard.. self.SetStep(1) self.__set_properties() self.__do_layout()
def __init__(self, *args, **kwds): #spath = wx.StandardPaths.Get() #config.documentsdir = spath.GetDocumentsDir() config.documentsdir = os.path.expanduser('~') self.abortEvent = delayedresult.AbortEvent() self.jobID = 0 self.rendering = False self.resume = False kwds["style"] = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, *args, **kwds) self.panel_1 = wx.Panel(self, -1) self.panel_2 = wx.Panel(self.panel_1, -1) # Menu Bar self.main_frame_menubar = wx.MenuBar() menu = wx.Menu() item = menu.Append(wx.NewId(), _("Insert &raster map files")) self.Bind(wx.EVT_MENU, self.OnOpen, item) self.bug_report = menu.Append(wx.NewId(), _("Send a &bug report")) self.Bind(wx.EVT_MENU, self.OnBugReport, self.bug_report) #item = menu.Append(wx.ID_PREFERENCES, _("&Preferences")) #self.Bind(wx.EVT_MENU, self.OnPrefs, item) item = menu.Append(wx.ID_EXIT, _("&Exit")) self.Bind(wx.EVT_MENU, self.OnQuit, item) self.main_frame_menubar.Append(menu, _("&File")) menu = wx.Menu() item = menu.Append(wx.ID_HELP, _("Online &Help && FAQ")) self.Bind(wx.EVT_MENU, self.OnHelp, item) item = menu.Append(wx.NewId(), _("MapTiler User &Group")) self.Bind(wx.EVT_MENU, self.OnGroupWeb, item) item = menu.Append(wx.NewId(), _("Donation")) self.Bind(wx.EVT_MENU, self.OnDonate, item) item = menu.Append(wx.NewId(), _("Project &website")) self.Bind(wx.EVT_MENU, self.OnProjectWeb, item) item = menu.Append(wx.ID_ABOUT, _("&About")) self.Bind(wx.EVT_MENU, self.OnAbout, item) self.main_frame_menubar.Append(menu, _("&Help")) self.Bind(EVT_GENERIC_GUI, self.updateRenderText) self.Bind(wxgdal.EVT_UPDATE_PROGRESS, self.updateProgress) self.SetMenuBar(self.main_frame_menubar) # Events self.Bind(wx.EVT_CLOSE, self.OnQuit) #self.Bind(wx.EVT_RADIOBUTTON, self.OnRadio) # Menu Bar end self.bitmap_1 = wx.StaticBitmap(self, -1, icons.getIcon140Bitmap( )) # wx.Bitmap("../resources/icon140.png", wx.BITMAP_TYPE_ANY)) self.steplabel = [] self.steplabel.append(wx.StaticText(self, -1, _("Tile Profile"))) self.steplabel.append(wx.StaticText(self, -1, _("Source Data Files"))) self.steplabel.append(wx.StaticText(self, -1, _("Spatial Reference"))) self.steplabel.append( wx.StaticText(self, -1, _("Tile Details")) ) # Zoom levels, PNG/JPEG, Tile adressing, Postprocessing? self.steplabel.append(wx.StaticText( self, -1, _("Destination"))) # Directory / database self.steplabel.append(wx.StaticText(self, -1, _("Viewers"))) self.steplabel.append(wx.StaticText(self, -1, _("Viewer Details"))) self.steplabel.append(wx.StaticText(self, -1, _("Rendering"))) self.label_10 = wx.StaticText( self, -1, _("MapTiler - Tile Generator for Map Mashups")) self.label_8 = wx.StaticText(self, -1, _("http://www.maptiler.org/")) self.label_9 = wx.StaticText(self, -1, _(u"(C) 2009 - Klokan Petr Přidal")) self.button_back = wx.Button(self, -1, _("Go &Back")) self.Bind(wx.EVT_BUTTON, self.OnBack, self.button_back) self.button_continue = wx.Button(self, -1, _("&Continue")) self.Bind(wx.EVT_BUTTON, self.OnContinue, self.button_continue) #self.html = widgets.SpatialReferencePanel(self.panel_2, -1) self.html = wizard.WizardHtmlWindow(self.panel_2, -1) self.html.SetBorders(0) self.html.SetMinSize((500, 385)) # Set the first step of the wizard.. self.SetStep(1) self.__set_properties() self.__do_layout()