pandusonu2
4544b39b47
week-header: sort events before placing them
...
Sort the events based on multiday/single day, start date and duration.
2016-12-01 23:48:53 -02:00
pandusonu2
175d22e9ef
week-header: reposition present events on changing active date.
...
When an event lasts beyond the active week, the event placement doesn't change on changing the week.
We removed all the present events and added them to the list of events to be added to reposition them.
2016-12-01 23:48:53 -02:00
pandusonu2
665f91701b
week-header: set correct padding for the grid
...
Set the margin top, left, and right for the grid, according to the mockups.
2016-12-01 23:48:53 -02:00
pandusonu2
62d8fdc057
week-header: manage event display, position and removal
...
Manage the displaying, positioning and removal of events in the week-header.
2016-12-01 23:48:53 -02:00
pandusonu2
0a53f1440e
week-header: set line width and height as in mockup
...
Set the divider line width and height to match the mockup.
2016-12-01 23:48:53 -02:00
Georges Basile Stavracas Neto
a43df17b08
week-header: turn into a GtkGrid
...
If the header is a GtkScrolledWindow, all the content
(including the top labels and week names) are scrolled.
This is a wrong behavior, since only the events should
be scrollable.
Fix that by making GcalWeekHeader a GtkGrid, and adding
the scrolled window in the correct position.
2016-12-01 23:48:53 -02:00
pandusonu2
61f25b78db
week-header: override the size_allocate()
...
Override the size_allocate() widget function to set proper alignment for the grid.
2016-12-01 23:48:53 -02:00
pandusonu2
188d7742b4
week-view: display events in header
...
Displaying events in the week-header based on duration of the event.
2016-12-01 23:48:53 -02:00
pandusonu2
16a1c9b55b
week-header: corrected the date of start of the week
...
The active date is taken as the start of the week
Added a function to get the correct date at start of the week.
2016-12-01 23:48:53 -02:00
pandusonu2
2e82f0a2b8
week-header: use GDateTime in place of icaltimetype
...
Switch to using GDateTime variables in place of icaltimetype variables wherever found.
2016-12-01 23:48:53 -02:00
pandusonu2
4dec80af4f
week-header: made the update_headers()
...
Shifted the code to update labels from the draw() to a separate new function update_headers()
2016-12-01 23:48:53 -02:00
pandusonu2
1122b24216
week-header: modify the draw() to match mockup
...
Made changes in the draw() to match the mockups.
2016-12-01 23:48:53 -02:00
pandusonu2
9ff7d79d7d
week-header: use stack-allocated structure
...
Using stack allocated structure for certain variable in the draw(). Also disabling the week-grid for now.
2016-12-01 23:48:53 -02:00
pandusonu2
bffaa3bd76
week-view: add the EcalDataModelSubscriber functions
...
Added the init, add, modified and removed functions of week-view for data model subscriber.
2016-12-01 23:48:53 -02:00
pandusonu2
16fac7c3a0
week-view: make it a template class
...
Made changes to make the week-view into a template class.
2016-12-01 23:48:53 -02:00
pandusonu2
383cd818e9
week-view: remove unused code
...
Cleaning up the week-view.c file. Removing the previously written code which won't be required.
2016-12-01 23:48:52 -02:00
pandusonu2
c658d030b8
week-grid: created the basic skeleton of week-grid
...
Created the .h, .c and .ui file of week grid. Also made changes in the Makefile.am for it to get built.
2016-12-01 23:48:52 -02:00
pandusonu2
69cade3d77
week-header: created the basic skeleton of the week-header
...
Created the .h, .c and .ui file of week header. Also made changes in the Makefile.am for it to get built.
2016-12-01 23:48:52 -02:00
pandusonu2
3656c781da
build: move week view to views/ subfolder
...
Moved the gcal-week-view.{h,c} into views folder. Made changes in the src/Makefile.am and configure.ac to include the views/gcal-week-view.h.
2016-12-01 23:48:52 -02:00