* src/Editors/_EditAddress.py:

* src/Editors/_EditLdsOrd.py:
	* src/Editors/_EditSourceRef.py:
	* src/Editors/_EditEventRef.py:
	* src/Editors/_EditMedia.py:
	* src/Editors/_EditName.py:
	* src/Editors/_EditEvent.py:
	* src/glade/gramps.glade:
	move date_entry(ValidatableMaskedEntry) out into glade.

2007-03-24  Zsolt Foldvari  <zfoldvar@users.sourceforge.net>


svn: r8312
This commit is contained in:
Zsolt Foldvari 2007-03-24 00:30:14 +00:00
parent 901f282088
commit be30e422b9
9 changed files with 145 additions and 50 deletions

View File

@ -1,3 +1,14 @@
2007-03-24 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/Editors/_EditAddress.py:
* src/Editors/_EditLdsOrd.py:
* src/Editors/_EditSourceRef.py:
* src/Editors/_EditEventRef.py:
* src/Editors/_EditMedia.py:
* src/Editors/_EditName.py:
* src/Editors/_EditEvent.py:
* src/glade/gramps.glade:
move date_entry(ValidatableMaskedEntry) out into glade.
2007-03-24 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
* src/MarkupText.py (MarkupBuffer.set_text): better unicode encoding.
* src/Editors/_EditPlace.py: source code encoding comment removed;

View File

@ -80,13 +80,8 @@ class EditAddress(EditSecondary):
_('Address Editor'))
def _setup_fields(self):
table = self.top.get_widget('table26')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 1, 6, 0, 1, yoptions=gtk.EXPAND)
self.addr_start = MonitoredDate(
date_entry,
self.top.get_widget("date_entry"),
self.top.get_widget("date_stat"),
self.obj.get_date_object(),
self.uistate,

View File

@ -145,19 +145,13 @@ class EditEvent(EditPrimary):
self.obj.get_type,
custom_values=self.get_custom_events())
table = self.top.get_widget('table21')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 3, 4, 0, 1, yoptions=gtk.EXPAND)
self.date_field = MonitoredDate(
date_entry,
self.top.get_widget("date_entry"),
self.top.get_widget("date_stat"),
self.obj.get_date_object(),
self.uistate,
self.track,
self.db.readonly)
date_entry.grab_focus()
def _create_tabbed_pages(self):
"""

View File

@ -139,20 +139,14 @@ class EditEventRef(EditReference):
self.db.readonly,
custom_values=self.get_custom_events())
table = self.top.get_widget('table62')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 1, 2, 1, 2, yoptions=gtk.EXPAND)
self.date_check = MonitoredDate(
date_entry,
self.top.get_widget("eer_date_entry"),
self.top.get_widget("eer_date_stat"),
self.source.get_date_object(),
self.uistate,
self.track,
self.db.readonly)
def _create_tabbed_pages(self):
"""
Creates the notebook tabs and inserts them into the main

View File

@ -175,13 +175,8 @@ class EditLdsOrd(EditSecondary):
self.top.get_widget("private"),
self.obj, self.db.readonly)
table = self.top.get_widget('table')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 1, 2, 3, 4, yoptions=gtk.EXPAND)
self.date_field = MonitoredDate(
date_entry,
self.top.get_widget("date_entry"),
self.top.get_widget("date_stat"),
self.obj.get_date_object(),
self.uistate,
@ -365,13 +360,8 @@ class EditFamilyLdsOrd(EditSecondary):
self.top.get_widget("private"),
self.obj, self.db.readonly)
table = self.top.get_widget('table')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 1, 2, 3, 4, yoptions=gtk.EXPAND)
self.date_field = MonitoredDate(
date_entry,
self.top.get_widget("date_entry"),
self.top.get_widget("date_stat"),
self.obj.get_date_object(),
self.uistate,

View File

@ -97,13 +97,8 @@ class EditMedia(EditPrimary):
self.define_help_button(self.glade.get_widget('button102'),'adv-media')
def _setup_fields(self):
table = self.glade.get_widget('table8')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 2, 3, 2, 3, yoptions=gtk.EXPAND)
self.date_field = MonitoredDate(
date_entry,
self.glade.get_widget("date_entry"),
self.glade.get_widget("date_edit"),
self.obj.get_date_object(),
self.uistate,

View File

@ -160,13 +160,8 @@ class EditName(EditSecondary):
self.obj.get_surname_prefix,
self.db.readonly)
table = self.top.get_widget('table23')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 2, 3, 4, 5, yoptions=gtk.EXPAND)
self.date = MonitoredDate(
date_entry,
self.top.get_widget("date_entry"),
self.top.get_widget("date_stat"),
self.obj.get_date_object(),
self.uistate,

View File

@ -119,13 +119,8 @@ class EditSourceRef(EditReference):
(_('Very High'), RelLib.SourceRef.CONF_VERY_HIGH)],
self.db.readonly)
table = self.top.get_widget('table67')
date_entry = ValidatableMaskedEntry(str)
date_entry.show()
table.attach(date_entry, 1, 2, 0, 1, yoptions=gtk.EXPAND)
self.date = MonitoredDate(
date_entry,
self.top.get_widget("date_entry"),
self.top.get_widget("date_stat"),
self.source_ref.get_date_object(),
self.uistate,

View File

@ -5817,6 +5817,24 @@
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="Custom" id="date_entry">
<property name="height_request">27</property>
<property name="visible">True</property>
<property name="creation_function">ValidatableMaskedEntry</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Sat, 24 Mar 2007 00:20:48 GMT</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">2</property>
<property name="bottom_attach">3</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -7125,6 +7143,24 @@
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="Custom" id="date_entry">
<property name="height_request">27</property>
<property name="visible">True</property>
<property name="creation_function">ValidatableMaskedEntry</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Sat, 24 Mar 2007 00:10:06 GMT</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -9017,6 +9053,24 @@
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="Custom" id="date_entry">
<property name="height_request">27</property>
<property name="visible">True</property>
<property name="creation_function">ValidatableMaskedEntry</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Sat, 24 Mar 2007 00:23:06 GMT</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">3</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
@ -10876,6 +10930,24 @@
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="Custom" id="eer_date_entry">
<property name="height_request">27</property>
<property name="visible">True</property>
<property name="creation_function">ValidatableMaskedEntry</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Fri, 23 Mar 2007 23:47:44 GMT</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
@ -11285,6 +11357,24 @@ Very High</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="Custom" id="date_entry">
<property name="height_request">27</property>
<property name="visible">True</property>
<property name="creation_function">ValidatableMaskedEntry</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Sat, 24 Mar 2007 00:24:58 GMT</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="tab_expand">False</property>
@ -12928,6 +13018,24 @@ Very High</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="Custom" id="date_entry">
<property name="height_request">27</property>
<property name="visible">True</property>
<property name="creation_function">ValidatableMaskedEntry</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Sat, 24 Mar 2007 00:15:59 GMT</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>
@ -13429,6 +13537,24 @@ Very High</property>
<property name="y_options">fill</property>
</packing>
</child>
<child>
<widget class="Custom" id="date_entry">
<property name="height_request">27</property>
<property name="visible">True</property>
<property name="creation_function">ValidatableMaskedEntry</property>
<property name="int1">0</property>
<property name="int2">0</property>
<property name="last_modification_time">Sat, 24 Mar 2007 00:07:03 GMT</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">6</property>
<property name="top_attach">0</property>
<property name="bottom_attach">1</property>
<property name="y_options"></property>
</packing>
</child>
</widget>
<packing>
<property name="padding">0</property>