Commit Graph

516 Commits

Author SHA1 Message Date
Matthias Koefferlein a7aa99e5e2 Yet another compiler specific fix 2020-07-31 07:51:23 +02:00
Matthias Koefferlein c81e462b60 Another compiler specific fix 2020-07-31 07:48:34 +02:00
Matthias Koefferlein 37544e5e23 Merge branch 'master' into lefdef-enhancments 2020-07-31 00:58:24 +02:00
Matthias Koefferlein f2b678cb7b Fixed master builds on Qt 4 2020-07-31 00:15:38 +02:00
Matthias Koefferlein 7d2715401f Fixed compile issue with some gcc's 2020-07-30 23:59:08 +02:00
Matthias Koefferlein 89745fd0de Merge branch 'master' into lefdef-enhancments 2020-07-18 09:21:16 +02:00
Matthias Koefferlein 3dff7549f2 Implemented #588: Netlist browser enhancements
1. The netlist browser now got events for
   selection and probe events
2. The netlist browser was overhauled to support
   "infinite depth" views
3. Ambiguities are not shown as errors now
4. New classes for support netlist object
   selections and the netlist browser.

Multiple selections for netlist browser.
2020-07-16 22:53:59 +02:00
Matthias Koefferlein c8a4d25b51 WIP: enabling selection_changed event 2020-07-15 00:35:38 +02:00
Matthias Koefferlein f8c2afaad8 Using NetlistObjectPath for probe_event. 2020-07-15 00:10:42 +02:00
Matthias Koefferlein be5f03b1f4 Netlist browser: Paths for probing, cell contexts for highlighting, probe_net with initial circuit (not just top one) 2020-07-14 23:06:26 +02:00
Matthias Koefferlein a10d56e6b6 WIP: netlist browser - net object paths, single + pairs, tests 2020-07-13 22:11:10 +02:00
Matthias Koefferlein 2762daf14f WIP: fixed tests, fixed an assertion with null nets 2020-07-12 22:32:01 +02:00
Matthias Koefferlein f54c03f4ca WIP: fixed some segfaults. 2020-07-12 21:33:02 +02:00
Matthias Koefferlein dcdf9a8ec1 WIP: paths for tree model too 2020-07-12 21:06:03 +02:00
Matthias Koefferlein 27d1f2fac1 WIP: same sorting of subcircuit connections and circuit pins. 2020-07-12 10:32:46 +02:00
Matthias Koefferlein 8bb7342147 WIP: less nodes. 2020-07-12 10:15:21 +02:00
Matthias Koefferlein 98f808d585 WIP: connections of subcircuits are separate node now, pins and terminals show up as nets. 2020-07-12 09:28:42 +02:00
Matthias Koefferlein f00f5c76b8 WIP: netlist browser tree, highlights etc. 2020-07-12 01:22:22 +02:00
Matthias Koefferlein 62ed7b9def Fixed tests. 2020-07-11 19:07:28 +02:00
Matthias Koefferlein f9fa3d3aa3 WIP: some safety 2020-07-11 14:41:42 +02:00
Matthias Koefferlein 74b87d536e Fixed unit tests partially. 2020-07-11 14:31:56 +02:00
Matthias Koefferlein fde90c66e1 Better handling of pin swapping in netlist browser 2020-07-11 13:21:23 +02:00
Matthias Koefferlein aaa8352a40 Enhancements for netlist tree view - deep hierarchy, no 'failing' terminals on ambiguous device terminals 2020-07-11 00:54:26 +02:00
Matthias Koefferlein 6021a66c40 New node hierarchy for netlist browser. 2020-07-09 00:55:38 +02:00
Matthias Koefferlein 6aff74c844 Merge branch 'master' into issue-588 2020-07-08 23:29:27 +02:00
Matthias Köfferlein 5dce0d8384
Implemented #603 (Coordinates for adjust origin) (#604) 2020-07-05 18:42:08 +02:00
Matthias Köfferlein 6365ddfe82
Fixed #591 (two topics for macro editor) (#595)
* Fixed #591 (crash on Macro/Add Location)

