Menu

#1378 [wxSmith] Usability Improvement Context Menu II

Undefined
open
nobody
wxSmith (61)
Feature_Request
2024-02-04
2023-02-17
Tiger Beard
No

This is an addon to the FeaureRequest #1377, in the hope that those items might be not too much more complex than the ones in #1377

I propose to add the following context menu on the tree items when a New Widget has been selected

Insert before
Insert inside
Insert after
insert outside

The insert outside only makes sense for sizers, but there is solved a situation which is difficiult to solve today.
Example of a mistake I make very often: As top item a Panel and then a static box sizer and put elements inside. Then find that adding another StaticBox sizer s required below the first one. This is not possible because in wxPanel only one item can be added. It would have been wise to add a normal BoxSizer before adding the first static box sizer. wxSmith does not offer an easy way to solve this. Deleting all items you have edited so far is one solution. The other is a workaound to create a new Dialog only to be able to use Edit/cut and Edit/paste the structure to that other dialog. Then add he sizer and Edit/cut and Edit/paste it again inside the sizer using he "place new widget inside" button. This could e achived by he single context menu "insert outside"

Additionally I propose to add the following two items to move widgets up and down withthin the same level

move up
move down

It would be cool to do that aross layer boundaries, but his get quickly complex as a lotof logic is required to cover the exceptions. But t would be still useful on larger dialogs using FlexGridSizers

Discussion

  • Tiger Beard

    Tiger Beard - 2023-02-17

    Forgot to add Type:Feature_request.
    I do not have he right to edit the ticket (no edit button). sorry for that

     
  • Miguel Gimenez

    Miguel Gimenez - 2023-02-17
    • Type: Undefined --> Feature_Request
     
  • ollydbg

    ollydbg - 2023-03-27

    Yes, I do need a "move up" and "move down" operation. Currently if I would like to swap two controls inside a sizer, I need to cut the first control, and paste to the second control(the paste after option is selected in this case).

     
  • Tiger Beard

    Tiger Beard - 2023-03-27

    I came across many of those cases while moving old dialogs from xrc to wxSmith. Bascally there is nothing I could not handle with Edit/Cut, Edit/Paste but its quite tedious. With the Ctrl-C and Ctrl-V working the mouse could stay on the left hand side to press the "inside" "before" "after" buttons and save quite a bit of time already. To get a context Up/Down would be the luxury version, of course...

     
  • Tiger Beard

    Tiger Beard - 2023-12-19

    See patch #1437 for a working wxSmith tree context menu with copy/paste options.
    It has cut, copy, PasteBefore, PasteInto and PasteAfter.

     
  • Tiger Beard

    Tiger Beard - 2024-02-04

    Can someone please close this ticket, see ref to patch in #1437

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.