Commit Graph

86 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 3465557a5b
Use GResources for the UI file and the LICENSE
- The About dialog now displays the licence.
 - The main UI file is now integrated into the binary.

The project needed some of its ugly CMake code back.
2021-11-01 12:20:16 +01:00
Přemysl Eric Janouch ee7be81434
Clean up 2021-10-29 00:24:12 +02:00
Přemysl Eric Janouch 59b5ff7020
Append ellipsis to the Print menu item
It opens a dialog.
2021-10-28 20:05:31 +02:00
Přemysl Eric Janouch 2bc9fe4f1d
Fix scaling to fit paper 2021-10-28 06:14:21 +02:00
Přemysl Eric Janouch 4f01392de5
Add basic print functionality
Sadly, the line width depends on the widget's DPI, which seems to
even cause uneven lines on Windows, where virtual printers claim
high DPI.  It might also be an unrelated problem.

Similarly, selected objects are exported highlighted.

Other than that, it works quite well.

Add a manifest to make the print dialog look nice with the older
GTK+ bundle we depend upon.

The RC file could theoretically be scanned for /\s+"([^"]+)"\s*$/,
unescaped, and the results configure_file()-stamped.
2021-10-28 05:57:27 +02:00
Přemysl Eric Janouch 6cd6ddbd1c
ld-window-main.c: clean up 2021-10-28 05:25:57 +02:00
Přemysl Eric Janouch 06e3c9e280
Bind # to toggling the view grid
As seen in Inkscape.
2021-10-27 18:38:33 +02:00
Přemysl Eric Janouch f7807cada2
Make the about dialog link work in Windows XP
For some weird reason, GTK+ is trying to connect to URLs first,
which typically won't succeed these days.
2021-10-26 07:37:50 +02:00
Přemysl Eric Janouch bc8ceebef7
Add clang-format configuration, clean up 2021-10-25 18:06:50 +02:00
Přemysl Eric Janouch da0a5c43dc
Add the user guide to the Help menu
The old GLib put up a good fight, it says "URIs not supported"
even for the file:// scheme.
2021-10-25 02:50:14 +02:00
Přemysl Eric Janouch 384dad7bd8
Get rid of extra semicolons after macros 2021-10-25 00:27:32 +02:00
Přemysl Eric Janouch 2d103ed454
Fix the file save dialog and translations 2021-10-22 22:23:59 +02:00
Přemysl Eric Janouch af14119165
Name change
Also some copyright years fix-ups/updates.
2020-09-28 04:49:03 +02:00
Přemysl Eric Janouch cc629fd160
Update copyright years 2018-06-25 03:06:21 +02:00
Přemysl Eric Janouch ced3913e68
Fix and update LICENSE 2017-02-03 23:06:48 +01:00
Přemysl Eric Janouch e74d582eca Fix the about dialog in GTK+ 3
Now we have to override the icon name property.
2015-02-09 20:28:12 +01:00
Přemysl Eric Janouch 733fb54580 Update copyright years 2015-01-20 23:19:06 +01:00
Přemysl Eric Janouch cd3599bd1b Silence other stupid deprecation warnings 2015-01-20 09:47:00 +01:00
Přemysl Eric Janouch e1225accf4 Fix a few deprecation warnings 2015-01-20 07:41:54 +01:00
Přemysl Eric Janouch 5c17944454 GTK+ 3: Fix compilation, scrolling, drawing 2015-01-19 04:00:06 +01:00
Přemysl Eric Janouch fa602c20ec Show something more helpful on file open error. 2012-10-09 18:06:00 +02:00
Přemysl Eric Janouch 0066917014 Support multiple filenames on command line.
Should work fine, although I doubt anyone would use it.
2012-10-09 18:03:28 +02:00
Přemysl Eric Janouch 366cfa3473 Show diagram zoom in the main window. 2012-10-09 07:06:52 +02:00
Přemysl Eric Janouch da3e53215b Load symbols from user XDG_DATA_HOME, too. 2012-10-09 06:40:16 +02:00
Přemysl Eric Janouch 295c18ae47 Update copyrights. 2012-10-08 10:35:09 +02:00
Přemysl Eric Janouch 733dfef8e0 Renaming.
LdCategoryViewIf -> LdCategoryView -> LdCategoryTreeView
2012-10-08 09:11:32 +02:00
Přemysl Eric Janouch 16d45a485f Add LdCategoryViewIf.
Deduplicates parts of LdCategory{,Symbol}View.
2012-10-08 08:07:51 +02:00
Přemysl Eric Janouch 492daa3ce3 Show symbol names in the statusbar again..
Not very clean but serves its purpose.
2012-10-08 07:29:58 +02:00
Přemysl Eric Janouch 24b4e9956b Add a usage hint to the main window. 2012-10-08 07:29:58 +02:00
Přemysl Eric Janouch 66aca31467 Change main window dimensions.
Fine-tuned for my Ubuntu, I admit.
2012-10-08 07:29:58 +02:00
Přemysl Eric Janouch 15d8c257d1 Add an LdCategory * argument to new() functions. 2012-10-08 07:29:58 +02:00
Přemysl Eric Janouch 3290aa877d Rename LdLibraryPane to LdCategoryView.
And make it load categories recursively using itself.
2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch 00a50737f3 Replace LdLibraryToolbar with LdLibraryPane. 2012-10-08 00:12:58 +02:00
Přemysl Eric Janouch a18b6d6f35 Start making a replacement for LdLibraryToolbar.
The main advantages are the lack of need to create an icon
for each category there is in the library and faster workflow.
2012-10-08 00:12:58 +02:00
Přemysl Eric Janouch d9ce2716ed Fix saving.
What the user expects (TM).
2012-08-12 16:33:49 +02:00
Přemysl Eric Janouch b3ccabe627 Clean up dead assignments. 2012-02-02 13:28:27 +01:00
Přemysl Eric Janouch b2223d6595 Integrate GSettings, remember View settings.
The org.logdiag ID has been chosen as I haven't found any specific rules
and com.github.logdiag seems not to be future-proof. This domain remains
available so far, anyway.

