Commit Graph

48 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 7499f92811
Close symbol paths where appropriate
Removes some ugliness in PDF exports, stemming from line thickness.
2021-11-02 10:36:17 +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 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 a4a0dd2106
Clean up
It turns out the RC detection snippet is no longer necessary
after the recent CMake version bump.

The "name" argument in the UI file is redundant, implied by "action".
2021-10-28 05:18:03 +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 47fb9653b8
Bump the CMake version requirement, fix Windows
- Add a missing runtime library for gettext-tools.
 - Remove the no longer necessary customized FindGettext.cmake,
   since the downloaded gettext binaries are new enough.
 - Make the installer at least ask to uninstall previous versions.
 - Adjust the PATH of tests so that they'll run on Windows directly.
 - Fix quoting so that the project will build inside paths with spaces.
 - Resolve a GSettings deprecation warning.
 - Update the README's build instructions as appropriate.
 - Require CMake 3.9 because of the README's suggestion to fix
   FindPkgConfig.cmake manually using separate_arguments(UNIX_COMMAND).

Tested build configurations:
 - native Arch Linux,
 - native Windows XP with the newest NSIS,
 - Arch Linux Mingw-w64 i686 Win32Depends.cmake NSIS cross-build + XP,
 - Arch Linux Mingw-w64 x86_64 MSYS2 NSIS cross-build + Windows 10.

Detected issues:
 - The file save dialog will not add the extension automatically,
   seen with MSYS2.
2021-10-22 20:08:51 +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 ef64c0427f Remove category icons. 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 a1b79a55d2 Change how Cairo is presented to Lua scripts.
Makes the whole thing a bit more stable and less weird.
2012-08-12 06:10:27 +02:00
Přemysl Eric Janouch 4e440eb35b Set StartupNotify=true in the desktop file. 2011-06-12 11:48:31 +02: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 3430bf30bb Add German translation. 2011-03-07 17:29:27 +01:00
Přemysl Eric Janouch 0640067bf0 Add Polish translation. 2011-03-07 17:29:27 +01: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 e40591feb8 Add the ohmmeter back again.
This time, it's a regular curve.
2011-03-07 17:29:26 +01:00
Přemysl Eric Janouch 01dea6fb2e Add separate plus and minus signs. 2011-03-07 17:29:26 +01:00
Přemysl Eric Janouch df5f14060b Add Slovak translation. 2011-03-07 17:29:19 +01:00
Přemysl Eric Janouch bd1b3adf56 Update symbol library.
* Workaround the Windows pangocairo bug by drawing text
  with curves. Remove some of the meters.
* Remove terminal lines from meters and voltage sources,
  add vertical terminal points instead.
2011-02-24 08:14:48 +01:00
Přemysl Eric Janouch 8f8866ffc4 Fix transistor symbols. 2011-02-19 22:49:21 +01:00
Přemysl Eric Janouch 58e3e43c15 Change voltage source symbols. 2011-02-19 22:49:20 +01:00
Přemysl Eric Janouch 6a8238846c Add a symbol for junctions. 2011-02-19 22:49:20 +01:00
Přemysl Eric Janouch ac56c16ab8 Update the symbol library. 2011-02-14 10:46:57 +01:00
Přemysl Eric Janouch 5fd66ada46 Add a header image for NSIS. 2011-02-13 17:46:53 +01:00
Přemysl Eric Janouch b7875c361f Update the symbol library, add trivial text API. 2011-02-12 18:26:15 +01:00
Přemysl Eric Janouch 299ce010bd Update the symbol library.
* Add bipolar, IGFET and JFET transistors.
* Add more variants to some symbols.
* Add a symbol for a simple terminal.
* Avoid unneccessary stroke() calls.
* Fix comments.
2011-02-11 18:37:00 +01:00
Přemysl Eric Janouch 39fb4bb56f Make all variables in Lua scripts local. 2011-02-09 14:18:22 +01:00
Přemysl Eric Janouch 847945f051 Split the inductor symbol in two, remove pads. 2011-02-07 13:53:55 +01:00
Přemysl Eric Janouch 00d9072c5b Add some miscellaneous symbols. 2011-02-07 13:53:49 +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 6ff28b0992 Register a MIME type. 2011-01-30 15:29:19 +01:00
Přemysl Eric Janouch 37e2c5f01f Generate more icons.
* Add automatic icon generation to CMakeLists.txt.
  These icons are generated from the scalable SVG image.
* Add pregenerated icons to the tree.
* Link an icon to the Windows binary.
2011-01-22 18:07:12 +01:00
Přemysl Eric Janouch a7cc4ef2a1 Add a README.md file.
Describe the application as a "schematic editor" everywhere.
2011-01-16 19:54:53 +01:00
Přemysl Eric Janouch 63420c26cf Fix the .desktop file.
Missing trailing colon in the Categories entry.
2011-01-16 18:33:31 +01:00
Přemysl Eric Janouch 68dce38450 Add an application icon. 2011-01-16 18:33:31 +01:00
Přemysl Eric Janouch 73b611a844 Add a View menu to LdWindowMain, disabled so far. 2011-01-09 13:54:20 +01:00
Přemysl Eric Janouch 10280a1949 Update category icons.
Change line width and position of shapes,
so they appear a bit sharper in the application.

Save them in plain SVG, not Inkscape SVG.
2011-01-09 13:49:55 +01:00
Přemysl Eric Janouch e83cadd03b Add an inductor symbol. 2011-01-09 05:05:31 +01:00
Přemysl Eric Janouch 0b3f6503bb Add basic logical symbols (NOT, AND, OR). 2011-01-07 16:38:21 +01:00
Přemysl Eric Janouch 713f2821e4 Fix the desktop file.
The "Exec" and "Name" entries were swapped.
2011-01-04 06:06:26 +01:00
Přemysl Eric Janouch a56bfd6087 LdWindowMain cleanup.
* Restructure the initialization code.
* Move LdCanvas event mask setting to ld-canvas.c.
* Remove some redundant code.
* Use consistent naming.
* Update comments.

Practically no functional change.
2010-12-12 17:56:59 +01:00
Přemysl Eric Janouch afacad693d Add a main toolbar.
So far it has no special powers. This should change in the future.
2010-12-11 04:15:23 +01:00
Přemysl Eric Janouch e6230576b7 Add category.json files for testing categories. 2010-12-11 03:49:53 +01:00
Přemysl Eric Janouch aeb6e7ed58 Add a few symbols for testing.
The lucky ones are: capacitor, resistor and diode.

More symbols can be expected later, when more cairo
functions are exported to Lua and relevant standards
become accessible to me.
2010-12-10 23:27:45 +01:00
Přemysl Eric Janouch b66704114e Little improvements, overall cleanup. 2010-09-19 19:12:36 +02:00
Přemysl Eric Janouch 55c25ae1bd Added basic loading of categories.
Added two empty sample categories with corresponding icons.
The categories are now being loaded into the toolbar
in the main program window.
2010-09-15 19:31:57 +02:00
Přemysl Eric Janouch b230b69539 Initial commit 2010-09-13 19:24:53 +02:00