Commit Graph

54 Commits

Author SHA1 Message Date
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
Přemysl Eric Janouch cf3e4ae473 Fix program messages and gtk-doc comments. 2011-01-28 17:50:21 +01:00
Přemysl Eric Janouch b782dae4b2 Make ld_canvas_new() return a GtkWidget reference.
For consistency with GTK+.
2011-01-24 17:22:37 +01:00
Přemysl Eric Janouch 33beece3ab Move the library toolbar to its own class. 2011-01-24 17:13:56 +01:00
Přemysl Eric Janouch 4a9a8e8f0a Include liblogdiag.h as it was an external lib. 2011-01-24 04:42:18 +01:00
Přemysl Eric Janouch 81f116ed12 Handle Edit menu actions (Delete, Select All). 2011-01-16 18:33:31 +01:00
Přemysl Eric Janouch 1201caf8a4 Use JsonObject for LdDiagramObject parameters.
Make LdDiagramObject a regular class.
2011-01-15 17:59:07 +01:00
Přemysl Eric Janouch 616c49a505 Make a separate library.
This is required for gtkdoc-scangobj. So far it's much like it's been
before, the main differences are that source files are in two directories
from now on and the build process has two stages.
2011-01-10 17:07:02 +01:00
Přemysl Eric Janouch 63b36a2b5b Use a central header.
$ time (make clean; make)

Before: ~8.0 seconds
After: ~8.1 seconds
2011-01-10 11:27:05 +01:00
Přemysl Eric Janouch d7c22f10d5 Fix drawing of symbol menus. 2011-01-10 05:19:32 +01:00
Přemysl Eric Janouch d785feeb82 Show names of symbols in the statusbar. 2011-01-10 04:58:32 +01:00
Přemysl Eric Janouch a3eaab63ff Draw category icons with style colors.
Previously the icons have been black in all themes.
2011-01-10 03:45:38 +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 54ef5ce450 Fix comments. 2011-01-09 07:08:39 +01:00
Přemysl Eric Janouch 9de3a0976d Ensure that the canvas is focused. 2011-01-09 05:52:27 +01:00
Přemysl Eric Janouch 96f7710c25 Introduce LdRectangle, LdPoint and LdPointArray.
Remove LdCanvasRect and LdSymbolArea.
2011-01-08 09:01:33 +01:00
Přemysl Eric Janouch 6b5bae881c Update copyright years. 2011-01-07 05:13:00 +01:00
Přemysl Eric Janouch fdf1ddbbb1 Move lines around. No functional change. 2011-01-04 23:05:38 +01:00
Přemysl Eric Janouch d3e5483c84 Make adding symbols to the diagram possible.
This required creating a simple framework for operations to LdCanvas.
It is probable that it's going to require some changes when other
operations are added. The basic idea behind it seems to be good, though.
2011-01-04 09:54:05 +01:00
Přemysl Eric Janouch f2f308f2f5 Make the symbol menu grab focus.
This way when the user clicks outside the menu when it is open,
the menu will close itself first.

Keyboard input is however still not handled.

The symbol menu should be redesigned.
2010-12-18 05:01:50 +01:00
Přemysl Eric Janouch 86e73f86c2 Rename LdDocument* to LdDiagram*.
My bad; this name is much more appropriate.
2010-12-16 11:34:02 +01:00
Přemysl Eric Janouch 4a946b3241 Implement diagram operations in UI.
* Now diagrams can be created, loaded and saved.
* Define descriptions and accelerators for actions.
* Set irrelevant actions unsensitive.
* Also remove redundant comments for clarity.
2010-12-16 06:10:28 +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 74e43ceee4 Add a "human-name" property to LdSymbolCategory.
Just as LdSymbol has a human name for localization purposes,
LdSymbolCategory also needs to have this property.

Use the human name in tooltips.
2010-12-11 02:44:00 +01:00
Přemysl Eric Janouch 3419680f25 Implement more of LdCanvas.
1. Add methods for coordinate translation between cairo/GtkWidget
   coordinates and LdDocument coordinates.
2. Draw the grid correctly (also make it significantly faster).
3. Place the canvas into a GtkScrolledWindow and register
   the set_scroll_adjustments signal in the GtkWidget base class.
4. Allow scrolling inside of an area of 200 x 200 units (for now).
   In the future, it should be possible to go to infinity.
2010-12-10 22:36:41 +01:00
Přemysl Eric Janouch 37d898fb1a Change LdSymbolArea members.
Now it contains coordinates of the top-left delimiting
point and computed dimensions (instead of coorinates of
both delimiting points).
2010-12-10 08:57:42 +01:00
Přemysl Eric Janouch 147cf2977a Initial LdDocument implementation.
The document maintains a list of LdDocumentObject objects.
2010-12-05 15:15:52 +01:00
Přemysl Eric Janouch 8f2dad4ead Added basic onscreen symbol menu.
So far it does not add symbols to the document,
as there is momentarily no interface for neither
the document nor the canvas.
2010-11-16 10:26:15 +01:00
Přemysl Eric Janouch 263aa9062e Formatting and naming changes in LdWindowMain. 2010-10-28 14:11:59 +02:00
Přemysl Eric Janouch 979308aa7f Manage LdLibrary children in a GSList.
The previous method of containment, that is using GHashTable,
did not list children in any particular order.

Also names of children were duplicated. One copy has been
stored as a hash table index and another was present in the
child itself.
2010-10-26 16:41:03 +02:00
Přemysl Eric Janouch e0e63649dc Redesign the library and related components.
This step is needed, since the current design is quite chaotic
and it would not be possible to finish the application.

There's still a lot to be done.

After this step, it's time to implement the rest of LdLua.
2010-10-26 13:58:33 +02:00
Přemysl Eric Janouch c0ec389b59 Renamed LdSymbolLibrary to LdLibrary. 2010-10-17 14:05:53 +02:00