Any other sources for SDL help or information?

I am a bit saddened that nobody has an answer for my question about SDL and X11 Drag and Drop. I was selling this feature for my application and it seems that now I will have to remove it from the list of features. In order to implement this it would seem I would have to invest a good amount of time in understanding the internals of the X11 implementation of SDL.

If there are any other forums or avenues to ask for help I would appreciate the information…

Thank you,
UmanEntity------------------------

He’s dead Jim!

Talk to gtk folks they got this done… See if you can emulate will
using those tricks (glib) and x11+SDL.

Kartik ThakoreOn 19-Nov-09, at 4:26 PM, “UmanEntity” <Michael_Uman at sdesigns.com> wrote:

I am a bit saddened that nobody has an answer for my question about
SDL and X11 Drag and Drop. I was selling this feature for my
application and it seems that now I will have to remove it from the
list of features. In order to implement this it would seem I would
have to invest a good amount of time in understanding the internals
of the X11 implementation of SDL.

If there are any other forums or avenues to ask for help I would
appreciate the information…

Thank you,
UmanEntity


He’s dead Jim!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I used Qt with Java and there were 2 examples of Drag and drop:
DnD with Icons: http://p.nn-d.de/1164
DnD with Text: http://p.nn-d.de/1165

Because Qt is also ( and mainly) a Framework for C++ , there should be also DnD in C++
Looking there should help: http://qt.nokia.com/doc/4.5/dnd.html

Maybe you could just grab that feature and implement it in your SDL application.
Also this should work on windows, linux and mac, so you are not tied to X11 and your special implementation.

Greetings
Kakarott

You can also see an example of using the native window and API calls
with SDL in the scrap demo:
http://www.libsdl.org/projects/scrap/

If you do end up implementing drag and drop, I’d love to see it for
possible inclusion with SDL 1.3.

See ya!On Thu, Nov 19, 2009 at 1:26 PM, UmanEntity <Michael_Uman at sdesigns.com> wrote:

I am a bit saddened that nobody has an answer for my question about SDL and
X11 Drag and Drop. I was selling this feature for my application and it
seems that now I will have to remove it from the list of features. In order
to implement this it would seem I would have to invest a good amount of time
in understanding the internals of the X11 implementation of SDL.

If there are any other forums or avenues to ask for help I would appreciate
the information…

Thank you,
UmanEntity



He’s dead Jim!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Also, please don’t forget about the SDL_Clipboard proposal found here:
http://playcontrol.net/ewing/jibberjabber/SDL_ClipboardPrototype.html

I’m still looking for an X11 hero to implement that backend.

-EricOn 11/21/09, Sam Lantinga wrote:

You can also see an example of using the native window and API calls
with SDL in the scrap demo:
http://www.libsdl.org/projects/scrap/

If you do end up implementing drag and drop, I’d love to see it for
possible inclusion with SDL 1.3.

BTW, Eric, I was looking at that while investigating clipboard support
for SDL 1.3. I have work in progress sitting on my hard drive as I
wanted to do more research on clipboard image and other data formats
on different platforms.

See ya!On Mon, Nov 23, 2009 at 3:27 PM, E. Wing wrote:

On 11/21/09, Sam Lantinga <@slouken> wrote:

You can also see an example of using the native window and API calls
with SDL in the scrap demo:
http://www.libsdl.org/projects/scrap/

If you do end up implementing drag and drop, I’d love to see it for
possible inclusion with SDL 1.3.

Also, please don’t forget about the SDL_Clipboard proposal found here:
http://playcontrol.net/ewing/jibberjabber/SDL_ClipboardPrototype.html

I’m still looking for an X11 hero to implement that backend.

-Eric


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

hi,

please see the pygame clip board support… in the src/scrap_*.c
files. It is based on SDL_scrap, but with a bunch of fixes…
especially for X.

With it you can paste images into gimp for example.

cu,On Tue, Nov 24, 2009 at 8:58 AM, Sam Lantinga wrote:

BTW, Eric, I was looking at that while investigating clipboard support
for SDL 1.3. ?I have work in progress sitting on my hard drive as I
wanted to do more research on clipboard image and other data formats
on different platforms.

See ya!

Awesome, thank you! Is it okay if I incorporate it into SDL 1.3 under
the dual commercial and LGPL license?On Tue, Nov 24, 2009 at 4:17 AM, Ren? Dudfield wrote:

On Tue, Nov 24, 2009 at 8:58 AM, Sam Lantinga <@slouken> wrote:

BTW, Eric, I was looking at that while investigating clipboard support
for SDL 1.3. ?I have work in progress sitting on my hard drive as I
wanted to do more research on clipboard image and other data formats
on different platforms.

See ya!

