[Kst] kdeextragear-2/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Tue Jan 11 04:05:22 CET 2005


On January 10, 2005 06:04 pm, George Staikos wrote:
> On Friday 07 January 2005 18:22, Andrew Walker wrote:
> > CVS commit by arwalker:
> >
> > Allow the user to easily copy a plot within the same window. This can be
> > useful to provide different views of the same data very quickly. Some
> > additional work could be done to:
> >
> > * offset the copied plot with respect to the original (at the moment the
> > copy is placed directly over the original) * allow the plot to be copied
> > to a different window
>
>   This really seems like a layout-mode action to me.  I understand the
> value in copying a plot specifically but the user basically has to switch
> to layout mode right after in order to really use it, right?
>
>    Here's how I think it should work:
>
>   1) All objects should have copy/paste support, and selecting multiple
> objects and doing a copy will copy all those objects, preserving their
> relative positions and sizes.
>   2) The copy action should only be available in layout mode since the user
> has to go there anyway, and it is in effect a layout action anyway.
>   3) Drag and drop will be used to copy to different windows[a].
> Additionally, there could be an action to move an object to another
> window[b].  Copy to another window is simply a non-generic implementation
> of this.
>   4) Implementation will be a virtual copy method in KstViewObject that
> returns null by default and non-null if implemented in a child class and
> the object is copyable.
>
> *a Drag and drop is still disabled because we need to figure out how it
> should work still.  There are a few issues to work out.  It's not a big
> deal to leave this out for now.
> *b The only reason I can see for this is that drag and drop is basically
> impossible in tabbed mode.

The plot copy is a great feature.  But, in my opinion, it should be done as a 
standard copy/cut/paste (^C/^X/^V) if this is possible.  I am not so keen on 
D&D in this case.  Most apps seem to use copy/paste to make copies of 
graphics, etc, so we should follow what people expect.

In Zoom Modes, copy coppies the mouse position into the clipboard (?) for 
pasting elsewhere.  This can stay as is.

In Layout Mode, 'copy' should copy the the current plot or group of selected 
plots into the 'clipboard' for pasting elsewhere.  Paste should paste a copy 
of the coppied plot, located at the current position of the cursor. 
I'm not sure of what gets pasted if you copy somewhere else.... perhaps the 
XML of the plot?  This way we could copy between ksts, and it makes all of 
the inheritance stuff straightforward (use the existing save stuff into a 
stream?)  

It makes copying between windows in any MDI mode straightforward.  The plot 
should be pasted with the top left corner of the plot at the current location 
of the cursor. 

In text mode, copy/paste should be used to copy labels, once we know how to 
select them.... (not now)

In the short term, you could just move the current implementation of Copy Plot 
to Layout Mode, where I looked for it as soon as I heard about it.  But if we 
can figure out how to do copy/cut/paste, I would love it.

Thoughts?


More information about the Kst mailing list