The main reason was that the QSortFilterProxyModel is very sensitive
to the order of signals it receives from the proxy model.

In this case, dataChanged() must not be send between layoutAboutToBeChanged()
and layoutChanged(). This happened implicitly during load() of a macro while
scanning the freshly added folder.

* Fixed another part of #591: ability to disable template selection pop-up in macro editor. Tied to the tip window now - if this is dismissed, no template selection dialog will be shown.
2020-07-03 23:41:52 +02:00
Matthias Köfferlein e744eb32d1
Merge pull request #580 from KLayout/drawing-performance2
Drawing performance2
2020-06-28 16:14:48 +02:00
Matthias Koefferlein 613c95e9a3 WIP: enhanced netlist model 2020-06-18 23:50:50 +02:00
Matthias Koefferlein 649b234644 WIP: enhanced netlist model 2020-06-18 23:46:50 +02:00
Matthias Koefferlein f4495274ab WIP: refactoring for more comfortable net browser 2020-06-17 23:20:43 +02:00
Matthias Koefferlein 03bf0a557e WIP: refactoring for more comfortable net browser 2020-06-17 23:14:20 +02:00
Matthias Koefferlein fd5c659ea6 WIP: refactoring for more comfortable net browser 2020-06-16 23:13:52 +02:00
Matthias Koefferlein 23e9932c87 Consistent naming of events: on_... 2020-06-15 01:29:05 +02:00
Matthias Koefferlein 61c9c12414 WIP+Bugfix
1. Bugfix: avoid an internal error because in set_db highlight()
   was called before setup_trees(). Error was:
   Internal error: ../../../src/laybasic/laybasic/layNetlistBrowserPage.cc:387 model != 0 was not true in LayoutView::show_l2ndb

2. Provide GSI binding for lay::NetlistBrowserDialog
2020-06-14 23:31:44 +02:00
Matthias Koefferlein 880b9904cf WIP Netlist probing will deliver an instantiation path now. 2020-06-14 22:04:16 +02:00
Matthias Koefferlein d462a442a8 LEF/DEF reader
More consistently ignore the settings from the "Rule based layer mapping".
So if a map file is given, the map file statements shall not be overridden
by rules from the rule-based mapping tab.
2020-06-13 15:39:41 +02:00
Matthias Koefferlein b72f819d57 Fixed a potential segfault. 2020-06-06 10:25:20 +02:00
Matthias Koefferlein 5992a9b509 Merge branch 'master' into lefdef-enhancments 2020-06-05 14:05:13 +02:00
Matthias Köfferlein 852f5c438b
Implemented #560 (multiple technologies on libraries) (#576)
* First implementation.

* PORT BACK: fixed a few flaws (fixed-width side panel ..)

1. On "save as" the filename displayed in the cell view selection box
   was not updated
2. The width of the library and cellview panel could not be reduced
   below the width of the combo boxes in the headers. So the
   panels might have become pretty wide without being able to reduce
   them.

* Implemented #560 (multiple techs on libraries)
2020-06-05 10:58:53 +02:00
Matthias Koefferlein 999c065262 Introducing iterated arrays for instances
Iterated instances are created for OASIS files
using irregular repetitions in viewer mode.

Reason: this way, the same drawing optimization
than for iterated shape arrays can be applied.

As this is a new API feature, some adjustments
had to be made to incorporate them into the
code.
2020-06-04 12:17:34 +02:00
Matthias Koefferlein cdf4d08fd3 WIP
* Maybe fixed a performance issue on box-trees: the iterator wasn't
  going down to the very bottom of the tree on initialization
