Commit Graph
278 Commits
Author SHA1 Message Date
Georges Basile Stavracas Neto 6004123ba2 edit-dialog: fix time widgets sensitive when all day 2017-08-24 07:16:15 +09:00
Georges Basile Stavracas Neto 3eec69c559 edit-dialog: update style
Calendar matured its code style over time and
edit dialog kept the old style.
2017-08-24 07:07:36 +09:00
Abdullahi Usman e56bbc78a8 edit-dialog : correct time row visibility
The revealer widget in edit dialog's event time interval row uses to hide the
time selector widgets when the event is checked as all-day and also reveal the
widgets when not checked as all-day.

Sometimes edit dialog may turn on the visibility of the time selector
widgets when the revealer's animation already starts, causing a flickering of the widgets.

We remove the revealer widget and leave edit dialog to toggle the
visibility of time selector widgets when needed.

https://bugzilla.gnome.org/show_bug.cgi?id=771572
2017-08-22 21:01:20 -03:00
Yash Singh 29092fcfe6 edit-dialog: correctly assign repeat widgets' sensitivity
Earlier repeat widgets were sensitive even when
the event selected was read-only. This patch corrects
this behavior and makes the repeat widgets insensitive
when the event is read-only.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-08-18 22:56:44 -03:00
Yash Singh bb58a3a82a edit-dialog: improve vertical spacing between widgets
Earlier the edit-dialog had a grid row-spacing of 18.
This patch changed that row-spacing to 6 and adds
top-margin of 6 px above every widget group. This
ensures that the related widgets are grouped together.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-08-18 22:56:44 -03:00
Piotr Drąg e9fc3aa2f8 edit-dialog: replace hyphen with an en dash in ranges
See https://developer.gnome.org/hig/stable/typography.html

https://bugzilla.gnome.org/show_bug.cgi?id=772263
2017-07-13 19:24:26 +02:00
Yash Singh 067e8ae765 edit-dialog: add 'Repeat' options for simple recurrences
Currently, creating recurring events is not supported
in gnome-calendar.

This patch adds a Repeat combobox with a list of
simple recurrences such as:

 * Monday - Friday events
 * Daily events
 * Weekly events
 * Monthly events
 * Yearly events

and also a list of recurrence-duration-types such as:

 * If an event should repeat forever
 * A date until which the event should repeat
 * Number of times an event should repeat

It enables the user to create simple recurring events and
even modify the recurrence-property of an already
recurring event.

https://bugzilla.gnome.org/show_bug.cgi?id=782755
2017-07-13 13:32:53 -03:00
Georges Basile Stavracas Neto 78eb9a7435 window: add more shortcuts
Add the following new shortcuts:

 - Home: moves to today
 - PageUp: previous week/month/year
 - PageDn: next week/month/year

https://bugzilla.gnome.org/show_bug.cgi?id=740844
2017-04-13 07:32:21 -03:00
Georges Basile Stavracas Neto aa5b963412 view: rework active-date
The current implementation is deficient in many ways, the
worst one being the it relying on GObject semi-synchronous
property emission.

This issue was exposed by the Week view code, where the active
date was updated, but delayed to reach the Week header and some
events were being added ~before~ the active date changed.

With this work, I was also able to figure out a bunch of code
that relied on this (i.e. luck) to work.
2017-04-12 20:51:23 -03:00
Jeremy Bicha bc141b3713 app-menu: Drop Search… item
https://bugzilla.gnome.org/show_bug.cgi?id=781165
2017-04-11 09:58:41 -03:00
Piotr Drąg cf13c0cbb1 window: add context to a tooltip string
To disambiguate it from the exact same string in AppData.
Some languages need to translate them differently.
2017-03-27 20:22:17 +02:00
Jeremy Bicha 3078f1c6c1 app-menu: Drop ellipsis from Calendars
https://developer.gnome.org/hig/stable/writing-style.html#ellipses

https://bugzilla.gnome.org/show_bug.cgi?id=780176
2017-03-22 22:21:37 -03:00
Kevin Lopez c3bffd5eeb search-view: no show search view if field is empty
When the search field is empty is not needed show the result drop down.

https://bugzilla.gnome.org/show_bug.cgi?id=747962
2017-03-16 21:32:04 -03:00
Georges Basile Stavracas Neto 8f34049793 views: sync header labels' style
The Week view exposed a bug where we had different
CSS selectors for the exact same label. This made
them look inconsistent, with different colors and
paddings.

