Uses 911K of libraries. Click here for Pure Java version (9042L/47K).
1 | !7 |
2 | |
3 | cmodule EISM > DynPrintLog {
|
4 | start {
|
5 | ownResource(vmBus_onShowingPopupMenu((component, menu) -> {
|
6 | temp enter(); |
7 | if (!isShortNamed ImageSurface(component)) ret; |
8 | print("Image surface popup, enhancing");
|
9 | File file = cast getOpt file(component); |
10 | if (file != null) {
|
11 | Rect r = toRect(component~.Rectangle getSelection()); |
12 | addPopupMenuItem(menu, "Save selection as element...", rThread {
|
13 | inputText("Element name", name
|
14 | -> setFileInfoField(file, name, structOr(r, "-"))); |
15 | }); |
16 | } |
17 | })); |
18 | } |
19 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027249 |
| Snippet name: | Enhance Image Surface Menus |
| Eternal ID of this version: | #1027249/12 |
| Text MD5: | 4b01529dbafe28af32531b5c45bc2de0 |
| Transpilation MD5: | 92f8f659c50f281479df37c32c58c259 |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-26 18:38:00 |
| Source code size: | 593 bytes / 19 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 408 / 1434 |
| Version history: | 11 change(s) |
| Referenced in: | [show references] |