Commit Graph
923 Commits
Author SHA1 Message Date
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 e34a587f16 window: properly hear GcalSearchView::'event-activated' signal
Data passed by search view's signal is different
from the other views, so special case this into
a new function.
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 38213ae5d2 window: reset query when entering search mode
An empty query should show all events.
2015-01-09 09:16:38 -05:00
Georges Basile Stavracas Neto 397e1da5de window: make 'Calendar' the default title
Shows it for empty search results.
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 c4724fc875 window: hear GcalSearchView::'event-activated' signal again 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 baad1c352b Revert "window: hear GcalSearchView signals"
This reverts commit 3c5d833f0bc33213757479289cc0daabfa4667c5.
2015-01-09 09:16:37 -05:00
Erick Pérez Castellanos c68a499ad7 Revert "window: readd binding between search button and search mode"
This reverts commit f83c5865a3.

Conflicts:
	src/gcal-window.c
2015-01-09 09:16:37 -05:00
Erick Pérez Castellanos bdaf2dbc25 subscriber: files renaming before class renaming 2015-01-09 09:02:02 -05:00
Erick Pérez Castellanos e57d9ca55e year-view: initial GtkWidget::size_allocate impl
This impl uses internals structures from GcalSubscriber
2015-01-09 08:51:18 -05:00
Erick Pérez Castellanos 5f29241c64 year-view: add initial ::draw impl
So far support RTL drawing.
Missing:
+ Overflow indicators (this could be buttons)
+ selection borders drawing
2015-01-09 08:46:32 -05:00
Erick Pérez Castellanos 61e1101952 year-view: add orientation factor
This would be helpful in order to provide proper RTL drawing to the view
2015-01-09 08:44:37 -05:00
Erick Pérez Castellanos caf4031efe subscriber: rework ::remove and ::modified vfuncs
Since we have now access to the hash keeping the children of thw widget
there's no more need of calling GcalView::get_by_uuid
2015-01-09 08:43:21 -05:00
Erick Pérez Castellanos c1e68032c9 subscriber: added protected internal structure
The idea here is to make GcalSubscriber handle the container
responsibilities of the view, and the view will handle only the drawing
an allocating, this would allow us to remove GcalView interface and
merge its methods in GcalSubscriber.
2015-01-09 08:43:21 -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 bcbdb82baa window: show/hide buttons according to search mode 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 9d90cc8c84 search-view: fixed minor visual issues 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 3936f46253 search-view: add CSS class to UI file 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto 4f40ac67af search-view: make it dependant of Gtk+ 3.10 2015-01-09 08:36:15 -05:00
Georges Basile Stavracas Neto d5df158805 search-view: add GtkBuilder UI files 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 69a1af76d9 search-view: correct background color 2015-01-09 08:36:14 -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
Georges Basile Stavracas Neto 5fc4c25002 search-view: remove end date from grid 2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 4195e294ab search-view: show date & time data from events
Needs lotf of work
2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 35db162529 search-view: cache locale data
Time mask will need format_24h info
2015-01-09 08:36:14 -05:00
Georges Basile Stavracas Neto 5a32c3794c search-view: sort events by date & name
Date has highest priority than name when sorting.

Past events goes last, future events goes first.
2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto c8b143e399 search-view: properly remove widgets by their data 2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto 13ee94248d search-view: emit GcalView::'event-activated' signal when needed 2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto 586de0f2e2 window: hear GcalSearchView signals
Previous commit made GcalSearchView a GcalView implementation.
2015-01-09 08:36:13 -05:00
Georges Basile Stavracas Neto 2f0413e1bc search-view: stub implementation of GcalView interface 2015-01-09 08:36:13 -05:00
Piotr Drąg a4d7d317f2 Updated POTFILES.in 2015-01-09 14:13:40 +01:00