Commit Graph
210 Commits
Author SHA1 Message Date
Erick Pérez Castellanos 1d04d68c52 Debug instrucions and comments removed. 2012-12-01 15:29:02 -05:00
Erick Pérez Castellanos 4d31236ea7 Changed event-created signal emission.
GcalManager::event-created signal emission changed.
The new code isn't reentrant so eventually has to be fixed.
2012-12-01 15:29:01 -05:00
Erick Pérez Castellanos 8e0de96520 Added accelerators to GcalApplication actions. 2012-12-01 15:29:00 -05:00
Erick Pérez Castellanos 44ddbdbf88 Added mark of the actual month to GcalYearView. 2012-12-01 15:29:00 -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 14fe503ece Fixed bug on location change notification. 2012-12-01 15:28:57 -05:00
Erick Pérez Castellanos 0a34a40722 Added allocating of children in the GcalYearView.
Reordered months in the grid.
2012-12-01 15:28:57 -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 0e39c4f618 Added gcal_compare_event_widget_by_date function.
Method added so I can sort the widgets by its start date on
the views.
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 9f4a97d536 Renamed widget data structure to GcalWeekChildData.
I will GcalViewChild to gcal-view.h and since GcalWeekView
includes GcalView the will be names clashes.
Anyway, GcalWeekView need a full rework.
2012-12-01 15:28:55 -05:00
Erick Pérez Castellanos fe22adc977 Improved update of toolbar when changing view.
Whenever we change the view through the AppMenu the code for
changing the view in GcalWindow was executed twice. Fixed to execute
it only once.
2012-12-01 15:28:54 -05:00
Erick Pérez Castellanos 9b4e13f1fc Added constraint to minimum window size.
In fair play I should implement get_preferred_width/width_for_height and
friends methods on the views, but since I'm lazy and these days I doubt
someone using calendar will have less than 800x600 pixels.
2012-12-01 15:28:54 -05:00
Erick Pérez Castellanos d9a3b7ae11 Bug: Not updating toolbar when changing view through AppMenu. 2012-12-01 15:28:54 -05:00
Erick Pérez Castellanos 1fbcfeb303 Fixed text formatting issues. 2012-12-01 15:28:54 -05:00
Erick Pérez Castellanos 1b0312f653 Minor fixes and comments review. 2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos a00ec9edc2 Hooked GcalYearView into GcalWindow and GcalApplication.
This works amost flawlessly since GcalView interface and it's methods
take care of almost everything.
Yet, this made me realize some toolbar bug.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos bb7e518fa4 Added initial GcalYearView implementation.
First approach to GcalYearView implementation.
The code is missing yet a lot of the others views functionality,
well, almost every view is missing something, but...
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos a3aa2fc664 Fixed indexing of month_names array. 2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 4b35ffe8c8 Updated docs and TODO.
Added initial GcalYearView sketches to Drawing
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 1062d3e435 Debarshi's suggestion about g_clear_object use.
Removed if (pointer != null) condition when using
g_clear_object.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos e1be309095 Added source change notification connections.
Added code to GcalWindow to connect notification of change from
GcalEditDialog to GcalManager methods.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 6ada73c619 Added support for moving events between sources.
Added support in GcalManager for moving events.
The implementation is pretty simplistic. It doesn't handle
any errors, but since I'm lazy I'm planning to let it that
way till the day bugs start appearing.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 21ab796fb3 Added source change notification.
Added support in GcalEditDialog to notify when the source
of an event has changed.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos b4f7cee991 Handled change of end-date of an event.
Added code to GcalWindow to update the event end-date through
the manager.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 9cc6eb8e77 Added method for setting event end-date.
GcalManager::set_event_end_date method added.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos f0e5880476 Reworked date change observers.
Hooked signals from date and time entries.
Added comparison and adjustment if the interval.
Removed SimpleDate and SimpleTime structs.
Added _get_end_date for end-date change notification.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 8af404eea1 Fixed error when replacing a number.
Added FIXME to remember me implement or review the need
of delete_text implementation.
2012-12-01 15:28:53 -05:00
Erick Pérez Castellanos 6c9ff2d12d Removed gcc-4.7 warnings.
Compilation with gcc 4.7 gave me some warnings about initialization.
2012-12-01 15:28:52 -05:00
Erick Pérez Castellanos ba68b831cc Added modified signals to both widgets.
GcalDateEntry and GcalTimeEntry now have a ::modified signal.
2012-12-01 15:28:52 -05:00
Erick Pérez Castellanos c6887e9a37 Moved from guint to gint to match libical internal data.
The internal attributes of both widgets were guint types, but
since libical library has those values (day,month,hour) as int
inside icaltimetype struct, I decided t move to gint in order to
avoid compiler warnings, and ugly hidden things.
2012-12-01 15:28:51 -05:00
Erick Pérez Castellanos 69871884f9 Added start-date change handling.
Missing: moving end_date accordingly.
2012-12-01 15:28:51 -05:00
Erick Pérez Castellanos 8594de0f28 Added GcalDateEntry widget.
Initial approach. I really don't like the implementation, is kinda week.
And it needs a lot of testing, localization kind of testing.
2012-12-01 15:28:51 -05:00
Piotr Drąg d1d08e91e3 Updated Polish translation 2012-10-11 01:03:05 +02:00
Piotr Drąg 50c132d1d7 Updated POTFILES.in 2012-10-11 01:01:36 +02:00
Erick Pérez Castellanos 8e02fab3f8 Cleaned debug info. 2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos eb8e31207c Minor misc fixes.
Theme fixes to show right scrollbar elsewhere.
gcal-time-entry.h cleaning.
UI fixes around the searchbar in GcalWindow.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos 24cfaab837 Added support for storing event data.
Initial support for storing event-data so the EditDialog can
tell which properties has changed.
Changed time entries for GcalTimeEntry objects.
Set ::activates-default property of summary_entry to handle change title
with one keystroke.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos b6a34f7666 Added GcalTimeEntry widget.
GcalTimeEntry widget handle 24-hour format time.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos 4da9b460f1 Hooked support for editing into GcalWindow
Initial stage of connection editing events functionality of the dialog
to calls in GcalManager API and updating the event widget and its position
inside the view.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos 20eccc8a31 Added support to obtain properties of the event
Added very initial support to handle obtention of the modified properties
of the edited event. There's still some kind of Model implementation to keep
track of the changes made by the user.
2012-10-10 15:55:18 -04:00
Erick Pérez Castellanos 21088e7fb9 Added API to modify some events properties.
New APIS:
    GcalManager::set_event_summary
    GcalManager::set_event_location
    GcalManager::set_event_description
    GcalManager::set_event_start_date

Note: GcalManager::set_event_start_date isn't finished since still
      needs to handle all-day status of the event.
2012-10-10 15:55:18 -04: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 92d907d12e Updated docs and configure.ac 2012-10-10 15:55:18 -04:00
Mathieu Bridon 8109fa7b2e Add missing semi-colon to the desktop MimeType 2012-10-02 10:37:21 +03:00
Mathieu Bridon 71e8927380 GNOME Calendar should handle text/calendar MIME type
This allows the user to choose it as their favorite calendar application
in the GNOME System Settings for example.
2012-09-28 08:13:21 -04:00
Mathieu Bridon 8b0bb13304 Be consistent with the name used elsewhere
The application name is `gnome-calendar` throughout the source
code, not `gnome_calendar`.
2012-09-27 08:14:23 -04:00