Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Cryogen on May 21, 2010, 04:17:02 AM

Title: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Cryogen on May 21, 2010, 04:17:02 AM

Hi Guys,

I have patched wxSmith to add wxAnimationCtrl and wxMediaCtrl. It's posted as patch 2998 on Berlios. Patch and images attached.
To use:

    * Apply the patch and copy the images to src\plugins\contrib\wxSmith\wxwidgets\icons.
    * Rebuild the contrib plugins workspace.
    * Run the update script in src\.

Cheers,

Cryo.


[attachment deleted by admin]
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: seb_seb0 on May 30, 2010, 08:36:28 PM
Hello,

I have tried to apply this patch against the new codeblocks release (10.5) and it does not work.
The message I receive from Tortoise SVN is:
   "Unknown line type at line 75"

Have you modified manually the patch file ?

Note: all your other patches have worked without problems (bitmap dialog in wxSmith, wxHyperlinkctrl, dialogs addition)

Thank you for your work !

Sebastien
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Cryogen on June 08, 2010, 04:33:54 PM

Hey Seb,

Quote from: seb_seb0 on May 30, 2010, 08:36:28 PM
I have tried to apply this patch against the new codeblocks release (10.5) and it does not work.
The message I receive from Tortoise SVN is:
   "Unknown line type at line 75"

Have you modified manually the patch file ?

Yes, possibly. I can't recreate it separately, now, since all of the more recent changes are in my sandbox. That's a nuisance. I'll have to think about that one.

Quote from: seb_seb0 on May 30, 2010, 08:36:28 PM
Note: all your other patches have worked without problems (bitmap dialog in wxSmith, wxHyperlinkctrl, dialogs addition)

Thank you for your work !

Sebastien

That's good to know, thanks, and no problem.

Cheers.
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Cryogen on June 08, 2010, 05:11:59 PM
 Hi,

I regressed some files and recreated the patch. Please let me know how this one goes.

Thanks.


[attachment deleted by admin]
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Loaden on June 08, 2010, 06:36:09 PM
Great working!
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Cryogen on June 10, 2010, 07:30:52 PM
Quote from: Loaden on June 08, 2010, 06:36:09 PM
Great working!

Cool ta. ;-)
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: ZinnJonas on September 11, 2010, 01:35:23 PM
Hi Cryogen,

your wxAnimationCtrl and wxMediaCtrl was added into the SVN version, but
in this version there are some mistakes.

Please finde endclosed my pruposle to correct the files:


Index: Makefile.am
===================================================================
--- Makefile.am (revision 6578)
+++ Makefile.am (working copy)
@@ -77,6 +77,7 @@
./wxsglcanvas.cpp \
./wxshyperlinkctrl.cpp \
./wxsanimationctrl.cpp \
+./wxsmediactrl.cpp \
./wxsfindreplacedialog.cpp \
./wxsfontdialog.cpp \
./wxsmessagedialog.cpp \
@@ -167,6 +168,7 @@
./wxsglcanvas.h \
./wxshyperlinkctrl.h \
./wxsanimationctrl.h \
+./wxsmediactrl.h \
./wxsfindreplacedialog.h \
./wxsfontdialog.h \
./wxsmessagedialog.h \


also in the wxSmith.cbp;D


Index: wxSmith.cbp
===================================================================
--- wxSmith.cbp (revision 6578)
+++ wxSmith.cbp (working copy)
@@ -528,10 +528,10 @@
<Option target="wxSmithLib" />
</Unit>
<Unit filename="wxwidgets\defitems\wxsmediactrl.cpp">
- <Option target="&lt;{~None~}&gt;" />
+ <Option target="wxSmithLib" />
</Unit>
<Unit filename="wxwidgets\defitems\wxsmediactrl.h">
- <Option target="&lt;{~None~}&gt;" />
+ <Option target="wxSmithLib" />
</Unit>
<Unit filename="wxwidgets\defitems\wxsmenu.cpp">
<Option target="wxSmithLib" />


So I hope this is the right place to post this;D

You did a good Job

Jonas

Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Jenna on September 11, 2010, 02:10:57 PM
Quote from: ZinnJonas on September 11, 2010, 01:35:23 PM
Hi Cryogen,

your wxAnimationCtrl and wxMediaCtrl was added into the SVN version, but
in this version there are some mistakes.

Please finde endclosed my pruposle to correct the files:


Index: Makefile.am
===================================================================
--- Makefile.am (revision 6578)
+++ Makefile.am (working copy)
@@ -77,6 +77,7 @@
./wxsglcanvas.cpp \
./wxshyperlinkctrl.cpp \
./wxsanimationctrl.cpp \
+./wxsmediactrl.cpp \
./wxsfindreplacedialog.cpp \
./wxsfontdialog.cpp \
./wxsmessagedialog.cpp \
@@ -167,6 +168,7 @@
./wxsglcanvas.h \
./wxshyperlinkctrl.h \
./wxsanimationctrl.h \
+./wxsmediactrl.h \
./wxsfindreplacedialog.h \
./wxsfontdialog.h \
./wxsmessagedialog.h \


also in the wxSmith.cbp;D


Index: wxSmith.cbp
===================================================================
--- wxSmith.cbp (revision 6578)
+++ wxSmith.cbp (working copy)
@@ -528,10 +528,10 @@
<Option target="wxSmithLib" />
</Unit>
<Unit filename="wxwidgets\defitems\wxsmediactrl.cpp">
- <Option target="&lt;{~None~}&gt;" />
+ <Option target="wxSmithLib" />
</Unit>
<Unit filename="wxwidgets\defitems\wxsmediactrl.h">
- <Option target="&lt;{~None~}&gt;" />
+ <Option target="wxSmithLib" />
</Unit>
<Unit filename="wxwidgets\defitems\wxsmenu.cpp">
<Option target="wxSmithLib" />


So I hope this is the right place to post this;D

You did a good Job

Jonas



That's not an error, wxMediaCtrl is currently not compiled in on linux, because it's missing on many distributions and leads to a compile-and/or link-time error therefore.
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: ZinnJonas on September 11, 2010, 03:56:31 PM
hi Jens,

thx for your reply.

I'm not using Linux, I'm running Win, with these changes the mediaCtrl runs perfektly well.

I'm using Win32 WX-2.8.11 with mingw-4.5.

Pls don't hesitate to post if you have any news.

Br
Jonas
Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Cryogen on September 11, 2010, 07:09:07 PM
Quote from: ZinnJonas on September 11, 2010, 03:56:31 PM
hi Jens,

thx for your reply.

I'm not using Linux, I'm running Win, with these changes the mediaCtrl runs perfektly well.

I'm using Win32 WX-2.8.11 with mingw-4.5.

Pls don't hesitate to post if you have any news.

Br
Jonas

Hi there. I proposed making it conditional for Windows only, as it works fine here, too. How does that sound, Jens.

Cheers.

Title: Re: Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Post by: Jenna on September 11, 2010, 11:54:54 PM
The cause why I removed it from windows project-file also, was that I wanted to keep the versions in sync on all platforms.