Commit Graph
32 Commits
Author SHA1 Message Date
pandusonu2 a94a15ebba window: add week-view shortcut
Add the shortcut to switch between views to the week-view
2016-12-01 23:48:53 -02:00
pandusonu2 b51f8c3ca6 week-grid: realize the week-grid
Activate the week-grid by writing the necessary realize, unrealize, map and unmap functions
2016-12-01 23:48:53 -02:00
pandusonu2 e16426db05 week-header: correct padding and drawing
Correct the padding for the expand button, to set some space between the button and the border.
Remove the extra code which results in drawing of an additional line.
2016-12-01 23:48:53 -02:00
pandusonu2 97ed5267e2 week-view: fix the sync between sidebar width
Fix the width of the sidebar sync between the week view and week header.
2016-12-01 23:48:53 -02:00
pandusonu2 4fde7e369d week-header: remove unnecessary code and correct access of public functions
Remove code of functions which are no longer being used. Also corrected a few public functions and made them private as they won't be used.
2016-12-01 23:48:53 -02:00
pandusonu2 680f220fb2 week-view: draw the hours labels
Draw the hour labels in the sidebar of the week grid.
2016-12-01 23:48:53 -02:00
pandusonu2 4b1ff14b6a week-header: work around with GtkOverlay error
Using the height request function to fix the error with height allocation of GtkOverlay widget.
2016-12-01 23:48:53 -02:00
pandusonu2 7927d3b11f week-header: add support for expanded and collapsed mode
Add the expand button and the functions require to expand and collapse the header.
2016-12-01 23:48:53 -02:00
pandusonu2 d6ef05b31d week-header: adjust theming to match the mockups
Set correct font weight, size and draw lines where required.
2016-12-01 23:48:53 -02:00
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
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
pandusonu2 d31f20ed72 window: updated update_active_date() for week-view
Added the code required to update_active_date for week-view.
2016-12-01 23:48:52 -02:00
pandusonu2 028eb7b994 window: initialize and include week-view in the main window
We add the week-view to the views_stack.
Initialize the GtkWidget week_view in the gcal-window.c
2016-12-01 23:48:52 -02:00
pandusonu2 a3cbaf1e81 month-view: selection across months
In this commit we change the data type of start_mark_cell and end_mark_cell to GDateTime from gint

Currently, the mark_cell's are gint and while moving across months, they cause a problem as they don't take the new month into consideration but the cell value of the selector.

To fix this, we changed the data type of the mark_cell's and modified all the functions dependant on it.

https://bugzilla.gnome.org/show_bug.cgi?id=763641
2016-03-26 17:31:25 -03:00
pandusonu2 a738acb462 month-view: wrap around months for selector
In this commit, we modify the position of the selector in the month view when the selector is out of bound of the present month

Presently, the selector in the month view doesn't move when it reaches the border of the month.

To fix this, whenever the keyboard_cell is less than first index of the month, we reduce the value of month by 1 and in the case it is greater than the max key cell, we are increasing the value of month by 1.

https://bugzilla.gnome.org/show_bug.cgi?id=763198
2016-03-11 22:44:15 -03:00
pandusonu2 69e1fdd5f3 window: add can_focus property to GcalMonthView
In the commit, we made the initial value of can_focus for month-view to be set true, which was by default taken to be false.

The problem is that when we open the month-view in gnome calendar, the input focus is not set to the month view which resulted in the failue of navigation keys initially.

To fix this, the default value of the focus is set to true in the window.ui file.

https://bugzilla.gnome.org/show_bug.cgi?id=763160
2016-03-06 20:15:20 -03:00