Patch #2998 2010-05-21 02:08

cryogen

Added wxAnimationCtrl and wxMediaCtrl to wxSmith.
Download
2998-Added_wxAnimat.patch (17.8 KB)
Category
Plugin::FeatureAdd
Status
Accepted
Close date
2010-08-01 09:48
Assigned to
mortenmacfly
Index: src/plugins/contrib/wxSmith/wxSmith-unix.cbp
===================================================================
--- src/plugins/contrib/wxSmith/wxSmith-unix.cbp    (revision 6268)
+++ src/plugins/contrib/wxSmith/wxSmith-unix.cbp    (working copy)
@@ -318,6 +318,12 @@
         <Unit filename="wxsversionconverter.h">
             <Option target="wxSmithLib" />
         </Unit>
+        <Unit filename="wxwidgets/defitems/wxsanimationctrl.cpp">
+            <Option target="wxSmithLib" />
+        </Unit>
+        <Unit filename="wxwidgets/defitems/wxsanimationctrl.h">
+            <Option target="wxSmithLib" />
+        </Unit>
         <Unit filename="wxwidgets/defitems/wxsbitmapbutton.cpp">
             <Option target="wxSmithLib" />
         </Unit>
@@ -474,6 +486,12 @@
         <Unit filename="wxwidgets/defitems/wxslistctrl.h">
             <Option target="wxSmithLib" />
         </Unit>
+        <Unit filename="wxwidgets/defitems/wxsmediactrl.cpp">
+            <Option target="wxSmithLib" />
+        </Unit>
+        <Unit filename="wxwidgets/defitems/wxsmediactrl.h">
+            <Option target="wxSmithLib" />
+        </Unit>
         <Unit filename="wxwidgets/defitems/wxsmenu.cpp">
             <Option target="wxSmithLib" />
         </Unit>
Index: src/plugins/contrib/wxSmith/wxSmith.cbp
===================================================================
--- src/plugins/contrib/wxSmith/wxSmith.cbp    (revision 6268)
+++ src/plugins/contrib/wxSmith/wxSmith.cbp    (working copy)
@@ -341,6 +341,12 @@
         <Unit filename="wxsversionconverter.h">
             <Option target="wxSmithLib" />
         </Unit>
+        <Unit filename="wxwidgets\defitems\wxsanimationctrl.cpp">
+            <Option target="wxSmithLib" />
+        </Unit>
+        <Unit filename="wxwidgets\defitems\wxsanimationctrl.h">
+            <Option target="wxSmithLib" />
+        </Unit>
         <Unit filename="wxwidgets\defitems\wxsbitmapbutton.cpp">
             <Option target="wxSmithLib" />
         </Unit>
@@ -497,6 +509,12 @@
         <Unit filename="wxwidgets\defitems\wxslistctrl.h">
             <Option target="wxSmithLib" />
         </Unit>
+        <Unit filename="wxwidgets\defitems\wxsmediactrl.cpp">
+            <Option target="wxSmithLib" />
+        </Unit>
+        <Unit filename="wxwidgets\defitems\wxsmediactrl.h">
+            <Option target="wxSmithLib" />
+        </Unit>
         <Unit filename="wxwidgets\defitems\wxsmenu.cpp">
             <Option target="wxSmithLib" />
         </Unit>
Index: src/plugins/contrib/wxSmith/wxwidgets/defitems/Makefile.am
===================================================================
--- src/plugins/contrib/wxSmith/wxwidgets/defitems/Makefile.am    (revision 6268)
+++ src/plugins/contrib/wxSmith/wxwidgets/defitems/Makefile.am    (working copy)
@@ -74,7 +74,10 @@
 ./wxssingleinstancechecker.cpp \
 ./wxsstopwatch.cpp \
 ./wxssymbolpickerdialog.cpp \
-./wxsglcanvas.cpp
+./wxsglcanvas.cpp \
+./wxsanimationctrl.cpp \
+./wxsmediactrl.cpp
 
 noinst_HEADERS = \
 ./wxsgauge.h \
@@ -139,5 +142,8 @@
 ./wxssingleinstancechecker.h \
 ./wxsstopwatch.h \
 ./wxssymbolpickerdialog.h \
-./wxsglcanvas.h
+./wxsglcanvas.h \
+./wxsanimationctrl.h \
+./wxsmediactrl.h
 
Index: src/plugins/contrib/wxSmith/wxwidgets/defitems/wxsanimationctrl.cpp
===================================================================
--- src/plugins/contrib/wxSmith/wxwidgets/defitems/wxsanimationctrl.cpp    (revision 0)
+++ src/plugins/contrib/wxSmith/wxwidgets/defitems/wxsanimationctrl.cpp    (revision 0)
@@ -0,0 +1,124 @@
+/*
+* This file is part of wxSmith plugin for Code::Blocks Studio
+* Copyright (C) 2010  Gary Harris
+*
+* wxSmith is free software; you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation; either version 3 of the License, or
+* (at your option) any later version.
+*
+* wxSmith is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with wxSmith. If not, see <http://www.gnu.org/licenses/>.
+*
+*/
+
+#include "wxsanimationctrl.h"
+#include "wx/animate.h"
+
+
+namespace
+{
+    wxsRegisterItem<wxsAnimationCtrl> Reg(_T("AnimationCtrl"),wxsTWidget,_T("Standard"),100);
+
+    WXS_ST_BEGIN(wxsAnimationCtrlStyles,_T("wxAC_DEFAULT_STYLE"))
+        WXS_ST_CATEGORY("wxAnimationCtrl")
+        WXS_ST(wxAC_DEFAULT_STYLE)
+        WXS_ST(wxAC_NO_AUTORESIZE)
+        WXS_ST_DEFAULTS()
+    WXS_ST_END()
+}
+
+/*! \brief Ctor
+ *
+ * \param Data wxsItemResData*    The control's resource data.
+ *
+ */
+wxsAnimationCtrl::wxsAnimationCtrl(wxsItemResData* Data):
+    wxsWidget(
+        Data,
+        &Reg.Info,
+        NULL,
+        wxsAnimationCtrlStyles),
+        m_bPlay(false
download for full patch...
cryogen 2010-05-21 02:18

Images are in http://forums.codeblocks.org/index.php/topic,12584.new.html as I don't see how to upload them here.