Commit Graph
38 Commits
Author SHA1 Message Date
Erick Pérez Castellanos 2ff6bb460e gcal-view: remove unused funcs 2015-01-20 15:03:12 -05:00
Erick Pérez Castellanos 03b108ff71 GcalView: add get_children by uuid method
After adding it and removing it, and adding it again. I think this time
is for good. We're keeping GcalView interface as parent of every view
shown in the application.
2015-01-20 13:12:01 -05:00
Erick Pérez Castellanos 0b2367200b copyright: update year 2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos d15c4a5c1b view iface: remove manager property
There's no reason at all why manager should be a property inside the
views. It won't benefit of bindings or anything else inherent to GObject
property system.
2015-01-20 13:11:58 -05:00
Erick Pérez Castellanos fdf12bc6fd subscriber-view: adopt ::event-activated signal 2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos 9994377c9f subscriber-view: gained ::get_child_by_uuid vfunc
Started migrating methods from GcalView to GcalSubscriber
2015-01-05 10:33:26 -05:00
Erick Pérez Castellanos e6a929f3fd view: remove ::mark_current_unit
New event action will open edit-dialog directly so this method is not needed
2014-12-25 20:24:36 -05:00
Benjamin Otte 2aeae4cd82 view: Fix compiler warnings 2014-12-22 15:07:44 +01:00
Erick Pérez Castellanos 09f42ad955 gcal-view: signal the opening of edit-dialog directly 2014-12-22 08:38:18 -05:00
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 5422066bb0 view iface: another round at cleaning
Remove unused methods laying there for a long time now.
2014-12-04 17:10:47 -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 8ba7f431fd view: gained a :manager property
Forcing every GcalView implementing class to keep a reference (actually
it is a simple pointer) to GcalManager instance coming from the application.
2014-12-04 17:10:41 -05:00
Erick Pérez Castellanos e1737a0930 view: added :event-activated signal
Since the events widget are handled entirely inside GcalView
implementations (aka the views), we need a way to hook event-widget
activation with GcalWindow which is handling the dialogs (as expected).
This signal serve as a bridge between those two objects.
2014-12-04 17:10:41 -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
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 bd8f2379c7 gcal-view: rename GcalView:clear_mark vfunc 2014-12-04 17:10:28 -05:00
Erick Pérez Castellanos fcef0d64d1 gcal-view: added :clear vfunc
Added to prevent the need of a troubling implementation
of GtkContainer:forall method in DayView and WeekView composited widgets
2014-12-04 17:10:27 -05:00
Erick Pérez Castellanos 3c038ac3c3 gcal-view: more cleaning of GcalView API
Removed GcalView:updated signal
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 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 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 be1358313d gcal-view: added safety check to every vfunc call 2014-12-04 17:10:21 -05:00
Erick Pérez Castellanos 3dd88ba829 gcal-view: started API migration 2014-12-04 17:10:21 -05:00
Bastien Nocera 604e4ce438 Prevent crash clicking on the "New Event" button 2012-12-06 09:19:42 +01:00
Erick Pérez Castellanos c72b37433c Added GcalView::create_event_on_current_unit.
this method is to be called whenever someone click on
the "New Event" button of the toolbar. It will instruct the active
view to generate a GcalView::create-event signal with the parametes
of the current unit (a month for GcalYearView, a day for GcalMonthView, etc)
It will allow the view to mark the current unit cell for the event creation.
2012-12-01 15:29:02 -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
Cosimo Cecchi 3b1c9f04b1 all: don't use custom marshallers
Just use NULL, which gives us the generic GObject marshaller.
2012-09-04 15:43:11 -04:00
Erick Pérez Castellanos 0820d49e4e Improving GcalView API.
Added GcalView::update signal for when the view will change it's date range
Added GcalView::create-event signal for when the view wants to create a new
event

Added GcalView::clear_selection method for clearing new-event mark.

Note: The views can choose to mark before send a ::create-event signal the range
over which they will create the new event. This will be called new-event mark.
2012-08-19 02:47:36 -04:00
Erick Pérez Castellanos 444298ae26 Improved GcalView API.
Added ::active-date property
Added set_date/get_date pair of methods for handling the property
Added get_initial_date/get_final_date pure virtual methods.
2012-07-11 10:50:28 -04:00
Erick Pérez Castellanos f83143050c Added undo notification system to event deletion.
Added GcalEventView::will-delete to let thw window knows about the change.
GcalWindow will handle the hiding of the event-widget till the notification goes
away or the user click "Undo".
Added method in GcalView interface to retrieve and event-widget by it's uuid.
Added some cosmetic changes in GcalMonthView as well.
2012-07-11 10:50:28 -04:00
Erick Pérez Castellanos 07ac070f08 First approach of Event view ended.
For now the view, works only for viewing, and not for editing.
The delete button works, though.
It's needed yet a notification for an event deletion.
2012-07-03 15:20:01 -04:00
Erick Pérez Castellanos 9ce40b9bf0 GcalMonthView changes.
Created GcalView interface, used in GcalMonthView
Added implementation for GtkContainer virtual funcs in GcalMonthView
Improving size_allocate/drawing methods
Added day selection drawing
2012-05-24 00:46:08 -04:00
Erick Pérez Castellanos eef3c90f45 Converted GcalMonthView to GtkContainer subclass.
Added gcal_view_add_event method GcalView interface.
Fixed size_allocate implementation in GcalMonthView to allocate children events.

There's still work to be done here.
2012-05-17 14:56:28 -04:00
Erick Pérez Castellanos 9e527f823e Added to GcalMonthView class GcalView interface implementation. 2012-05-16 00:26:23 -04:00
Erick Pérez Castellanos 99a89e0e24 Added initial implementation of GcalView interface.
Added files to Makefile.am
2012-05-15 23:30:14 -04:00