12 |
|
|
13 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
14 |
|
|
15 |
|
__ThubanVersion__ = "0.2" #"$THUBAN_0_2$" |
16 |
|
#__BuildDate__ = "$Date$" |
17 |
|
|
18 |
import os |
import os |
19 |
|
|
20 |
from wxPython.wx import * |
from wxPython.wx import * |
302 |
def prepare_new_session(self): |
def prepare_new_session(self): |
303 |
for d in self.dialogs.values(): |
for d in self.dialogs.values(): |
304 |
if not isinstance(d, tree.SessionTreeView): |
if not isinstance(d, tree.SessionTreeView): |
305 |
d.Shutdown() |
d.Close() |
306 |
|
|
307 |
def NewSession(self): |
def NewSession(self): |
308 |
self.save_modified_session() |
self.save_modified_session() |
358 |
if dialog is None: |
if dialog is None: |
359 |
dialog = tree.SessionTreeView(self, self.application, name) |
dialog = tree.SessionTreeView(self, self.application, name) |
360 |
self.add_dialog(name, dialog) |
self.add_dialog(name, dialog) |
361 |
dialog.Show(true) |
dialog.Show(True) |
362 |
else: |
else: |
363 |
# FIXME: bring dialog to front here |
# FIXME: bring dialog to front here |
364 |
pass |
pass |
365 |
|
|
366 |
|
|
367 |
def About(self): |
def About(self): |
368 |
self.RunMessageBox(_("About"), |
self.RunMessageBox(_("About"), |
369 |
_("Thuban is a program for\n" |
_("Thuban v%s\n" |
370 |
|
#"Build Date: %s\n" |
371 |
|
"\n" |
372 |
|
"Thuban is a program for\n" |
373 |
"exploring geographic data.\n" |
"exploring geographic data.\n" |
374 |
"Copyright (C) 2001-2003 Intevation GmbH.\n" |
"Copyright (C) 2001-2003 Intevation GmbH.\n" |
375 |
"Thuban is licensed under the GPL"), |
"Thuban is licensed under the GNU GPL" |
376 |
|
% __ThubanVersion__), #__BuildDate__)), |
377 |
wxOK | wxICON_INFORMATION) |
wxOK | wxICON_INFORMATION) |
378 |
|
|
379 |
def AddLayer(self): |
def AddLayer(self): |