Commit Graph
57 Commits
Author SHA1 Message Date
Florian Brosch 07fd080deb Do not show "Insert Emoji" for fixed form entries. 2017-11-08 23:51:32 -02:00
Georges Basile Stavracas Neto 8927e10ae0 edit-dialog: wrap in a scrolled window
As we're adding more and more widgets in the Edit dialog,
it is now growing too tall to fit normal screens. Thus, wrap
it in a scrolled window, and let the content height cover
75% of the main window at most.
2017-09-07 14:58:14 -03:00
Georges Basile Stavracas Neto a0e64ca3c8 edit-dialog: cleanup ui file 2017-09-07 14:38:46 -03:00
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
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
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 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
fosero 090d7d9c42 edit-dialog.ui: Allow notes scroll while non-editable
Allow scrolling of the GtkTextview in non-editable state. Also show the
cursor when editable.

https://bugzilla.gnome.org/show_bug.cgi?id=771485
2016-09-27 21:05:56 -03:00
Georges Basile Stavracas Neto 50aa895347 edit-dialog: limit and ellipsize title
So it doesn't grow endlessly.

https://bugzilla.gnome.org/show_bug.cgi?id=771400
2016-09-14 13:18:37 -03:00
Georges Basile Stavracas Neto 56ae69d6c4 edit-dialog: keep start and end dates synchronized
Never let them enter in an invalid state, where the end
date is ahead of the start date.

https://bugzilla.gnome.org/show_bug.cgi?id=770263
2016-08-30 00:30:58 -03:00
Georges Basile Stavracas Neto a483af3741 edit-dialog: simplify sensitive state handling
Instead of manually handling every single widget, simply
sync the GtkWidget:sensitive property of the topmost box.
2016-08-30 00:30:58 -03:00
Yosef Or Boczko 7af215aef2 Mark a string as translatable 2016-08-09 17:56:10 +03:00
Georges Basile Stavracas Neto 459756b2a2 edit-dialog: adapt to better display the date selectors
This commit is purely aesthetical, and is here in order to
make the edit dialog look more like the proposed mockups.
2016-07-23 17:47:11 -03:00
Georges Basile Stavracas Neto f8876022e1 edit-dialog: correctly center header button widgets 2016-07-08 16:39:01 -03:00
Lapo Calamandrei fba57ee1af Revert "edit-dialog: add calendars-list styleclass to sources_popover."
This reverts commit 126d6145f2, since
a proper hacker (Georges) added the class where it makes more
sense.
2016-07-08 21:31:42 +02:00
Lapo Calamandrei 126d6145f2 edit-dialog: add calendars-list styleclass to sources_popover. 2016-07-08 20:37:20 +02:00
Lapo Calamandrei 456c7a0f69 edit-dialog: add calendar-color-image styleclass to source_image. 2016-07-08 19:12:53 +02:00
Georges Basile Stavracas Neto c548d580ea edit-dialog: make alarms' widgets insensitive on read-only 2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto 37061a38f4 edit-dialog: improve sizing 2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto 5cb2e86fa6 edit-dialog: improve titlebar button
Make it insensitive when the event is read-only, and add
a tooltip for users to learn what does the button do.
2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto a2b6b478bb edit-dialog: fix spurious properties 2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto a5634dc5fb edit-dialog: put the time selectors in a revealer 2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto 5dd456c81d edit-dialog: move All Day check below time row 2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto b6c19e8399 edit-dialog: group dates and times
Instead of start and end, group the selectors by
dates and times.
2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto 4d30db74f5 edit-dialog: increase summary label width
Since we moved the Agenda button to the headerbar,
fill the now free space with the summary label.
2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto bbcf20cf44 edit-dialog: add a button in the headerbar
This button will be used to select the new source of the event.
2016-07-06 18:54:59 -03:00
Georges Basile Stavracas Neto c406b604e2 edit-dialog: fix Reminders dim label size 2016-07-06 12:38:09 -03:00
Georges Basile Stavracas Neto 2e7d17fe63 edit-dialog: implement add alarm popover
The new popover handles all the possible alarms we support.
2016-07-06 03:01:56 -03:00
Georges Basile Stavracas Neto 2a18761908 edit-dialog: show available alarms
This commit introduces the ability in Edit dialog to
display the currently available alarms, as well as basic
editing of these alarms.

Currently, only removing the alarms and modifying it to
play a sound or not is available. The following up commit
will add the ability to add new alarms.
2016-07-06 03:01:56 -03:00
Anwar Sadath 8fd6138972 edit-dialog: button labels using header capitalisation
All the button labels in edit dialog following header capitalisation.

https://bugzilla.gnome.org/show_bug.cgi?id=747961
2016-05-20 13:07:44 -03:00
Georges Basile Stavracas Neto 070bc681fc edit-dialog: simplify code
We don't need to have 2 functions that do exactly
the same thing.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto 34ff93ce3f time-selector: use GDateTime
Pretty much like the previous commit, but porting the
GcalTimeSelector class.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto afe8def60c date-selector: use GDateTime internally
Using a GDateTime improves consistency with the
other components (ideally, we'll move completely
to GDateTime) and simplifies the code.

This commit adds a new property GcalDateSelector::date
and adapts the API to use GDateTime.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto 13c4145507 edit-dialog: add ::writable and ::manager properties
By using these properties, we gain the possibility to
bind them to the widgets and save some needless code.

This commit adds GcalEditDialog::writable and ::manager
properties. Other needed properties will be eventually
added in the subsequent commits.
2015-12-30 17:34:29 -02:00
Georges Basile Stavracas Neto de207f9c63 edit-dialog: move bindings to UI file
We don't need to manually bind these properties in
the source code if we can make it on the UI files.
2015-12-30 15:05:20 -02:00
Georges Basile Stavracas Neto 80693e9ae5 edit-dialog: remove unused code 2015-07-15 21:10:12 -03:00
Erick Pérez Castellanos c2d89a5903 build: simplify UI files using gtk-builder-tool 2015-05-25 12:36:54 -04:00
Erick Pérez Castellanos 46904450ad edit-dialog: use word wrap on the description field 2015-02-13 09:12:15 -05:00
Georges Basile Stavracas Neto 5423280398 edit-dialog: use UI file to connect signals
Fixes bug #739313.
2015-01-13 17:02:07 -02:00
Georges Basile Stavracas Neto 6de2bdd292 edit-dialog: fix missing icons from source selection menu 2015-01-13 13:23:42 -02:00
Georges Basile Stavracas Neto 0446fa09e6 edit-dialog: removed 'entry' style class
It was causing horrible visual glitches when text overflows.
2015-01-03 11:03:40 -02:00
Georges Basile Stavracas Neto 0db303abe2 edit-dialog: fix sizing issue 2014-12-23 12:01:41 -05:00
Georges Basile Stavracas Neto 26df8ec8d8 edit-dialog: link date & time selectors 2014-12-23 12:01:40 -05:00