Opened 5 years ago

Closed 4 years ago

#2313 closed enhancement (fixed)

display commands: add copy button to GUI

Reported by: mlennert Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: wxGUI Version: svn-trunk
Keywords: display, d.* commands Cc:
CPU: Unspecified Platform: Unspecified

Description

I have a vague notion that this has been discussed before, but cannot find the discussion, so noting it here: All GRASS command GUI windows in the wxgui have a "Copy" button allowing to copy the command line created by the GUI. The display commands do not have such a button.

Why is this so ?

I think a Copy button would also be helpful in the display command GUI windows.

Moritz

Attachments (1)

forms.py (116.7 KB) - added by kuszinger 5 years ago.
full forms.py making copy omnipresent... trying to make diff or whatever…

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 years ago by wenzeslaus

Keywords: display d.* commands added

I agree.

I think the idea behind not having the "Copy" button there is that you are not expected to use d.* commands in GUI and that novice users might be confused by seeing command behind "adding of the layer".

However, d.* commands works in GUI (at least the ones available from GUI), i.e. are usable in GUI command line, so "Copy" could be quite advantageous for advanced users and also for saving (and sharing) commands and perhaps even writing scripts.

comment:2 in reply to:  1 Changed 5 years ago by mlennert

Replying to wenzeslaus:

However, d.* commands works in GUI (at least the ones available from GUI), i.e. are usable in GUI command line, so "Copy" could be quite advantageous for advanced users and also for saving (and sharing) commands and perhaps even writing scripts.

It's also useful for the terminal command line (yes, some of the old people around here do use that ! ;-) )

Moritz

comment:3 Changed 5 years ago by kuszinger

/grass/trunk/gui/wxpython/gui_core/forms.py changed to let the Copy button omnipresent in forms

Source attached (full forms.py) Tested and still testing on Trunk 7.1 seems to be ok.

Changed 5 years ago by kuszinger

Attachment: forms.py added

full forms.py making copy omnipresent... trying to make diff or whatever...

comment:4 Changed 5 years ago by martinl

svn diff > patch.diff is your friend

comment:5 Changed 5 years ago by annakrat

Committed in r65203 in trunk. Thanks

comment:6 Changed 4 years ago by annakrat

This was backported, closing.

comment:7 Changed 4 years ago by annakrat

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.