* Added array quad skipping in display of shape arrays
2020-06-01 23:28:04 +02:00
Matthias Koefferlein d7af7fc5c0 Merge branch 'lefdef-enhancments' 2020-06-01 13:37:45 +02:00
Matthias Koefferlein a9c0616aa0 WIP: more changes 2020-05-31 10:37:30 +02:00
Matthias Koefferlein 4c13bb96a0 WIP: refactoring - texts for net extractor. 2020-05-20 00:21:06 +02:00
Matthias Köfferlein 9f4ccaaedc
Issue #535 (Image handling enhancements) (#551)
* Menu item to hide or show all images

* Images: asymmetric color nodes.

* Added RBA::image::from_s for reading image back from string. Added tests.

* Added image file reader test (RBA)

* Added lyimg format for image file persistence.

* Small fix of unit tests.

* Added GSI binding for new image features and tests.

* Save and load for .lyimg formats in image properties dialog.
2020-05-02 13:45:20 +02:00
Matthias Koefferlein 0e68b910fa Merge branch 'master' into lefdef-enhancments 2020-05-01 16:00:58 +02:00
Matthias Koefferlein 88330587a3 Fixed build errors. 2020-04-26 00:26:09 +02:00
Matthias Koefferlein fe2e642e66 Fixed a 'value never read' issue. 2020-04-25 23:10:46 +02:00
Matthias Koefferlein f1fa81bead Fixed a 'value never read' issue. 2020-04-25 23:09:41 +02:00
Matthias Koefferlein 4c6f1475b1 Made rba:layLayoutView test functional without qtbindings enabled. 2020-04-25 19:45:02 +02:00
Matthias Koefferlein f6140055d6 Modified reader scheme for FOREIGNCELL 2020-04-24 23:21:27 +02:00
Matthias Koefferlein 73521bc0dc Bugfix: 'Delete Layer' was mapped incorrectly to 'Edit Layer Specification' 2020-04-18 22:59:06 +02:00
Matthias Koefferlein 0066381b40 Provide a LayoutView constructor even without Qt bindings enabled 2020-04-18 22:56:34 +02:00
Matthias Koefferlein 2cdcf621d8 D25 tech component editor: line numbers shown, more syntax variants 2020-04-18 00:37:15 +02:00
Matthias Koefferlein ca2b0cd96a Added tests for tech component, syntax highlighter fixed. 2020-04-17 16:24:56 +02:00
Matthias Koefferlein b2216ec372 WIP: tech component + editor. 2020-04-17 11:15:50 +02:00
Matthias Koefferlein 27109312cf Avoid a runtime warning for missing QWidget binding without Qt bindings compiled in 2020-04-05 18:29:55 +02:00
Matthias Koefferlein d1f1cf3031 Fixed a refactoring damage: the application mode indicator did not follow programmatic changes. 2020-04-05 14:01:44 +02:00
Matthias Koefferlein 14b6d58a09 Bugfix: paste was always paste_interactive 2020-04-05 13:23:22 +02:00
Matthias Koefferlein cc6b23bffd MERGE: fixed a typo in the undo title. 2020-04-01 23:40:00 +02:00
Matthias Koefferlein 86a3150aba Fixed .pro files 2020-03-29 09:03:02 +02:00
Matthias Koefferlein 53f69ea90d Fixed a segfault in the unit tests (related to future branch) 2020-03-28 22:49:06 +01:00
Matthias Koefferlein 8afd907abb Fixed builds 2020-03-15 23:27:24 +01:00
Matthias Koefferlein c10ccccdf7 Merge branch 'app-refactoring' into doc-args 2020-03-15 21:32:39 +01:00
Matthias Koefferlein 53c81cc572 Got rid of most of the @args 2020-03-14 21:50:47 +01:00
Matthias Koefferlein 8a95b2e6f7 WIP: wording. 2020-02-19 09:22:04 +01:00
Matthias Koefferlein 4782450170 WIP: args notation. 2020-02-19 09:13:25 +01:00
Matthias Koefferlein 7913e7cf82 Added unit tests. 2020-02-19 01:06:39 +01:00
Matthias Koefferlein 5853fecf37 Two bugs fixed: tech selection did not happen, enable all/disable all did not work 2020-02-13 00:53:20 +01:00
Matthias Koefferlein 0059d1bf24 Basic refactoring: Action -> Action* 2020-02-13 00:16:37 +01:00
Matthias Koefferlein c801df7f7b WIP: fixed assertion in klayout_main test. 2020-02-11 00:39:19 +01:00
Matthias Koefferlein 9cb81ce807 WIP: further refactoring. 2020-02-10 00:38:48 +01:00
Matthias Koefferlein 45b6a72bee WIP: further refactoring. 2020-02-10 00:07:41 +01:00
Matthias Koefferlein e8a875ccb5 WIP: further refactoring. 2020-02-09 01:35:44 +01:00
Matthias Koefferlein a44535e009 WIP: further refactoring. 2020-02-08 23:01:42 +01:00
Matthias Koefferlein 85789a386b WIP: further refactoring. 2020-02-08 22:15:09 +01:00
Matthias Koefferlein 64a09e07f9 WIP: refactoring ongoing. 2020-02-08 00:02:49 +01:00
Matthias Koefferlein a14e90f367 WIP: refactoring ongoing - starts looking good :) 2020-02-07 23:52:32 +01:00
Matthias Koefferlein a2d4b02238 WIP: refactoring ongoing. 2020-02-07 19:05:45 +01:00
Matthias Koefferlein 24ad1b2d26 WIP: refactoring ongoing. 2020-02-07 18:46:35 +01:00
Matthias Koefferlein 4210198179 WIP: refactoring ongoing. 2020-02-07 17:33:53 +01:00
Matthias Koefferlein ce25d51763 WIP: refactoring ongoing. 2020-02-07 01:41:03 +01:00
Matthias Koefferlein b604624123 WIP: refactoring ongoing. 2020-02-07 01:32:05 +01:00
Matthias Koefferlein 68472e6e14 WIP: refactoring ongoing. 2020-02-07 01:27:24 +01:00
Matthias Koefferlein 674d4b45ad WIP: refactoring ongoing. 2020-02-07 01:00:46 +01:00
Matthias Koefferlein d6589f1d0e WIP: refactoring ongoing. 2020-02-07 00:41:37 +01:00
Matthias Koefferlein 4f03710f65 WIP: target will be version 0.27. 2020-02-05 00:02:12 +01:00
Matthias Koefferlein b2e6085ba1 WIP: not quite further ... 2020-02-04 23:54:29 +01:00
Matthias Koefferlein 22b3a5face WIP: refactoring - at least some local context menus for detached views 2020-02-04 21:33:27 +01:00
Matthias Koefferlein 0f69c24e79 WIP: avoids a segfault because of missing manager 2020-02-04 20:50:46 +01:00
Matthias Koefferlein f6a6acd20e WIP: new LayoutView features for pya/RBA. 2020-02-04 00:33:07 +01:00
Matthias Koefferlein cc37ecfd17 Fixed titles of file dialogs. 2020-01-28 23:45:40 +01:00
Matthias Köfferlein 80b0eae937
Merge pull request #469 from KLayout/issue-464
Fixed #464 (problems building a layer node tree with 'add_child')
2020-01-05 01:03:29 +01:00
Matthias Köfferlein db1d05282d
Merge pull request #467 from KLayout/issue-466
Issue 466
2020-01-05 01:03:10 +01:00
Matthias Köfferlein b012e90def
Merge pull request #470 from KLayout/issue-463
Issue 463
2020-01-05 01:02:32 +01:00
Matthias Koefferlein b8c82c4f8b Updated copyright notice to 2020 2020-01-05 00:59:43 +01:00
Matthias Koefferlein cea5dbc0b4 Fixed #463 (Can't configure color of third-level layer groups) 2020-01-05 00:51:06 +01:00
Matthias Koefferlein 0285a5195c Fixed #464 (problems building a layer node tree with 'add_child')
The reason was a synchronization issue.

