Commit Graph
26 Commits
Author SHA1 Message Date
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