Commit Graph

97 Commits

Author SHA1 Message Date
Přemysl Eric Janouch 5c17944454 GTK+ 3: Fix compilation, scrolling, drawing 2015-01-19 04:00:06 +01:00
Přemysl Eric Janouch c41f3ae529 Switch to GTK3 via pkg-config, start the port 2015-01-19 00:02:48 +01:00
Přemysl Eric Janouch 6e6cf05093 We Lua 5.2 now
Lua 5.1 seems to have been obsoleted.  Luckily this was pretty simple.
2015-01-18 23:29:53 +01:00
Přemysl Eric Janouch f0ac99072e Win32 bugfixes.
* Force redraw on LdCategorySymbolView size allocation.
* Fix an infinite loop sometimes caused by update_adjustments().
2012-10-10 20:35:52 +02:00
Přemysl Eric Janouch 295c18ae47 Update copyrights. 2012-10-08 10:35:09 +02:00
Přemysl Eric Janouch b19326a1e0 Code reordering. 2012-10-08 10:10:29 +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 3b85eeec8d Add drag and drop support for symbols. 2012-10-08 07:29:58 +02:00
Přemysl Eric Janouch c12c6fbf56 Make LdCategorySymbolView show symbols. 2012-10-08 07:29:58 +02:00
Přemysl Eric Janouch 09d6bda3db Add ld_category_get_path() and use it. 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 ec4f78c008 Stub LdCategorySymbolView. 2012-10-08 07:29:58 +02:00
Přemysl Eric Janouch 819917536e Get rid of the `expander prefix' property.
And make the root be named after whatever the path separator is set to.
2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch 8acfeae8c8 Make child Categories point back to their parents. 2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch 47023938ca Fix property type in LdCategoryView. 2012-10-08 07:29:57 +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 77aad430ef Add `changed' signals to LdCategory. 2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch 2156a92a09 Optimize removal from LdCategory. 2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch 9569d96cd6 Rename LdSymbolCategory to LdCategory. 2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch 6a633c8321 Renaming, order categories by name.
So at least in English the order will make some sense.
And it shall stay consistent.
2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch 0e952b084c Load categories recursively. 2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch ef64c0427f Remove category icons. 2012-10-08 07:29:57 +02:00
Přemysl Eric Janouch a915bf4496 Remove category management from LdLibrary.
Now it uses a special hidden `/' root category.

Also removed ld_library_clear() momentarily, for it has no users.
2012-10-08 07:29:43 +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 6a24ede141 Ignore double/triple clicks in LdDiagramView.
Fixes fast rotating.
2012-10-08 00:12:58 +02:00
Přemysl Eric Janouch 6c925b7092 Clean up LdDiagram.
* Don't emit signals when disposing.
* Remove some leftovers.
2012-10-08 00:04:47 +02:00
Přemysl Eric Janouch 4196a10ece Get more GTK+ 3 ready and respect seals. 2012-09-05 19:58:51 +02:00
Přemysl Eric Janouch cf5260990c Improve code in LdDiagram a bit. 2012-08-31 14:04:09 +02:00
Přemysl Eric Janouch 20c2595f2d Check symbol names in LdLua during registration. 2012-08-31 14:04:09 +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 9366c42026 Do name collision checking more properly. 2012-08-12 01:29:48 +02:00
Přemysl Eric Janouch bb224bafd0 More fixing.
* Fix a resource leak in LdLibrary.
* Add missing property change notifiers
  to ld_diagram_object_{get,set}_storage().
* Don't unref the parameter in ld_symbol_category_remove_{symbol,subcategory}
  if it wasn't actually removed from the internal list.
* Fix a cyclic dependency problem in LdDiagram.
2012-08-12 01:01:13 +02:00
Přemysl Eric Janouch f55afb6542 Put subcategories and symbols in different lists.
Removes some ugliness from the code.
2012-08-11 20:17:10 +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 a2b898b610 Change the cursor when scrolling the view.
For consistency with other GTK+ applications.
2011-06-09 21:56:38 +02:00
Přemysl Eric Janouch d8fd4430fc Add scrolling using the middle mouse button.
A bit of refactoring, too.
2011-06-09 21:11:41 +02:00
Přemysl Eric Janouch 82bf779405 Disallow wheel zooming when holding mouse buttons. 2011-06-09 21:11:41 +02:00
Přemysl Eric Janouch cd66c3d84a Ignore terminals when hovering above selection.
Also fix checking for the shift key and rename the "object"
variable to "object_at_cursor" in button handlers.
2011-06-09 21:11:41 +02:00
Přemysl Eric Janouch c8caca073f Add API for turning off the grid. 2011-03-07 17:29:26 +01:00
Přemysl Eric Janouch 6ae08ee425 Glue to terminal points when creating connections. 2011-03-07 17:29:26 +01:00
Přemysl Eric Janouch 89b20380d3 Allow rotating of symbols while placing them. 2011-03-07 17:29:26 +01:00
Přemysl Eric Janouch 95b92e12f9 Fix gtk-doc comments. 2011-02-20 13:39:44 +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 f9827e2ff3 Refactor oper_connect_motion(). 2011-02-20 12:41:45 +01:00
Přemysl Eric Janouch f074bc6742 Also find terminals on ends of connections. 2011-02-19 22:49:21 +01:00
Přemysl Eric Janouch 8aef3fc772 Use "typedef struct" in ld-diagram-view.c. 2011-02-19 22:49:20 +01:00