Actually "LayerPropertiesNodeRef" is not a reference, but
a mirror copy of the LayerPropertiesNode the reference points
to. Changes to the original must be synchronized into the
reference and back.

This concept is a tribute to the original implementation and
the node reference was a convenience add-on to the iterator-
based API.

Better solution in general is to replace the LayerPropertiesNodeRef
concept with a real reference.
2020-01-04 19:39:09 +01:00
Matthias Koefferlein 09f97aa286 Fixed #466 (Segfault when accessing a wrong layer tab) 2020-01-04 12:33:14 +01:00
Matthias Koefferlein 717470a389 Enhancement of the "interactive" (infix) modes
1.) Copy & Cut will now take the selection from
    the transient selection if no real selection is present
2.) Hence, Copy & Cut are always enabled
3.) The same if true for duplicate
4.) Move interactive will also act immediately on the transient
    selection.
2019-12-05 00:36:46 +01:00
Matthias Köfferlein 2fa545d80b
Merge pull request #435 from KLayout/issue-429
Issue 429
2019-12-02 21:15:05 +01:00
Matthias Köfferlein e061a0a932
Merge pull request #433 from KLayout/wip
Some enhancements
2019-12-02 21:14:35 +01:00
Matthias Köfferlein e7ddf3b64f
Merge pull request #431 from KLayout/issue-426
Implemented #426 (feature request: group techs)
2019-12-02 21:12:40 +01:00
Matthias Köfferlein ebb19879e9
Merge pull request #430 from KLayout/issue-428
Issue 428
2019-12-02 21:12:22 +01:00
Matthias Koefferlein 904bbf15a1 Refinement of tech management and MAG reading
- The MAG reader now has access to the details of the proposed
  technology (set in KLayout), specifically inside library paths
  ($(tech_name), $(tech_dir)). This allows setting the MAG reader
  path relative to the technology path.
