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
Bastien Nocera
604e4ce438
Prevent crash clicking on the "New Event" button
2012-12-06 09:19:42 +01:00
Bastien Nocera
a7ec3e5320
Make GtkMenuButtons work again
...
GTK+ uses "popup" not "menu" for the popup menus.
2012-12-06 09:19:17 +01: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
Daniel Mustieles
09a0270162
Remove uneeded space
2012-12-04 11:41:11 +01: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
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
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