The schemas are compiled only when installed directly to CMAKE_INSTALL_PREFIX
to the root filesystem. When invoking `make install` with DESTDIR, only
the XML files are copied over as the schemas would have to be recompiled
later anyway.
2011-06-12 10:05:16 +02:00
Přemysl Eric Janouch 94cb6ee53a Add toggle actions to the View menu.
So far these settings are not saved anywhere.
2011-03-07 17:29:27 +01:00
Přemysl Eric Janouch 582b24562c Update translations.
Add translators to the About dialog.
2011-03-04 17:42:32 +01:00
Přemysl Eric Janouch 403a9d702a Disable LdDiagramView scrollbars when not needed. 2011-02-20 12:54:15 +01:00
Přemysl Eric Janouch fdb6418733 Reset view to center for new diagrams. 2011-02-19 22:49:20 +01:00
Přemysl Eric Janouch 781273c236 Open files from command line. 2011-02-19 22:49:20 +01:00
Přemysl Eric Janouch 7fa6efbaec Rename LdCanvas to LdDiagramView. 2011-02-19 22:49:20 +01:00
Přemysl Eric Janouch ebd4cd3a17 Various changes to LdWindowMain.
* Convert filenames from system locale.
* Internationalize.
* Split diagram_show_open_dialog().
2011-02-13 20:17:21 +01:00
Přemysl Eric Janouch 948e9d53d2 Update translation template. 2011-02-12 18:40:21 +01:00
Přemysl Eric Janouch 9a217e97c8 Change the way translations are done.
* Require gettext-tools to build.
* Depend on libintl on Win32.
2011-02-12 18:40:16 +01:00
Přemysl Eric Janouch 169a28cc23 Define github as the homepage for logdiag. 2011-02-07 18:03:15 +01:00
Přemysl Eric Janouch 2b0672a2cb Implement zooming in LdWindowMain.
Add convenience methods to LdCanvas.
2011-02-04 20:19:01 +01:00
Přemysl Eric Janouch c091f71f9a Offer the undo functionality in LdWindowMain.
Kill the "Export" action for now.
2011-02-01 14:52:27 +01:00
Přemysl Eric Janouch 400568ed7d Add some reminder comments. 2011-01-29 13:09:16 +01:00