Commit Graph
63 Commits
Author SHA1 Message Date
Erick Pérez Castellanos edec70fe0d search: use new compare function 2015-02-17 08:06:18 -05:00
Erick Pérez Castellanos b502ccd363 misc: fix styling 2015-02-16 12:54:41 -05:00
Erick Pérez Castellanos aef9960d73 search-view: fix double free of ListBox's rows 2015-02-16 12:54:41 -05:00
Erick Pérez Castellanos b86f381705 search-view: changed sorting of results
This sorting promotes the results closer to the time when the search was done.
2015-02-16 12:54:41 -05:00
Erick Pérez Castellanos 8fadbaa760 misc: fix various memory leaks 2015-02-16 09:31:20 -05:00
Erick Pérez Castellanos b1df382ee3 app: use get_color_name_from_source() 2015-02-06 09:21:36 -05:00
Erick Pérez Castellanos ea21ffdd70 search-view: internal manager is not a property
The idea here it to include SearchView as a widget in GcalWindow
Builder UI file.
2015-01-09 15:01:01 -05:00
Georges Basile Stavracas Neto ee09608a58 search-view: remove non-working connection
All the source update stuff is done internally by ECalDataModel, and we don't need to do it again.
2015-01-09 12:40:16 -02:00
Erick Pérez Castellanos 372c6fba3d search-view: fix memory leak
Use internal icaltimetype from ECalComponentDateTime. Mark
GcalSearchView::event-activated signal parameter as constant.
2015-01-09 09:16:44 -05:00
Georges Basile Stavracas Neto bc17a9b38b search-view: right-align icons 2015-01-09 09:16:44 -05:00
Georges Basile Stavracas Neto 54aa3933fc search-view: show icons for event attributes
For now, only the alarm and lock icons are showed.
2015-01-09 09:16:44 -05:00
Georges Basile Stavracas Neto 3ed508b8c0 search-view: order by date, instead of name 2015-01-09 09:16:43 -05:00
Georges Basile Stavracas Neto 0002e7640f search-view: update the view when a valid search occurs 2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto 8933b1485a search-view: reset states when performs the search
Also, reset search when starting a new search from window.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto a458a7fb52 search-view: coding style fixes
This commit introduces no new code, as it only
change function ordering and some minor style
fixes.
2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto 37566a435e search-view: run the search when the sources changes 2015-01-09 09:16:42 -05:00
Georges Basile Stavracas Neto e88af3ab5f search-view: show properly a thin line before every result
This time, do not rely on CSS hacks.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto d628c4b9fc search-label: show a friendly label when search entry is empty 2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto ff54f7eb67 search-view: don't try to access NULL data
This should be better debugged, as it may be a thread syncronization problem.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto ddb93d8d72 search-view: subscribe on demand
To avoid filling up the list with all events, subscribe only when the first search happens.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto c9047c102f search-view: handle search independently
Instead of letting GcalWindow handle the searches,
make GcalSearchView handle it so the widget has
more control over the general appearance of the
popover.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto b5c80e1849 search-view: better width for labels
The labels are consuming too much space. This commit fix it.
2015-01-09 09:16:41 -05:00
Georges Basile Stavracas Neto fb7b738ff7 search-view: make it a GtkPopover descendant
This huge patch makes GcalSearchView a GtkPopover
descendant. Also, it poorly adapts GcalWindow to
make it work with it.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto 6c7500c5b0 search-view: remove GcalSearchView::date_mask fiels
Completely replaced by "%x" formatting string on GDateTime.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto a9de8dd3c1 search-view: remove GcalSearchView::time_mask field
It is unused and should be removed to avoid further headaches.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto d72729356d search-view: respect system time format 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto 8742b47dc6 search-view: comment almost every function possible 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto cd4fb40281 search-view: major code cleanup 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto 95b35964cd search-view: fixed double border at the end of the list
Also, fixes a small details that the results list is
always expanded.
2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto a0e5a8564e search-view: properly connect 'row-activated' signal 2015-01-09 09:16:40 -05:00
Georges Basile Stavracas Neto 3cb6c0af25 search-view: emit GcalSearchView::'event-activated' signal
Needed so that GcalWindow can go to the selected event's date.
2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 90ad7f2cde search-view: remove obsolete prototype 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 38311c27b5 search-view: ignore case when sorting events 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 0c08577504 search-view: show 'All day' for all day events 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto a0b0cf1e46 search-view: make it looks more like the proposed design
The current implementation uses 2 hash tables, one
mapping (uuid : event data) and the other one mapping
(row : event data).

Events are added and removed from both of these tables,
but only GcalSearchView::events is responsible for the
destruction proccess.
2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 0c233fe3b3 search-view: define detroy functions for hash table 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto fb23939aa7 search-view: add hash of events
Maps uuid -> event data
2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto f44179da43 search-view: remove obsolete comment, some style fixing 2015-01-09 09:16:39 -05:00
Georges Basile Stavracas Neto 26c27e880c search-view: change list row ordering
First step to reach the design proposed[1].

[1] https://dl.dropboxusercontent.com/u/5031519/calendar-search-result.png
2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto 900b55dce5 search-view: highlight date 2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto 1055709d40 search-view: don't cast to GcalView when emit signal
Also, remove the last traces of GcalView.
2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto 36e51ac981 search-view: remove GcalView interface, add GcalSearchView::'search-activated' signal 2015-01-09 09:16:37 -05:00
Georges Basile Stavracas Neto a12e3cb59d search-view: add a timeout for displaying the 'no results' page
When the user types, *all* entries are removed, then readded.

Because of it, the 'No results' page keeps flickering. This patch fixes this.
2015-01-09 08:38:16 -05:00
Georges Basile Stavracas Neto ab1374d8cd search-view: implemented no results page 2015-01-09 08:36:16 -05:00
Georges Basile Stavracas Neto f937489dcd search-view: keep a cached count of results 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto a3c12fe092 search-view: make it build the UI from search-view file 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 842be669cd search-view: add a border below search results 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 160e66cc83 search-view: align date & time box with event widget 2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 41d685d5e3 search-view: wrap date & time labels in a box
Makes the upper grid more flexible.
2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 0bdff182f8 search-view: wrap the list around a frame 2015-01-09 08:36:14 -05:00