Fix that by ensuring they all use the same style
class. The Year view drawing code needed to be
reworked a little.

https://bugzilla.gnome.org/show_bug.cgi?id=778391
2017-02-09 10:28:28 -02:00
Andrei Ceapa 4ab02f487c edit-dialog: allign circle with subtitle
Move the circle in the headerbar on the same line with the
subtitle, so that it will not move when the length of the event
title increases.

https://bugzilla.gnome.org/show_bug.cgi?id=772098
2017-02-01 15:14:13 -02:00
Abishek 78a463ab53 week-header: align month_label, week_label and year_label
There was a small alignment issue with week_label, month_label and
year_label in week-view.

Change the y-align property of month_label,week_label and year_label
in week-header.ui to 0, so that they are aligned properly.

https://bugzilla.gnome.org/show_bug.cgi?id=777417
2017-01-30 14:44:26 -02:00
Georges Basile Stavracas Neto f013d7442e week-header: fix event margins 2016-12-15 17:09:45 -02:00
Georges Basile Stavracas Neto ffaf7153d7 week-header: implement event creation 2016-12-14 17:00:11 -02:00
Georges Basile Stavracas Neto 343283e37a week-grid: implement event creation 2016-12-13 16:29:07 -02:00
Georges Basile Stavracas Neto 7e53c433b7 week-view: center grid on date change 2016-12-08 19:14:03 -02:00
Georges Basile Stavracas Neto b8a297fdde week-header: small ui fix
Add 2px at the bottom so events don't overlap with the
bottom line.
2016-12-08 18:31:01 -02:00
Georges Basile Stavracas Neto 36f716ebf4 week-view: reimplement editing events 2016-12-08 18:23:25 -02:00
Georges Basile Stavracas Neto 21c9f721ae week-header: properly propagate height when expanded 2016-12-08 16:10:46 -02:00
Georges Basile Stavracas Neto 7e68588cfb week-header: rework drawing model 2016-12-08 03:09:35 -02:00
Georges Basile Stavracas Neto f50a258f05 week-header: fix initial overflow check 2016-12-08 03:09:35 -02:00
Georges Basile Stavracas Neto 336e584099 week-grid: implement event handling
This is the glorious commit where Week grid starts
showing and handing events.
2016-12-07 21:31:30 -02:00
Georges Basile Stavracas Neto 2e7c6c8c58 week-header: visual improvements 2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto 2298379e51 week-header: reorganize widgets
Instead of a box inside the overlay, put the overlay inside the
box.
2016-12-01 23:48:54 -02:00
Georges Basile Stavracas Neto 154a01f4c1 week-view, week-grid: various fixed
This commit is a rebase, compile-warning remover and a
misbehaviour fixer too.
2016-12-01 23:48:53 -02:00
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 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 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 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
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 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 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 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 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 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
Georges Basile Stavracas Neto 65c619b433 edit-dialog: also set top and bottom margins
It looks like the cursor at the "Notes" section of the
edit dialog has no vertical space to breath, and it's
a little bit annoying as it runs away from the expected
position.

Fix that by adding a small margin at the top and the bottom
of the text view at the "Notes" section.
2016-10-03 19:37:08 -03:00
Isaque Galdino 775cbb8b74 edit-dialog: Change headerbar tooltip
Edit dialog headerbar tooltip was reading: "Click to select event's
agenda" and a user asked to change it to: "Click to select the
calendar", so it would be more natural and familiar for non-native
English users.

https://bugzilla.gnome.org/show_bug.cgi?id=772103
2016-10-03 19:00:10 -03:00
Georges Basile Stavracas Neto 62aa66b8da year-view: implement scrolling to change year
Following the previous work on month view, this commit
implements scrolling capabilities to Year view. We do
this not only with the :scroll-event, but also using the
:edge-overshot signal of GtkScrolledWindow.
2016-10-01 19:16:18 -03:00
Georges Basile Stavracas Neto 4582ade21d edit-dialog: sync time and date widgets' sizing
So the time widgets don't grow over the date widgets and break
the vertical layout of the edit dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=771440
2016-09-27 22:48:27 -03:00
Georges Basile Stavracas Neto 3ef45ccf9f quick-add-popover: focus the summary entry when shown
So the user can start typing right away.
2016-09-27 21:20:45 -03:00