Opened 10 years ago

Closed 9 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 9 years ago.
full forms.py making copy omnipresent... trying to make diff or whatever…

Download all attachments as: .zip

Change History (8)

comment:1 by wenzeslaus, 10 years ago

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.

in reply to:  1 comment:2 by mlennert, 10 years ago

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 by kuszinger, 9 years ago

/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.

by kuszinger, 9 years ago

Attachment: forms.py added

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

comment:4 by martinl, 9 years ago

svn diff > patch.diff is your friend

comment:5 by annakrat, 9 years ago

Committed in r65203 in trunk. Thanks

comment:6 by annakrat, 9 years ago

This was backported, closing.

comment:7 by annakrat, 9 years ago

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