Commit Graph
172 Commits
Author SHA1 Message Date
Erick Pérez Castellanos f988eac12f view iface: remove more unused methods
GcalView::draw_event overlapped a bit with GcalView::will_add_event, so
the same reasons for removing one stand for the other.
GcalView::clear was a hack for the composited GcalDayView which has
gone, and was a bad experiment.
2014-12-04 17:10:47 -05:00
Erick Pérez Castellanos 18b4ef8186 month-view: remove FIXME
Subscription is already being made. Remove reminder.
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos 6f2b01018f view iface: remove unused will_add_event
ECalDataModelSubscriber interface notify each view only about the events
beloging to the subscribed range so there's no need of checking if the
event widget will be added.
The safety check of not adding the same widget twice its stil being made
on each GtkContainer::add implementation.
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos aca1b66743 month-view: makes a descendant of GcalSubscriber
By making GcalMonthView a descendat of GcalSubscriber it gets
implementation for each of the methods on ECalDataModel subscriber and
utomatically gains the functionality of adding and removing events widgets
2014-12-04 17:10:46 -05:00
Erick Pérez Castellanos 9b281eff69 month-view: implement ECalDataModel::components_modified vfunc 2014-12-04 17:10:45 -05:00
Erick Pérez Castellanos cf96da6308 memory: fix memory leaks scattered around 2014-12-04 17:10:44 -05:00
Erick Pérez Castellanos d37347418b month-view: implement ECalDataModel::components_removed vfunc
Previous fixes on GcalEventWidget allow to use the recurid in order to
differentiate instances of the same event.
2014-12-04 17:10:43 -05:00
Erick Pérez Castellanos a9b302b205 month-view: fix double free of the passed component 2014-12-04 17:10:43 -05:00
Erick Pérez Castellanos ab2050b695 month-view: change widget comparison for inclusion
Using new function ensure checking recurid besides everything else
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos 2bb8b6f4c4 month-view: add ECalDataModelSubscriber iface impl
Initial work implementing ECalDataModelSubscriber interface. As
explained before, on each set of GcalView:active-date property the range
the view its subscribing gets updated. Allowing this to obtain
notification through ECalDataModelSubscriber::components_added and
ECalDataModelSubscriber::components_removed vfuncs.
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos 3a151894be views: implemented :manager property
As explained before, this is only intended to keep a reference to the
GcalManager instance of the application.
Misc: fixed some documentation and whitespace issues
2014-12-04 17:10:42 -05:00
Erick Pérez Castellanos d8cc980a1d month-view: implement GcalView::wil_add_event vfunc 2014-12-04 17:10:39 -05:00
Erick Pérez Castellanos 76582329ef view: add :will_add_event vfunc and stub methods
Note: this commit probably won't build, but this is the right order of
keeping history.
2014-12-04 17:10:38 -05:00
Georges Basile Stavracas Neto 4287cc72ef month-view: fixed wrong day selection 2014-12-04 17:10:38 -05:00
Erick Pérez Castellanos 48f5b36c29 views: ensure initial/final dates have timezones 2014-12-04 17:10:36 -05:00
Erick Pérez Castellanos ff11049f30 build: remove calls to deprecated methods 2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos 1ad998b54b month-view: fixed drawing of the grid
Updated colors and line widths
2014-12-04 17:10:35 -05:00
Erick Pérez Castellanos 0527350db7 gcal-month-view: added security check
Prevented button release handling when not needed
2014-12-04 17:10:31 -05:00
Erick Pérez Castellanos 65bc0d1269 gcal-month-view: fixed days number drawing
Updated GcalMonthViewPrivate:days_delay on every day update
2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos 41f490aa8d gcal-month-view: fixed drawing issue
Fixed drawing issue with :mark_current_unit method
2014-12-04 17:10:30 -05:00
Erick Pérez Castellanos a24eca0386 gcal-view: modified mark_current_unit API
Added x,y return values, positions of the current unit
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos 8cbac83723 gcal-month-view: migrated to new GcalView API
Migrated to new event creation flow, compliant with one click create event.
Moved to new private instance data API.
2014-12-04 17:10:29 -05:00
Erick Pérez Castellanos f3df3e784d misc: cleaning unused code. 2014-12-04 17:10:28 -05:00
Erick Pérez Castellanos 37dc43c518 gcal-view: implementing GcalView:clear vfunc 2014-12-04 17:10:27 -05:00
Erick Pérez Castellanos c365e9124a gcal-view: cleaned API
Removed unneeded GcalView:reposition_child method.
Reworked gcal_window_events_modified to use GcalView:get_by_uuid
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos 9f530a5b8a gcal-view: modified API
Implemented in views.
Reworked GcalDayView implementation to allow bigger
than days events.
2014-12-04 17:10:26 -05:00
Erick Pérez Castellanos 4330859ae0 gcal-view: removed unused methods 2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos a5157748bc gcal-view: cleaned GcalView API
Removed GcalView:remove_by_uuid method.
Reordered gcal-view header file.
2014-12-04 17:10:25 -05:00
Erick Pérez Castellanos 1c27bb35ff gcal-month-view: added #GcalView implementations
Added #GcalView:get_left_header and #GcalView:get_right_header
Reorded #GcalView vfuncs implementatiob in the source file
2014-12-04 17:10:24 -05:00
Erick Pérez Castellanos 800ecf938c gcal-view: add some API implementation
Added GcalView:get_left_header and GcalView:get_right_header
implementations to GcalMonthView and GcalYearView
2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos c22792e65e gcal-view: reworked a little more the API
Added API to get the headers for update GcalNavBar
Updated GcalMonthView, GcalWeekView and GcalYearView implementations
Updated calls in GcalWindow
2014-12-04 17:10:23 -05:00
Erick Pérez Castellanos 03af4df286 gcal-view: GcalViewChild struct field renamed 2014-12-04 17:10:22 -05:00
Erick Pérez Castellanos 3c1a1b89c1 gcal-month-view: removed unnecessary function split
Reordered some functions.
2014-12-04 17:10:22 -05:00
Erick Pérez Castellanos b9d111fd42 ui: updated GcalMonthView to new UI
Missing make it compliant with the new GcalView API
2014-12-04 17:10:21 -05:00
Erick Pérez Castellanos 01145b8916 Migrated to Gtk+-3.8 2013-05-17 14:41:12 -04:00
Erick Pérez Castellanos 26cc28fcdb Implemented create_event_on_current_unit in GcalMonthView.
Clicking on "New Event" works now for month-view.
2012-12-06 11:38:05 -05:00
Erick Pérez Castellanos 8f2786a5cb Reworked drawing of GcalMonthView.
Internals changed. The drawing now requires more calculus, yet, there's a
lot of places where optimizations can be made. Let's wait for performance
issues. I'm still not entirely happy but the work is taking shape.

