Commit Graph

170 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 9003f36ba2
Tidy up GSettings 2022-07-25 13:31:32 +02:00
Přemysl Eric Janouch de291ffddb
Reset view position on opening a file 2021-11-02 11:28:48 +01:00
Přemysl Eric Janouch baaca4c58f
Add all opened files to the recent list
The GTK+ file open/save dialog has already been adding them,
but opening files from the command line would circumvent that path.
2021-11-02 11:24:40 +01:00
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 08cf0ef2e6
Make development builds find the program icon 2021-10-26 06:32:29 +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 8815d72db7
Make note of the recent g_win32_get_command_line() 2021-10-14 00:36:39 +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 12ac611a14
Fix compiler warning 2018-06-27 04:57:55 +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 b0ecd81212 Maintenance.
* Fix setting the GSETTINGS_SCHEMA_DIR environment variable.
* Use g_value_take_boxed() instead of deprecated
  g_value_set_boxed_take_ownership().
* Remove an unused variable.
* Clean up load_category() a bit.
2012-08-11 07:25:54 +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 e1e9a6d319 Fix make-template.sh.
It needs the bash shell interpreter to run.
2011-06-11 11:46:43 +02:00
Přemysl Eric Janouch 2509f0af52 Workaround the ANSI codepage limitation on Win32. 2011-06-10 14:52:22 +02:00
Přemysl Eric Janouch 5d1c8bbf75 Change the way command line arguments are parsed. 2011-06-10 14:51:42 +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