aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/contextmenu.lua
AgeCommit message (Collapse)Author
2021-06-28Added context menu to treeview.jgmdev
2021-06-17Do not duplicate RootView method in contextmenuFrancesco Abbate
The method RootView:on_mouse_pressed was copied in the contextmenu plugin with a small modification to intercept the mouse clicks of the active view. This approach is problematic because a relatively large portion of code is duplicated. We introduced a function named RootView.on_view_mouse_pressed to let plugins like contextmenu intercepts mouse clicks in the active area without duplicating the function RootView:on_mouse_pressed.
2021-06-14Fixed contextmenu to play nice with dragging nodes.Adam Harrison
2021-06-07[plugin/contextmenu] Append itemsets that where registered. (#258)Jefferson González
2021-06-05prevent mouse movement from propagating when context menu is opentakase1121
2021-06-05export context menutakase1121
2021-06-03Scale fonts context menu (#246)Francesco
* Retrieve scale plugin from lite-plugins * New implementation of scale plugin and font C API Introduce two new C API functions, renderer.font.get_size and set_size respectively to get the font size and to set the size to a new value. Using these functions we don't need to know the name of the font but we can just change their size. Adapt the scale plugin to use the new C API function with minor adaptations in the logic. Use smaller step to scale fonts. Rename font_desc_free function, previous name was misleading as only the cached resources are freed. * Add contextmenu plugin from takase From https://github.com/takase1121/lite-contextmenu Adapted to show font scaling commands and find/replace commands. i# testing.lua * Fix the cursor flickering with contextmenu To avoid flickering of the cursor when using the context menu we add a new function `core.request_cursor` that just take note of the cursor requested. The cursor will be actually changed only in root_view:draw() method only when all the drawing operations are done. This means the cursor will be changed only once per frame and only the most recent cursor change request will take effect. * Remove unneeded scale plugin return functions