Commit Graph
100 Commits
Author SHA1 Message Date
Erick Pérez Castellanos ec5a40cd17 Updated TODO. 2013-05-11 11:32:16 -04:00
Erick Pérez Castellanos 703754e164 Fixed "New Event" click behavior when on year-view. 2012-12-06 11:39:17 -05: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 5a5d01a4d7 Fixed ordering of dates in New Event Dialog.
When the user selected the months backward the dates on the header
of the "New Event" dialog was wrong. The dialog shown "from October 31 to March 01"
2012-12-05 16:55:31 -05:00
Erick Pérez Castellanos 3e84d62a8c Marked current month in GcalYearView
Added docs about it.
2012-12-01 15:29:04 -05:00
Erick Pérez Castellanos 8b6f11d743 Bump version to 0.0.3. 2012-12-01 15:29:04 -05:00
Erick Pérez Castellanos 9d83840f96 Stolen code for making toolbar buttons square.
The code is extracted from Cosimo's libgd.
Eventually I might migrated my toolbar and notifications
to use libgd instead of my own copy.
2012-12-01 15:29:04 -05:00
Erick Pérez Castellanos 4ae3f77c0f Added drawings for new_event mark when click "New Event" button. 2012-12-01 15:29:03 -05:00
Erick Pérez Castellanos 85634c79df Added input handling to GcalYearView.
Added drawing primitives from marking the range of dates.
This code is almost the same of the one in GcalMonthView.
2012-12-01 15:29:03 -05:00
Erick Pérez Castellanos 8a5d1ba4fb GcalYearView implementation of GcalView::create_event_on_current_unit.
Added code to connect the event from GcalToolbar in GcalWindow.
2012-12-01 15:29:02 -05: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 72278de44b Format and documentation changes. 2012-12-01 15:29:02 -05:00
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
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
Erick Pérez Castellanos c3acffa9d7 Changed mode declaration for emacs. 2012-09-20 09:00:46 -04:00
Erick Pérez Castellanos 2020042232 Updated Roadmap. 2012-09-20 08:54:40 -04:00
Erick Pérez Castellanos c3f8a4b973 Updated EditaDialog to match mockups.
Note: There's still missing one pixel border, I can't find the reason today.
And there's still need to theme better the background of the readonly header.
But the major changes are done.
2012-09-13 13:29:24 -04:00
Erick Pérez Castellanos 4ef16c7f1a Improving Searchbar looking. Fixes to GcalWeekView 2012-09-10 10:48:48 -04:00
Erick Pérez Castellanos 65c8f83e81 Renamed GcalArrowContainer to GcalArrowBin. 2012-09-10 10:29:41 -04:00
Erick Pérez Castellanos 8ac7e58d88 Fixed non-construct properties setting.
Added push/pop composite pairs of functions.
Moved non-construct properties setting to after the construct process have
ended.
2012-08-30 00:59:17 -04:00
Erick Pérez Castellanos 54d42cc23a Added transient magic to GcalEditDialog. 2012-08-29 22:22:04 -04:00
Erick Pérez Castellanos cd106e6a5a Changed reminders icon in GcalEventWidget. 2012-08-27 20:13:07 -04:00
Erick Pérez Castellanos 2c000324f6 Removed disabled calendars from menu. 2012-08-27 15:36:19 -04:00
Erick Pérez Castellanos 4c3e232623 Removed read-only sources from EditDialog.
Removed disabled and read-only calendars from showing in GcalEditDialog.
2012-08-26 11:33:00 -04:00
Erick Pérez Castellanos 6be38d7a51 Added code to handle show/hide if searchbar.
Eventually it will be better to pack the entire searchbar into a full widget so
it can emit signals and the code become easier to read and maintain.
2012-08-25 02:01:16 -04:00
Erick Pérez Castellanos 600aad6f3b Reworked GcalToolbar to match the mockups.
Added search-button and GcalToolbar::search-events signal.
Moved and changed add-button. Restyled with "suggested-action" class.
2012-08-25 01:59:06 -04:00
Erick Pérez Castellanos 070d10bf47 Reworked internal structure of GcalWindow.
Removed unneeded widgets. Removed unneeded layouts managers.
Added constraints to handle actors sizing.
Renamed main_toolbar attribute to toolbar_actor
Added searchbar_actor. Initial approach.
2012-08-25 00:35:12 -04:00
Erick Pérez Castellanos 7071219747 Updated docs. Changed GcalWindow internals skel. 2012-08-25 00:22:14 -04:00
Erick Pérez Castellanos 9d151a625a Fixed segfault on gcal_window_show_hide_actor_cb. 2012-08-24 23:21:12 -04:00
Erick Pérez Castellanos 0e427a5f8f Added sync to GcalEventOverlay and GcalEditDialog
Added code to wait untill GcalEventOverlay is hidden to show GcalEditDialog.
2012-08-23 15:25:03 -04:00
Erick Pérez Castellanos 2f6d66e6e6 Updated TODO.
Implemented.
2012-08-23 15:06:42 -04:00
Erick Pérez Castellanos a570538cb6 Added code to handle new signal from manager.
Added code to GcalWindow to handle event-created signal from GcalManager.
Added marshaler.
2012-08-23 15:01:06 -04:00
Erick Pérez Castellanos b6bdce9aec Minor fixes.
Changed values representing signals in GcalEventOverlay
Fixing code style in GcalEventWidget
2012-08-23 15:00:09 -04:00
Erick Pérez Castellanos 4c3bf3c318 Added method to obtain event-uuid from the dialog. 2012-08-23 14:59:34 -04:00
Erick Pérez Castellanos 49afd07fc7 Added GcalManager::event-created signal.
The signal is emitted when an event is created through GcalManager.
2012-08-23 14:58:08 -04:00
Erick Pérez Castellanos 063d569e3d Updated TODO 2012-08-23 11:27:15 -04:00
Erick Pérez Castellanos 4801dd3513 Added more details to event-details view.
Added start and end date loading.
Added start and end time loading.
Added calendar loading.
2012-08-23 11:26:00 -04:00
Erick Pérez Castellanos 2aa0054ba7 Removed gcc warning. 2012-08-23 11:17:21 -04:00
Erick Pérez Castellanos 749b1b18f0 UI fixes, and calling read-only API of GcalManager 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos fabf3c282a Changed icon used for reminders.
Removed empty lines.
2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 5eadc377a4 Used timezone support at initial date retrieving. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos bba41ad784 Added read-only query API to GcalManager. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 22163f1d86 Added initial timezone support. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 8c0f6fba73 UI fixes to GcalEditDialog. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 7f1c54a761 Fixed POTFILES.in to match code changes. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 7581e8bad0 Reworked details view of an event.
Removed editable-widgets.
Added GcalEditDialog
Reworked delete-event trigger
Moved method from GcalEventOverlay to utils to use it on GcalEditDialog
2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos c4ab6fe503 Updated event style. 2012-08-23 09:43:58 -04:00
Erick Pérez Castellanos 2ba4a361f0 Fixes to GtkNotification by Cosimo. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos 21640c04c9 Added new doc, Views. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos 983b63fbac Added has_reminders get/set handling.
Minor fixes.
2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos b884816bda Fixed GcalToolbar behavior. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos fc3c165f04 Added has_reminders API to GcalManager. 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos fa9e9eacdb Updated to match lastest Gtk+ API 2012-08-23 09:43:57 -04:00
Erick Pérez Castellanos e1a78d1975 Changed drawing mechanic of GcalEventWidget.
Added symbolic icon for reminders event
Renamed signal to GcalEventWidget::activate
Renamed properties enums
Fixed size requisition
2012-08-23 09:43:57 -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