The drawing code is broken into pieces, so it can be read (not executed
optimally).
2012-12-05 16:55:31 -05:00
Erick Pérez Castellanos 1d04d68c52 Debug instrucions and comments removed. 2012-12-01 15:29:02 -05:00
Erick Pérez Castellanos a3e7f9a360 Implemented GcalView::reposition_child in GcalYearView.
Fixed the same method in GcalMonthView.
2012-12-01 15:28:59 -05:00
Erick Pérez Castellanos f24e1a1dfa Updated docs and fixed formatting issues. 2012-12-01 15:28:58 -05:00
Erick Pérez Castellanos ef08a2a45f Optimized size_allocate method in views.
Removed some debug instructions.
2012-12-01 15:28:58 -05:00
Erick Pérez Castellanos ddae6624a3 Keeping event widget sorted inside views.
Still missing to fix GcalWeekView, but that one needs reworking.
2012-12-01 15:28:56 -05:00
Erick Pérez Castellanos ee66a85e4d Moved GcalViewChild to GcalView.
This struct contains the child data the views needs to know
about it's (event-widget) children.
2012-12-01 15:28:56 -05:00
Erick Pérez Castellanos 1b0312f653 Minor fixes and comments review. 2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos cc14e10d36 Get month names and weekdays from locale.
Added modification to extract month names from locale instead
of localization files.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 6e8ffcf5cf Added reposition_child to GcalView interface.
Provided implementation for GcalMonthView.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos c3acffa9d7 Changed mode declaration for emacs. 2012-09-20 09:00:46 -04:00
Erick Pérez Castellanos 009e65cdd3 Fixed bug when destroying child widgets. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos a9da2aa552 Made simple-add event work.
Fixed GcalEventOverlay handling of dates.
Added initial code and methods to handle adding events to GcalManager.
Fixed in GcalMonthView handling of dates passed to event-creation.
Fixed gcal-utils sources for gcc warning.
Fixed calling order in GcalWindow.
2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos 5b23fea95f Added create-event overlay.
Added new-event mark to month-view.
Added navigation arrows to month-view.
Initially moved edit-event to a dialog.
2012-08-20 23:45:58 -04:00