1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 19:40:21 +01:00

* Added confirmation dialog for deleting elements.

This commit is contained in:
2007-09-15 06:50:28 +00:00
parent e33c809825
commit 851321327a
3 changed files with 895 additions and 524 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -25,6 +25,7 @@ class ConfigController(Controller):
self.view['ch_xls'].set_active(self.model.confd['exportxls']) self.view['ch_xls'].set_active(self.model.confd['exportxls'])
self.view['ch_quit'].set_active(self.model.confd['confirmquit']) self.view['ch_quit'].set_active(self.model.confd['confirmquit'])
self.view['ch_wrnmount'].set_active(self.model.confd['mntwarn']) self.view['ch_wrnmount'].set_active(self.model.confd['mntwarn'])
self.view['ch_wrndel'].set_active(self.model.confd['delwarn'])
self.view['ch_warnnew'].set_active(self.model.confd['confirmabandon']) self.view['ch_warnnew'].set_active(self.model.confd['confirmabandon'])
self.view['ch_thumb'].set_active(self.model.confd['pil']) self.view['ch_thumb'].set_active(self.model.confd['pil'])
self.view['ch_exif'].set_active(self.model.confd['exif']) self.view['ch_exif'].set_active(self.model.confd['exif'])
@@ -66,6 +67,7 @@ class ConfigController(Controller):
self.model.confd['exportxls'] = self.view['ch_xls'].get_active() self.model.confd['exportxls'] = self.view['ch_xls'].get_active()
self.model.confd['confirmquit'] = self.view['ch_quit'].get_active() self.model.confd['confirmquit'] = self.view['ch_quit'].get_active()
self.model.confd['mntwarn'] = self.view['ch_wrnmount'].get_active() self.model.confd['mntwarn'] = self.view['ch_wrnmount'].get_active()
self.model.confd['delwarn'] = self.view['ch_wrndel'].get_active()
self.model.confd['confirmabandon'] = self.view['ch_warnnew'].get_active() self.model.confd['confirmabandon'] = self.view['ch_warnnew'].get_active()
self.model.confd['pil'] = self.view['ch_thumb'].get_active() self.model.confd['pil'] = self.view['ch_thumb'].get_active()
self.model.confd['exif'] = self.view['ch_exif'].get_active() self.model.confd['exif'] = self.view['ch_exif'].get_active()

View File

@@ -54,6 +54,7 @@ class ConfigModel(Model):
'confirmabandon':True, 'confirmabandon':True,
'showtoolbar':True, 'showtoolbar':True,
'showstatusbar':True, 'showstatusbar':True,
'delwarn':True,
} }
dictconf = { dictconf = {
@@ -70,6 +71,7 @@ class ConfigModel(Model):
"image support":"pil", "image support":"pil",
'confirm quit':'confirmquit', 'confirm quit':'confirmquit',
'warn mount/umount errors':'mntwarn', 'warn mount/umount errors':'mntwarn',
'warn on delete':'delwarn',
'confirm abandon current catalog':'confirmabandon', 'confirm abandon current catalog':'confirmabandon',
'show toolbar':'showtoolbar', 'show toolbar':'showtoolbar',
'show statusbar and progress bar':'showstatusbar', 'show statusbar and progress bar':'showstatusbar',
@@ -85,6 +87,7 @@ class ConfigModel(Model):
'exif', 'exif',
'confirmquit', 'confirmquit',
'mntwarn', 'mntwarn',
'delwarn',
'confirmabandon', 'confirmabandon',
'showtoolbar', 'showtoolbar',
'showstatusbar', 'showstatusbar',