Commit Graph
221 Commits
Author SHA1 Message Date
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 bdac4e4c79 date-selector: turn into a entry
After making the date selector use the brand
new date chooser widget, it is now time to make
it an entry.

This commit, then turns GcalDateSelector into a
GtkEntry subclass, and add all the plumbing that
is necessary to make it work as such.

As a side effect, this commit adds rudimentary
natural language support for parsing dates.
2016-07-23 17:47:11 -03:00
Georges Basile Stavracas Neto 4ef9f75dfb date-selector: move to use the new date chooser
After adding the new GcalDateChooser widget, change the
current date selector to use it as the internal widget
of the popover.

The next logical step is turning GcalDateSelector into
an entry.
2016-07-23 17:47:11 -03:00
Georges Basile Stavracas Neto c2dca8a3dc date-chooser: add date chooser widget
This is mainly a copy-paste from an old branch authored
by Matthias Clasen. The code style was updated to match
Calendar's one, and the theming was improved a little bit.
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 eb5e22f6f6 source-dialog: add calendars-list styleclass. 2016-07-08 20:08:47 +02:00
Lapo Calamandrei 9e7abab8b2 quick-add-popover: add calendars-list styleclass
add `calendars-lists` to `calendars_listbox`.
2016-07-08 20:05:42 +02:00
Lapo Calamandrei e90c68e6c5 calendar-row: add calendar-color-image styleclass. 2016-07-08 19:21:14 +02:00
Lapo Calamandrei 456c7a0f69 edit-dialog: add calendar-color-image styleclass to source_image. 2016-07-08 19:12:53 +02:00
Lapo Calamandrei 2234ef0854 quick-add-popover: add a styleclass to color_image
add the `calendar-color-image` styleclass to the color_image image
to be able to style it generally.
2016-07-08 19:08:29 +02:00
Lapo Calamandrei 53d28d73b8 year-view: remove a superfluous border
simplify the related css and add correct backdrop colors in the
process.
2016-07-08 01:01:41 +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
Georges Basile Stavracas Neto 33c7031164 project: remove GbScrolledWindow
The max-content-height property was ported to GtkScrolledWindow,
which means we don't have to use a custom class anymore.
2016-06-17 18:18:38 -03:00
Georges Basile Stavracas Neto b0525a54f9 quick-add-popover: make it non-vertically-homogeneous
When there are lots of agendas, this would cause a huge
popover.
2016-06-17 18:00:32 -03:00
Georges Basile Stavracas Neto 88730dbafb year-view: don't render DnD when it leaves 2016-05-21 18:54:47 -03:00
Georges Basile Stavracas Neto 82c7918b15 year-view: implement the ::drag-drop operation
This magical commit finally implements the Drag and Drop
on Year view, enabling users to drop events from the sidebar
to the year navigator.
2016-05-21 18:54:47 -03:00
Georges Basile Stavracas Neto 44f5cbe607 year-view: render DnD selector on hover
This commit adds the ability to render a DnD square
to give visual feedback for the hover operation.
2016-05-21 18:54:47 -03:00
Georges Basile Stavracas Neto 46deb620e7 app-menu: add a Calendars... item in the app menu
I won't hurt to have 2 ways to access this dialog and,
appearently, the current behavior happens to bother
some users.

https://bugzilla.gnome.org/show_bug.cgi?id=762705
2016-05-20 22:33:35 -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
Isaque Galdino 97d8859574 year-view: Remove hardcoded values
Improve year-view code, removing hardcoded values.

year-view have hardcoded values for grid cell sizes (width and height).
Those values need to be recalculated every time a change in font or any
other style are changed.

Sidebar width was also hardcoded instead of getting its value directly
from the ui file. That would prevent it from drawing the content
accordingly when ui file is changed.

This patch fixes those two issues by retrieving those values from CSS or
ui files.

This patch also adds code to resize and redraw the window when
show-week-numbers property is changed.

Popover mode was also changed and now sidebar will always be shown when
show-week-numbers is set or when there is space for only 3 or less
columns.

https://bugzilla.gnome.org/show_bug.cgi?id=753533
2016-05-16 12:03:39 -03:00
Georges Basile Stavracas Neto b03edc6cd4 theme: drop .views CSS class
The default class for content viewers in Gtk+ is .view and
ideally provided by the theme. Not only that, but it provides
the exact same functionality of ours, but in a way that is
overridable for theme designers.

Fix this issue by removing the class from out CSS.

https://bugzilla.gnome.org/show_bug.cgi?id=765664
2016-05-08 14:45:57 -03:00
fosero 12ad480672 window.ui: Don't destroy GcalSourceDialog on close.
Since the change in d5cd6c7fc9 closing
the source dialog actually destroyed it and could not be used again.

Use gtk_widget_hide_on_delete to handle the delete-event.

https://bugzilla.gnome.org/show_bug.cgi?id=764280
2016-04-07 18:37:17 -03:00
Piotr Drąg 69e2586c7f Correct marking of translatable string 2016-03-15 23:58:21 +01: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
Georges Basile Stavracas Neto ab902030e7 edit-dialog: don't destroy the dialog on delete 2016-02-29 18:09:59 -03:00
Georges Basile Stavracas Neto 4ce918c9aa project: add a shortcuts window
And with this, we finish the last big UI change
that will land for 3.20.
2016-02-16 18:26:02 -02:00
Georges Basile Stavracas Neto 9ff5e05f9c app: automatically load resources from base path
We don't have to load most of the menus we're currently loading
by using the very handy automatic resource loading.

This patch fixup so the app loads resources automagically.
2016-02-16 18:12:18 -02:00
Georges Basile Stavracas Neto 7c0e3776e1 window: use GcalQuickAddPopover internally
Saves a lot of code from the window file, and makes
things better. Yay!
2016-02-16 13:37:54 -02:00
Georges Basile Stavracas Neto 11070f1d17 quick-add-popover: new class to handle new events
Instead of throwing it all for GcalWindow to handle,
add a new class called GcalQuickAddPopover that handles
event creation.

Events are always all day when created from the quick
add popover, unless the user wants to change it and click
'Edit Details' button.

In the future, we'll look forward adding natural language
support, so the user can type the times directly from the
entry (like e.g. "soccer at park from 10am to 11:30am").
2016-02-16 13:32:35 -02:00
Georges Basile Stavracas Neto 6a64384971 year-view: don't allow selection on event list 2016-02-16 03:49:13 +01: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 0ec0ea8121 event-widget: use GcalEvent internally
This saves a lot of code, and is much saner to maintain.
2016-02-14 12:17:37 -02:00
Georges Basile Stavracas Neto 5b8a26ec71 year-view: port to css nodes
Mainly by removing the gtk_widget_get_state_flags()
calls.
2016-01-04 16:50:40 -02:00
Georges Basile Stavracas Neto 961bf5dc88 window: setup edit dialog from UI file
This commit sets up the edit dialog from the window's ui
resource file, in a series of commits that tries to move
all C code to the UI definitions.

Also, GcalManager is a full GObject class, not a simple
pointer. As such, update the property spec to be of type
object, not pointer.
2015-12-30 17:37:12 -02:00