- If no specific technology is set before MAG files are read and
  the technology listed there is found in KLayout, KLayout will
  attach the layout to this technology.
2019-12-01 18:19:55 +01:00
Matthias Koefferlein c6ede46fd0 WIP: substantial changes
- force lower-case layer names to allow CIF/MAG loop (CIF needs
  upper-case layer names, MAG doesn't)
- reverted CIF reader to standard
- new options for writer: tech, "zero timestamp".
- file name MUST be consistent with one cell name.
  Reason: it's not possible to derive the initial
  cell from the given options, so without the file name
  being consistent, we can't know what to write there.
  Basically the file name rather supplies the path.
2019-11-30 00:09:44 +01:00
Matthias Koefferlein 211524a0c0 WIP: reader starts becoming functional. 2019-11-26 01:03:24 +01:00
Matthias Koefferlein aece8b299f WIP: generalized code. 2019-11-25 19:54:24 +01:00
Matthias Koefferlein 4fe5a96596 Implemented #426 (feature request: group techs)
The tech group is a new XML tag "<group>...</group>".
This tag is editable in the tech "general" page as "Group".
If non-empty, a submenu will be created in the tech selector
menu for all techs with the same group.
2019-11-22 23:23:11 +01:00
Matthias Koefferlein e4596e4971 Fixed #428 (hide edit buttons for user properties in viewer mode) 2019-11-22 22:40:01 +01:00
Matthias Koefferlein 147f2c1168 Fixed issue #410 2019-11-17 22:18:55 +01:00
Matthias Koefferlein 181d5b48e6 Fixed consistent typo: PCell's -> PCells 2019-11-17 21:47:11 +01:00
Matthias Koefferlein 595075a88a Let the background ruler's size scale with the font size - otherwise it gets quite small on high-res screens. 2019-11-14 02:07:50 +01:00
Matthias Koefferlein 7309688944 More robustness of snap algorithm for unit tests 2019-11-12 20:13:35 +01:00
Matthias Köfferlein 990f01adec
Merge pull request #398 from KLayout/issue-393
Issue 393
2019-11-06 01:01:48 +01:00
Matthias Köfferlein 3476e40e79
Merge pull request #397 from KLayout/issue-394
Issue 394
2019-11-06 01:01:36 +01:00
Matthias Köfferlein 9fffd03ad3
Merge pull request #390 from KLayout/issue-382
Implemented #382: text editor view for user props
2019-11-06 01:01:09 +01:00
Matthias Koefferlein 078aa36974 Issue #394 fixed: at least the toolbox layout should be fixed now 2019-11-03 18:16:26 +01:00
Matthias Koefferlein 5a288b7224 WIP: trying to use Libration Mono from Ubuntu 16.04 2019-11-03 16:29:26 +00:00
Matthias Koefferlein 37e402e9bd WIP: new fixed font bitmaps - needs improvement 2019-11-03 17:22:57 +01:00
Matthias Koefferlein cd353219ce Implemented #382: text editor view for user props
This view is an alternative view to the table and
allows copy/paste and faster editing.
2019-11-02 12:36:02 +01:00
Matthias Koefferlein e95ced6d7a Implemented #368: no segfault but exception if accessing invalid layer iterator 2019-11-01 17:36:08 +01:00
Matthias Koefferlein 48a13162d8 Fixed build on MSVC 2019-09-08 21:45:34 +02:00
Matthias Koefferlein d9d3b3cafe Some enhancements to #343 fix
- "follow selection": allows navigating between the bookmarks
  with the cursor keys
- "manage bookmarks" now starts with the selected bookmarks
  also selected.
2019-09-08 02:23:38 +02:00
Matthias Koefferlein d2d22eafb5 Implementation of #343 (dockable bookmark window)
Here is the proposal:
- There is a new panel similar to the layer list showing the
  bookmarks. It can be shown using View/Bookmarks.
  Initially this panel is hidden.
- Double-clicking on an item in this bookmark list will
  navigate to the bookmark.
- Context menu entries of this panel are: manage, load and
  save bookmarks (like in main menu)

In addition, "bookmark this view" now proposes a bookmark name
make of "B" and a unique number.
2019-09-08 01:22:34 +02:00
Matthias Koefferlein 8a21d9718e First implementation 2019-09-08 01:11:19 +02:00
Matthias Koefferlein ce5620e0bc Follow-up on #342: fixed unit tests. 2019-09-07 09:11:18 +02:00
Matthias Köfferlein f7173d0da4
Merge pull request #345 from KLayout/issue-317
Issue 317
2019-09-06 23:24:34 +02:00
Matthias Koefferlein fa72885020 issue #317: provide undo combination for the paste+move sequence in 'interactive paste'. Same for 'interactive dup' 2019-09-04 23:47:05 +02:00
Matthias Koefferlein 70a4ce82b3 First implementation of infix mode
Three mode menu items appear in "Targets for Key Binding"
in the setup dialog and can be bound to a key.

"Move Interactive" will immediately start moving the
selection.

"Paste Interactive" and "Duplicate Interactive" will
paste and then immediately start moving.

Remaining issue: when Paste or Duplicate moves are
cancelled the pasted objects will still be there and
at the original location. So they are may be hard to
see. Also with Undo, two undo items are there: Paste
and Move.
2019-09-03 22:53:32 +02:00
Matthias Koefferlein 25e2151e28 Tiny enhancement of measurement algorithm gives more reliable results on auto-measure for 'any direction'. The solution is taking vertexes into account and accepts them as counterpart for the seed. 2019-09-02 22:58:42 +02:00
Matthias Koefferlein 2e695bd048 Leaner solution: provide snap and swap
"Swap points": will swap P1 and P2
"Snap both": will take P2 into account (before it was only P1)
2019-09-01 23:14:21 +02:00
Matthias Koefferlein 9fa5277e41 Implementation proposal
The solution tries to be a bit more generic:

- four buttons are there to synchronize coordinates
- three buttons to snap p1, p2 and auto-measure from p1.
2019-09-01 19:59:03 +02:00
Matthias Koefferlein 1106d3faac Merge branch 'dvb' 2019-09-01 11:25:42 +02:00
Matthias Koefferlein db9ea27324 Re-run feature for DRC too. 2019-08-25 23:47:55 +02:00
Matthias Koefferlein 441f946f43 WIP: LVS rerun feature 2019-08-25 21:55:48 +02:00
Matthias Koefferlein 444e10d32f WIP: rerun LVS, partial LVS
Rerun LVS: a button is provided which allows re-running
the LVS or netlist extraction from the netlist browser.
TODO: a generic concept for triggering the generators

"Partial LVS" is a feature where it's possible to
select a layout subcell - running LVS then will only
compare against the corresponding schematic subcell, not
the whole tree. The magic is done by "align" which will
remove the upper hierarchy part.
2019-08-24 22:56:20 +02:00
Matthias Koefferlein 1b6e42d70a Fixed a segfault in the LVS result browser. 2019-08-24 08:53:19 +02:00
Matthias Koefferlein 850e288a28 Implemented individual colors for grid lines, axes and rulers (background configuration page) 2019-08-23 22:31:01 +02:00
Matthias Koefferlein 6f2d29d05b Fixed a segfault when running a PCell definition macro (segfault happened in update of library view because the library was gone). Fixed a dialog title. 2019-08-20 23:38:48 +02:00
Matthias Koefferlein e148898d4c Fixed an issue with drawing canvas and undo
When a "create instance" operation with a library cell
was undone the following issue could be seen: as the library
cell might create new layers in the target layout, these
needed to be undone when the operation was reverted.

But then the canvas bit planes got messed up because the
"LayoutView::set_view_ops" call was missing. Now this
happens inside the manipulation functions for deleting
and inserting layers. This should also reduce the
necessity to call LayoutView::update_content explicitly.
2019-08-18 23:56:00 +02:00
Matthias Köfferlein bf41da69da
Merge pull request #315 from KLayout/lib-browser
Lib browser
2019-08-18 17:31:02 +02:00
Matthias Köfferlein 46128e4141
Merge pull request #319 from KLayout/issue-316
Fixed issue #316 (Text capture box has zero dimension for move)
2019-08-18 17:30:54 +02:00
Matthias Köfferlein 46d2fef0fa
Merge pull request #323 from KLayout/issue-321
Fixed issue #321
2019-08-18 17:30:47 +02:00
Matthias Koefferlein 9c3f70342b key bindings and menu items visibility string packing/unpacking for scripts
New convenience functions are provided which simplify
manipulation of key bindings and menu item visibility
configuration strings. AbstractMenu#pack_key_binding
and AbstractMenu#unpack_key_binding turn a path/key
map into a single string and back. The string format
is the same than for the key-binding configuration key.

The same is provided for the menu item visibilily
with AbstractMenu#pack_menu_item_visible and
Abstract#unpack_menu_item_visible.
2019-08-17 19:54:18 +02:00
Matthias Koefferlein 4659569333 Primary fix issue #318 (unable to remove key binding)
For a backward compatible solution, a key binding
target of '' still means "take default". For
"nothing", a new pseudo-key "none" was defined.

For scripting, this value is available as
constant "Action#NoShortCut".
2019-08-17 19:17:40 +02:00
Matthias Koefferlein 06a1cafdf4 Fixed issue #321
This is a small paradigm shift in the configuration hierarchy:
plugins (as children of root) now inherit the configuration
from the parent - now only through configure, but also through
config_get (pull with config_get vs. push with configure).

TODO: both methods are not entirely consistent as configure
can block propagation of configuration settings. But that's a
feature hardly used anyway and rather an optimization thing.
2019-08-17 14:54:48 +02:00
Matthias Koefferlein 19e3d6eab0 Fixed issue #316 (Text capture box has zero dimension for move) 2019-08-04 23:45:46 +02:00
Matthias Koefferlein 7c0dd07d42 WIP: lib browser - cleanup and small bug fixes. 2019-08-04 00:49:08 +02:00