Commit Graph

64 Commits

Author SHA1 Message Date
Gergely Polonkai 8fe642fe95 Create a selection menu 2014-10-19 02:15:38 +02:00
Gergely Polonkai c5d27711b5 Move app menu to gtk/menus.ui
This way it gets automatically loaded, and the setup_menu() function can
be removed from AgApp.
2014-10-19 02:15:01 +02:00
Gergely Polonkai e3bd75ef0d Clear chart icon view before loading the list
Fixes #94
2014-09-29 23:40:44 +02:00
Gergely Polonkai 41f054bf6f Add GPL headers to all source files 2014-09-26 15:01:19 +02:00
Gergely Polonkai 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
Gergely Polonkai 944d623379 Give every web view a separate user content manager 2014-09-13 01:05:08 +02:00
Gergely Polonkai 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
Gergely Polonkai 760f0e8663 Add Alt-Left and Back accels for the back button 2014-09-06 10:58:31 +02:00
Gergely Polonkai b9791f1436 Unify accels for the view changer menu 2014-09-06 10:58:31 +02:00
Gergely Polonkai 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
Gergely Polonkai 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
Gergely Polonkai 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
Gergely Polonkai 8aeec229f3 Switch to WebKit 4.0 API 2014-08-20 20:23:14 +02:00
Gergely Polonkai 88fb58a527 Import Placidus charts 2014-08-10 14:31:38 +02:00
Gergely Polonkai 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
Gergely Polonkai a3927458b4 Make ag_app_buttoned_dialog()'s first parameter nullable 2014-08-10 09:46:14 +02:00
Gergely Polonkai 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
Gergely Polonkai 0d1358303a ag_app_import_chart() now saves the chart immediately after importing 2014-08-03 11:03:23 +02:00
Gergely Polonkai 377a2e1e8a Rename Open functionality to Import 2014-08-02 01:41:33 +02:00
Gergely Polonkai 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
Gergely Polonkai 1628a71f8b Remove URI from AgWindowPrivate 2014-07-31 21:22:44 +02:00
Gergely Polonkai 8533b2f887 Load chart list when opening a new window 2014-07-31 01:06:24 +02:00
Gergely Polonkai 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
Gergely Polonkai b762d93ee2 Add license to About dialog 2014-07-12 11:07:45 +02:00
Gergely Polonkai fa7a87dd76 Add artists section to the About dialog
Also remove documentors as it was empty
2014-07-12 11:07:33 +02:00
Gergely Polonkai f63d42dee9 Minor code beautification 2014-07-12 11:06:46 +02:00
Gergely Polonkai b6af9a9d96 Refactor all `gtk_message_dialog()` calls to `ag_app_message_dialog()` 2014-07-11 00:34:12 +02:00
Gergely Polonkai 4db1ecff96 Code beautification
Truncate long lines. This is not finished yet, though!
2014-07-10 23:47:39 +02:00
Gergely Polonkai 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
Gergely Polonkai 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
Gergely Polonkai e6aa43cba7 Add class private to AgApp 2014-07-10 23:20:23 +02:00
Gergely Polonkai 165cf260c9 Add ag_app_message_dialog() to create multi-purpose message dialogs 2014-07-04 22:31:59 +02:00
Gergely Polonkai 5da0699607 Move resource files to resources/ directory
This is to make them more managable
2014-07-03 23:13:52 +02:00
Gergely Polonkai 20cc731289 Move view changing functionality from GtkStackSwitcher into a view menu 2014-07-03 14:08:51 +02:00
Gergely Polonkai 9e3b4400a9 Add type cast to ag_window_open_chart_tab() call 2014-07-02 23:02:39 +02:00
Gergely Polonkai 0cc6344c37 Change to chart view when opening an existing chart 2014-07-02 19:15:54 +02:00
Gergely Polonkai 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
Gergely Polonkai 1cee8bf38c Merge branch 'master' into settings 2014-06-30 18:16:47 +02:00
Gergely Polonkai f744cb0150 Upgrade GLib dependency to 2.38 2014-06-30 14:12:27 +02:00
Gergely Polonkai 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
Gergely Polonkai 847e1c419e Change deprecated GTK stock items to actual values 2014-03-30 09:47:21 +02:00
Gergely Polonkai 096111684e Updated for SWE-GLib 2.0 API 2013-10-04 00:16:55 +02:00
Gergely Polonkai 8313b4c2a6 Added skeleton for the preferences code 2013-09-22 20:53:58 +02:00
Gergely Polonkai 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
Gergely Polonkai ea3b038b57 Uncrustified sources
Also, added astrognome-uncrustify.cfg for later use
2013-09-21 18:37:27 +02:00
Gergely Polonkai 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
Gergely Polonkai e180603a6b Sanitized action callback function names 2013-09-20 10:58:12 +02:00
Gergely Polonkai 8407ffadd3 Moved run_action() and application_activate_cb() to ag-app.c 2013-09-20 10:23:02 +02:00
Gergely Polonkai 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
Gergely Polonkai c921e29c4a Created a Save As... menu item 2013-09-18 10:09:32 +02:00