hi,

please see the pygame clip board support… in the src/scrap_*.c
files. ?It is based on SDL_scrap, but with a bunch of fixes…
especially for X.

With it you can paste images into gimp for example.

cu,


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Hi,

it’s ok to include the clipboard stuff by me. You’ll also have to ask
Marcus von Appen, since he wrote most of the code.

I’ve CC’d this email to Marcus.

cheers,

ps. sorry about the very slow response… there’s millions of emails
on the SDL list, and I missed this email.On Wed, Nov 25, 2009 at 5:05 AM, Sam Lantinga wrote:

Awesome, thank you! ?Is it okay if I incorporate it into SDL 1.3 under
the dual commercial and LGPL license?

On Tue, Nov 24, 2009 at 4:17 AM, Ren? Dudfield <@Rene_Dudfield> wrote:

On Tue, Nov 24, 2009 at 8:58 AM, Sam Lantinga wrote:

BTW, Eric, I was looking at that while investigating clipboard support
for SDL 1.3. ?I have work in progress sitting on my hard drive as I
wanted to do more research on clipboard image and other data formats
on different platforms.

See ya!

hi,

please see the pygame clip board support… in the src/scrap_*.c
files. ?It is based on SDL_scrap, but with a bunch of fixes…
especially for X.

With it you can paste images into gimp for example.

cu,


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


? ? ? ?-Sam Lantinga, Founder and President, Galaxy Gameworks LLC


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

On, Thu Dec 10, 2009, Rene Dudfield wrote:

Hi,

it’s ok to include the clipboard stuff by me. You’ll also have to ask
Marcus von Appen, since he wrote most of the code.

I’ve CC’d this email to Marcus.

Thanks for the pointer. The discussion on the list slipped through my
fingers (due to the subject, I guess).

The svn://seul.org/svn/pygame/branches/sdl_pgame source tree is much
cleaner and easier to integrate, I would guess. It does not include the
MacOS X and QNX code portions, though.

Regarding QNX support, do not rely on the code in
svn://seul.org/svn/pygame/trunk/. It is some early stage, not very well
tested and not maintained (anymore) as the maintenance efforts are to
high for us (and I do not have a license for QNX anymore :-). You can use
it as base for an own implementation, though.

I do not know about the Mac OS code portion. It uses some python
encapsulation, Rene can better explain :-).

Additional pointers: the X11 code is not fully ICCCM compatible - the
X11 specs in that area are a pain and I was too lazy to write code for
it. Except from that, for both, Win32 and X11 the code is nearly feature
complete, including registration of own clipboard types, support of the
most important system clipboard formats in regards of graphics,
application-local clipboard types and so on.

If you need assistance with the integration or particular details, do
not hesitate to bug me (and take this as an implicit OK for the
integration into the SDL development trees, be it commercial or LGPL).

Regards
Marcus
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20091211/276722e7/attachment.pgp

Thanks Marcus, I’ll definitely look at this for SDL 1.3. If you get
interested and want to submit a patch, I’ll gladly accept it. :slight_smile:

See ya!On Fri, Dec 11, 2009 at 11:24 AM, Marcus von Appen wrote:

On, Thu Dec 10, 2009, Rene Dudfield wrote:

Hi,

it’s ok to include the clipboard stuff by me. ?You’ll also have to ask
Marcus von Appen, since he wrote most of the code.

I’ve CC’d this email to Marcus.

Thanks for the pointer. The discussion on the list slipped through my
fingers (due to the subject, I guess).

The svn://seul.org/svn/pygame/branches/sdl_pgame source tree is much
cleaner and easier to integrate, I would guess. It does not include the
MacOS X and QNX code portions, though.

Regarding QNX support, do not rely on the code in
svn://seul.org/svn/pygame/trunk/. It is some early stage, not very well
tested and not maintained (anymore) as the maintenance efforts are to
high for us (and I do not have a license for QNX anymore :-). You can use
it as base for an own implementation, though.

I do not know about the Mac OS code portion. It uses some python
encapsulation, Rene can better explain :-).

Additional pointers: the X11 code is not fully ICCCM compatible - the
X11 specs in that area are a pain and I was too lazy to write code for
it. Except from that, for both, Win32 and X11 the code is nearly feature
complete, including registration of own clipboard types, support of the
most important system clipboard formats in regards of graphics,
application-local clipboard types and so on.

If you need assistance with the integration or particular details, do
not hesitate to bug me (and take this as an implicit OK for the
integration into the SDL development trees, be it commercial or LGPL).

Regards
Marcus


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

hi,

regarding the Mac OSX code in the pygame tree… it is not good or
complete. I’d recommend using the SDL_clipboard code from Eric
instead (or doing something from scratch).

