Start convertion to introspection. Flat models work, as does relationship view

svn: r19858
This commit is contained in:
Benny Malengier
2012-06-17 21:25:37 +00:00
parent 0c447be83d
commit faed8a9f5f
256 changed files with 4420 additions and 4143 deletions

View File

@@ -188,23 +188,23 @@ class CSVWriterOptionBox(WriterOptionBox):
self.translate_headers_check = None
def get_option_box(self):
import gtk
from gi.repository import Gtk
option_box = WriterOptionBox.get_option_box(self)
self.include_individuals_check = gtk.CheckButton(_("Include people"))
self.include_marriages_check = gtk.CheckButton(_("Include marriages"))
self.include_children_check = gtk.CheckButton(_("Include children"))
self.translate_headers_check = gtk.CheckButton(_("Translate headers"))
self.include_individuals_check = Gtk.CheckButton(_("Include people"))
self.include_marriages_check = Gtk.CheckButton(_("Include marriages"))
self.include_children_check = Gtk.CheckButton(_("Include children"))
self.translate_headers_check = Gtk.CheckButton(_("Translate headers"))
self.include_individuals_check.set_active(1)
self.include_marriages_check.set_active(1)
self.include_children_check.set_active(1)
self.translate_headers_check.set_active(1)
option_box.pack_start(self.include_individuals_check, False)
option_box.pack_start(self.include_marriages_check, False)
option_box.pack_start(self.include_children_check, False)
option_box.pack_start(self.translate_headers_check, False)
option_box.pack_start(self.include_individuals_check, False, True, 0)
option_box.pack_start(self.include_marriages_check, False, True, 0)
option_box.pack_start(self.include_children_check, False, True, 0)
option_box.pack_start(self.translate_headers_check, False, True, 0)
return option_box

View File

@@ -52,7 +52,7 @@ log = logging.getLogger(".WritePkg")
# GNOME/GTK modules
#
#-------------------------------------------------------------------------
import gtk
from gi.repository import Gtk
#-------------------------------------------------------------------------
#
@@ -161,14 +161,14 @@ class PackageWriter(object):
# if os.path.isfile(name):
# archive.add(name)
# fs_top = gtk.FileChooserDialog("%s - GRAMPS" % _("Select file"),
# buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
# gtk.STOCK_OK, gtk.RESPONSE_OK)
# fs_top = Gtk.FileChooserDialog("%s - GRAMPS" % _("Select file"),
# buttons=(Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL,
# Gtk.STOCK_OK, Gtk.ResponseType.OK)
# )
# response = fs_top.run()
# if response == gtk.RESPONSE_OK:
# if response == Gtk.ResponseType.OK:
# fs_ok_clicked(fs_top)
# elif response == gtk.RESPONSE_CANCEL:
# elif response == Gtk.ResponseType.CANCEL:
# fs_close_window(fs_top)
# fs_top.destroy()