~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxSmith/wxwidgets/wxwidgetsresfactory.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
* You should have received a copy of the GNU General Public License
16
16
* along with wxSmith. If not, see <http://www.gnu.org/licenses/>.
17
17
*
18
 
* $Revision: 4850 $
19
 
* $Id: wxwidgetsresfactory.cpp 4850 2008-01-29 21:45:49Z byo $
20
 
* $HeadURL: svn://svn.berlios.de/codeblocks/tags/8.02/src/plugins/contrib/wxSmith/wxwidgets/wxwidgetsresfactory.cpp $
 
18
* $Revision: 6104 $
 
19
* $Id: wxwidgetsresfactory.cpp 6104 2010-01-23 12:56:12Z mortenmacfly $
 
20
* $HeadURL: svn+ssh://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/contrib/wxSmith/wxwidgets/wxwidgetsresfactory.cpp $
21
21
*/
22
22
#include "wxwidgetsresfactory.h"
23
23
#include "wxsdialogres.h"
 
24
#include "wxsscrollingdialogres.h"
24
25
#include "wxsframeres.h"
25
26
#include "wxspanelres.h"
26
27
#include "wxsnewwindowdlg.h"
41
42
    enum Resources
42
43
    {
43
44
        wxDialogId = 0,
 
45
        wxScrollingDialogId,
44
46
        wxFrameId,
45
47
        wxPanelId,
46
48
        /*=========*/
49
51
 
50
52
    const wxChar* NamesPtr[ResourcesCount] =
51
53
    {
52
 
        _T("wxDialog"),
53
 
        _T("wxFrame"),
54
 
        _T("wxPanel")
 
54
        _("wxDialog"),
 
55
        _("wxScrollingDialog"),
 
56
        _("wxFrame"),
 
57
        _("wxPanel")
55
58
    };
56
59
 
57
60
    wxArrayString Names(ResourcesCount,NamesPtr);
193
196
    switch ( Number )
194
197
    {
195
198
        case wxDialogId: return new wxsDialogRes(Project);
 
199
        case wxScrollingDialogId: return new wxsScrollingDialogRes(Project);
196
200
        case wxFrameId:  return new wxsFrameRes(Project);
197
201
        case wxPanelId:  return new wxsPanelRes(Project);
198
202
    }
256
260
    switch ( Names.Index(Class) )
257
261
    {
258
262
        case wxDialogId: return new wxsDialogRes(FileName,Object);
 
263
        case wxScrollingDialogId: return new wxsScrollingDialogRes(FileName,Object);
259
264
        case wxFrameId:  return new wxsFrameRes(FileName,Object);
260
265
        case wxPanelId:  return new wxsPanelRes(FileName,Object);
261
266
    }