Commit Graph

62 Commits

Author SHA1 Message Date
e3bd75ef0d Clear chart icon view before loading the list
Fixes #94
2014-09-29 23:40:44 +02:00
41f054bf6f Add GPL headers to all source files 2014-09-26 15:01:19 +02:00
86e6b7e4e5 Prevent AgApp for opening a new window for imports unless necessary
It checks the current window, then all the other windows if there is a
usable among them. Only if there is none, it will create a new window.
2014-09-21 13:23:19 +02:00
944d623379 Give every web view a separate user content manager 2014-09-13 01:05:08 +02:00
6078a6e7b2 Add correct parent for ag_app_buttoned_dialog()
It was still using @parent, which was explicitly set to NULL

Fixes #51
2014-09-06 11:01:46 +02:00
760f0e8663 Add Alt-Left and Back accels for the back button 2014-09-06 10:58:31 +02:00
b9791f1436 Unify accels for the view changer menu 2014-09-06 10:58:31 +02:00
fbcf16cb52 Remove parentless dialogs
All dialogs that don’t need a parent are opened for the active window.
Fixes #51
2014-09-02 09:41:55 +02:00
931d184be5 Fix accel for chart edit
For some reason it was the same as the gear menu
2014-08-26 22:14:32 +02:00
4bb4304683 Change Ctrl to Primary in accels
This is somewhat a revert for 3ad29b3f, which also changed Primary to
Ctrl.
2014-08-21 00:55:54 +02:00
8aeec229f3 Switch to WebKit 4.0 API 2014-08-20 20:23:14 +02:00
88fb58a527 Import Placidus charts 2014-08-10 14:31:38 +02:00
a30d19d1bb Generalize chart loading functions
* ag_app_import_chart() became ag_app_import_file(), and has the potential
  to load any file type
* ag_app_import_cb() so it can open multiple file types
* ag_chart_load_from_file() is now called ag_chart_load_from_agc()
2014-08-10 14:31:38 +02:00
a3927458b4 Make ag_app_buttoned_dialog()'s first parameter nullable 2014-08-10 09:46:14 +02:00
3ad29b3f2d Moved to gtk_application_set_accels_for_action() API
... and with that, to a GTK+ 3.12 requirement.
2014-08-03 23:32:17 +02:00
0d1358303a ag_app_import_chart() now saves the chart immediately after importing 2014-08-03 11:03:23 +02:00
377a2e1e8a Rename Open functionality to Import 2014-08-02 01:41:33 +02:00
860638ed98 Add function ag_app_buttoned_dialog()
This is required to create dialogs with more than one buttons, like Yes/No
dialogs.
2014-08-02 00:34:07 +02:00
1628a71f8b Remove URI from AgWindowPrivate 2014-07-31 21:22:44 +02:00
8533b2f887 Load chart list when opening a new window 2014-07-31 01:06:24 +02:00
36e89f3fe4 Create the GdMainView for the chart list
GdMainView doesn’t implement GtkBuildable yet, thus, it cannot be added
via the UI file.
2014-07-31 01:06:10 +02:00
b762d93ee2 Add license to About dialog 2014-07-12 11:07:45 +02:00
fa7a87dd76 Add artists section to the About dialog
Also remove documentors as it was empty
2014-07-12 11:07:33 +02:00
f63d42dee9 Minor code beautification 2014-07-12 11:06:46 +02:00
b6af9a9d96 Refactor all gtk_message_dialog() calls to ag_app_message_dialog() 2014-07-11 00:34:12 +02:00
4db1ecff96 Code beautification
Truncate long lines. This is not finished yet, though!
2014-07-10 23:47:39 +02:00
2af46ece40 Remove WebKitWebView creation from Glade
The Glade template cannot assign an already created WebKitWebViewGroup
to the WebKitWebView it creates. Thus we need to create it manuallp
2014-07-10 23:33:22 +02:00
b8cc90912d Load default chart CSS to AgApp’s private member, web_view_group
This will make sure at least one CSS is loaded for each web view created
later.
2014-07-10 23:24:33 +02:00
e6aa43cba7 Add class private to AgApp 2014-07-10 23:20:23 +02:00
165cf260c9 Add ag_app_message_dialog() to create multi-purpose message dialogs 2014-07-04 22:31:59 +02:00
5da0699607 Move resource files to resources/ directory
This is to make them more managable
2014-07-03 23:13:52 +02:00
20cc731289 Move view changing functionality from GtkStackSwitcher into a view menu 2014-07-03 14:08:51 +02:00
9e3b4400a9 Add type cast to ag_window_open_chart_tab() call 2014-07-02 23:02:39 +02:00
0cc6344c37 Change to chart view when opening an existing chart 2014-07-02 19:15:54 +02:00
b2cab90dcb Add preferences window with option to turn off maximized windows
This is very limited right now. See README.md for other options to
integrate here (and throughout the app).
2014-06-30 22:51:15 +02:00
1cee8bf38c Merge branch 'master' into settings 2014-06-30 18:16:47 +02:00
f744cb0150 Upgrade GLib dependency to 2.38 2014-06-30 14:12:27 +02:00
cc7aed38c1 Add GTK message dialogs instead of g_warning() calls.
This is to enhance UX. Fix #9
2014-03-30 17:52:57 +02:00
847e1c419e Change deprecated GTK stock items to actual values 2014-03-30 09:47:21 +02:00
096111684e Updated for SWE-GLib 2.0 API 2013-10-04 00:16:55 +02:00
8313b4c2a6 Added skeleton for the preferences code 2013-09-22 20:53:58 +02:00
5a1ff8cee9 Added Help on pressing F1
This still has many things to do. The help files must be improved,
and the help function must be made context-aware (the current show_help()
function is already context-aware).
2013-09-22 13:51:21 +02:00
ea3b038b57 Uncrustified sources
Also, added astrognome-uncrustify.cfg for later use
2013-09-21 18:37:27 +02:00
8ef33d3dec Added hotkeys for tab switching
The hotkeys are the same as in Placidus, as the original Astrognome didn't
have any.
2013-09-20 12:41:21 +02:00
e180603a6b Sanitized action callback function names 2013-09-20 10:58:12 +02:00
8407ffadd3 Moved run_action() and application_activate_cb() to ag-app.c 2013-09-20 10:23:02 +02:00
d26f9f5d8b ag_app_open_chart() now saves the URI of the opened chart to the created window 2013-09-18 10:40:17 +02:00
c921e29c4a Created a Save As... menu item 2013-09-18 10:09:32 +02:00
160339d888 Moved chart loading into ag_chart_load_from_file(), where it was intended to be 2013-09-18 10:05:24 +02:00
707e7395b0 Finished chart loading code 2013-09-17 22:25:10 +02:00