We did discover some very bad crashes with clipboard stuff on OSX with
image types however… so beware!! Wrongly using their clipboard APIs
has caused machines to become unbootable… (weird I know). This was
with osx 10.3.x and 10.4.x… so maybe those crashes are fixed now.

cheers,

So I am more confused than ever on this issue…

  1. Now I am excited that I might be able to get X11 SDL code for pasting text from the clipboard, but none of the links which are in this thread yield any such code. I need this code in C/C++ and I don’t have time to fool with python, etc…

  2. I am nearly giving up on the idea of getting help for the SDL drag and drop feature… I was hoping I could get some pointers and still it seems like this has not been attempted. I would do it but my project is on a tight deadline to deliver by February.

Any other help would be greatly appreciated…

Thank you,
UmanEntity------------------------

He’s dead Jim!

For copy/paste, you can use this example to get some basic functionality:
http://www.libsdl.org/projects/scrap/

Drag and drop hasn’t been fully implemented anywhere with SDL, as far
as I know. It’s on the list for 1.3, but low priority and may be
punted unless someone is interested in picking it up.

See ya!
–SamOn Tue, Dec 15, 2009 at 12:00 PM, UmanEntity <Michael_Uman at sdesigns.com> wrote:

So I am more confused than ever on this issue…

  1. Now I am excited that I might be able to get X11 SDL code for pasting
    text from the clipboard, but none of the links which are in this thread
    yield any such code. I need this code in C/C++ and I don’t have time to fool
    with python, etc…

  2. I am nearly giving up on the idea of getting help for the SDL drag and
    drop feature… I was hoping I could get some pointers and still it seems
    like this has not been attempted. I would do it but my project is on a tight
    deadline to deliver by February.

Any other help would be greatly appreciated…

Thank you,
UmanEntity



He’s dead Jim!


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Quoting UmanEntity <Michael_Uman at sdesigns.com>:

So I am more confused than ever on this issue…

  1. Now I am excited that I might be able to get X11 SDL code for
    pasting text from the clipboard, but none of the links which are in
    this thread yield any such code.

Actually following links and using svn helps ;-). For web people here is
a http link:

http://www.seul.org/viewcvs/viewcvs.cgi/branches/sdl_pgame/src/scrap_x11.c?rev=1921&root=PyGame&view=auto

I need this code in C/C++ and I don’t have time to fool with python, etc…

You actually read the thread? This is about C implementations, the only python
reference was the macosx code.
Besides, “don’t have the time” is definitely worth a ‘read it up yourself
in the specs’ reply. Either you have the time to look or you ignore it ;-).

  1. I am nearly giving up on the idea of getting help for the SDL
    drag and drop feature… I was hoping I could get some pointers and
    still it seems like this has not been attempted. I would do it but
    my project is on a tight deadline to deliver by February.

I know of some applications using pygame’s clipboard implementation
in conjunction with drag’n’drop - the drag’n’drop triggering itself however
is not covered by the clipboard code above as it is strongly wired to the
concrete windowing and application environment. Not too hard to implement,
though.

Regards
Marcus

mva wrote:

Quoting UmanEntity <Michael_Uman at sdesigns.com>:

So I am more confused than ever on this issue…

  1. Now I am excited that I might be able to get X11 SDL code for
    pasting text from the clipboard, but none of the links which are in
    this thread yield any such code.

Actually following links and using svn helps ;-). For web people here is
a http link:

http://www.seul.org/viewcvs/viewcvs.cgi/branches/sdl_pgame/src/scrap_x11.c?rev=1921&root=PyGame&view=auto

I need this code in C/C++ and I don’t have time to fool with python, etc…

You actually read the thread? This is about C implementations, the only python
reference was the macosx code.
Besides, “don’t have the time” is definitely worth a ‘read it up yourself
in the specs’ reply. Either you have the time to look or you ignore it ;-).

  1. I am nearly giving up on the idea of getting help for the SDL
    drag and drop feature… I was hoping I could get some pointers and
    still it seems like this has not been attempted. I would do it but
    my project is on a tight deadline to deliver by February.

I know of some applications using pygame’s clipboard implementation
in conjunction with drag’n’drop - the drag’n’drop triggering itself however
is not covered by the clipboard code above as it is strongly wired to the
concrete windowing and application environment. Not too hard to implement,
though.

Regards
Marcus


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hello,

Ok I finally got the SDL_Clipboard code to work and it works excellent in my application… Thank you for the pointers to the http://www.libsdl.org/projects/scrap/ which contained the code which I needed to get text pasted into my application from the clipboard.

I will look more into the drag&drop code this week.

Thanks for the support!

UmanEntity------------------------

He’s dead Jim!