PlaneShift

Development => PlaneShift Mods => Topic started by: Tontow on September 23, 2008, 01:02:17 pm

Title: Copy/paste ability within PS
Post by: Tontow on September 23, 2008, 01:02:17 pm
Any chance of enableing copy and past in the quest window?
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Caarrie on September 23, 2008, 01:59:57 pm
Any chance of enableing copy and past in the quest window?

that would not be a gui mod so no way.
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Enaudni on September 23, 2008, 02:20:01 pm
PT has a cross platform copy/paste plugin for CS and being open source I'd think it would be possible to use. Not a gui mod as caarrie said but definitely doable in other ways.
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Tontow on September 23, 2008, 11:11:12 pm
Can you give a link so I can take a look at it?

Edit: I know past can be down with a 3ed party program useing sendkeys in VB 6.0 .
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Tuxide on September 24, 2008, 12:10:56 am
PT has a cross platform copy/paste plugin for CS and being open source I'd think it would be possible to use. Not a gui mod as caarrie said but definitely doable in other ways.
PT uses CEGUI so I'm not too sure they wrote the copy and paste code themselves.  Then again I'm looking through CEGUI's source code and I see the following in its editable text boxes:

Quote
/*************************************************************************
   TODO:

   Clipboard support
   Undo support
*************************************************************************/

EDIT:  OK so PT did write their own clipboard code, and they did it as a CS plugin so it should be reusable by any CS project GPL-compatible CS projects.  What it does is allow you to store and retrieve textual data to and from the system clipboard regardless of platform since they implemented it four times.  But you're still stuck with implementing text selection within the text box, and it seems CEGUI allows this but PAWS does not.  Also, there is no undo support.

EDIT 2:  I just realized their plugin is licensed under the GPL so it's not like they're gonna hand it over to Crystal Space or anything (which is LGPL) unless they relicense it.  So in reality it can only be used by GPL-compatible projects and not necessarily projects that use Crystal Space.  That still means PS can use it, but that makes my previous edit incorrect.  Also I'd rather it be a part of CS, and not have to download PT code to compile PS.
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Tuathanach on September 26, 2008, 01:35:29 pm
Some excellent mods \\o//
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Tontow on September 26, 2008, 01:51:09 pm
I could make a Past utility that would past the contents of the clipboard in visual basic 6.0, but I have no clue how to program a copy.  Is there any intrest in a Pasting program?
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Enaudni on September 26, 2008, 03:01:02 pm
Tuxide: You might contact Rolenun. He wrote text highlighting for paws once and I had it working long ago.  The PT clipboard plugin was started with the initial plan of being used in PS it just wasn't wanted at the time possibly because those changes to paws were too intrusive (unicode support for instance).  PS could port over to CEGUI or implement the text highlighting and all in paws.  Also you wouldn't need to download PT code to compile PS, you'd just need to host your own version of the plugin in your own repo's leaving the copyright stuff in the file headers.  Its perfectly legal.

Regards,

Brant
Title: Re: new gui mods brought to you by planeshift3dmods
Post by: Tuxide on September 26, 2008, 11:55:48 pm
Also you wouldn't need to download PT code to compile PS, you'd just need to host your own version of the plugin in your own repo's leaving the copyright stuff in the file headers.
What I'm saying is I would prefer if this plugin was LGPL and a part of Crystal Space but that's just me.
Title: Re: Copy/paste ability within PS
Post by: Enaudni on October 07, 2008, 05:02:22 pm
Actually res didn't want it in CS, hence why its in our tree.
Title: Re: Copy/paste ability within PS
Post by: Tuxide on October 07, 2008, 05:21:07 pm
Still, I would prefer it if the plugin was LGPL.  I can be a license agreement nazi too if I wanted.
Title: Re: Copy/paste ability within PS
Post by: Enaudni on October 07, 2008, 05:47:12 pm
I don't see why it couldn't be considering what it is, I'll email Rolenun :)