billreminder r666 - in trunk: . src/gui src/gui/widgets
- From: ogmaciel svn gnome org
- To: svn-commits-list gnome org
- Subject: billreminder r666 - in trunk: . src/gui src/gui/widgets
- Date: Wed, 1 Oct 2008 21:33:37 +0000 (UTC)
Author: ogmaciel
Date: Wed Oct 1 21:33:37 2008
New Revision: 666
URL: http://svn.gnome.org/viewvc/billreminder?rev=666&view=rev
Log:
Removed the SearchEntry widget from the main dialog.
Modified:
trunk/ChangeLog
trunk/src/gui/maindialog.py
trunk/src/gui/widgets/Makefile.am
Modified: trunk/src/gui/maindialog.py
==============================================================================
--- trunk/src/gui/maindialog.py (original)
+++ trunk/src/gui/maindialog.py Wed Oct 1 21:33:37 2008
@@ -18,7 +18,6 @@
from gui.widgets.chartwidget import ChartWidget
from gui.widgets.calendarwidget import CalendarWidget
from gui.widgets.timeline import Timeline, Bullet
-from gui.widgets.SearchEntry import SearchEntry
# Import data model modules
from lib.bill import Bill
@@ -42,8 +41,6 @@
from lib.common import USER_CFG_PATH
from os.path import exists, join
-SEARCH_COLUMNS = (2, 3, 4, 5, 6)
-
class MainDialog:
menu_ui = '''
@@ -103,8 +100,6 @@
self.list.connect('cursor_changed', self._on_list_cursor_changed)
self.list.connect('row_activated', self._on_list_row_activated)
self.list.connect('button_press_event', self._on_list_button_press_event)
- self.list.filtered_model.set_visible_func(
- self.on_filtered_model_visible_cb)
# Toolbar
self.toolbar = Toolbar()
@@ -141,23 +136,6 @@
## Pack it all up
self.timelinebox.pack_start(self.timeline, expand=True, fill=True)
- ## Search Entry
-
- self.filter_hbox = gtk.HBox(homogeneous=False, spacing=4)
- self.filter_hbox.pack_start(gtk.Label(), expand=True, fill=True)
- self.filter_hbox.pack_start(gtk.Label(), expand=True, fill=True)
- search_label = gtk.Label()
- search_label.set_markup_with_mnemonic (_("<b>F_ilter:</b>"))
-
- self.filter_hbox.pack_start(search_label, expand=False, fill=True)
-
- self.search_entry = SearchEntry(gtk.icon_theme_get_default())
- self.search_entry.connect("terms-changed", self.on_terms_changed)
-
- self.filter_hbox.pack_start(self.search_entry, expand=False, fill=True)
-
- search_label.set_mnemonic_widget(self.search_entry)
-
#self.calbox.pack_start(self.filter_hbox, expand=True)
#self.calendar.mark_day(datetime.datetime.today().day)
@@ -174,8 +152,6 @@
expand=False, fill=True, padding=0)
self.box.pack_start(self.listbox,
expand=True, fill=True, padding=4)
- self.box.pack_start(self.filter_hbox,
- expand=False, fill=True, padding=2)
self.box.pack_start(self.chart,
expand=True, fill=True, padding=2)
self.box.pack_start(self.statusbar,
@@ -637,24 +613,6 @@
self.toolbar.hide_all()
self.gconf_client.set_bool(GCONF_GUI_PATH + "show_toolbar", False)
- def on_terms_changed(self, widget, text):
- self.search_text = text
- self.list.filtered_model.refilter()
- #self.filtred_model.refilter()
-
- def on_filtered_model_visible_cb(self, model, iter):
- if self.search_text == "":
- return True
-
- t = False
- for col in SEARCH_COLUMNS:
- x = model.get_value(iter, col)
- if x and self.search_text in x:
- t = True
- break
-
- return t
-
def reloadTimeline(self, *args):
print 'reloadtimeline'
self._bullet_cache = {}
@@ -666,14 +624,14 @@
if not date in self._bullet_cache.keys():
time = scheduler.timestamp_from_datetime(date)
self._bullet_cache[date] = self.actions.get_bills('dueDate = %s' % time)
-
+
if self._bullet_cache[date]:
amount = 0
paid = 1
tooltip = ''
bullet = Bullet()
bullet.date = date
-
+
for bill in self._bullet_cache[date]:
paid *= bill['paid']
amount += bill['amountDue']
@@ -682,7 +640,7 @@
tooltip += bill['payee'] + '\n' + str(bill['amountDue'])
if bill['notes']:
tooltip += '\n' + bill['notes']
-
+
bullet.amountDue = amount
if paid:
bullet.status = bullet.PAID
@@ -695,7 +653,7 @@
bullet.multi = True
bullet.tooltip = tooltip
return bullet
-
+
return None
def main():
Modified: trunk/src/gui/widgets/Makefile.am
==============================================================================
--- trunk/src/gui/widgets/Makefile.am (original)
+++ trunk/src/gui/widgets/Makefile.am Wed Oct 1 21:33:37 2008
@@ -14,7 +14,4 @@
toolbar.py \
trayicon.py \
viewbill.py \
- viewcategory.py \
- SearchEntry.py
-
-
+ viewcategory.py
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]