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

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxSmithAui/wxAuiToolBar/wxsAuiToolBarSpacer.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:
 
1
/*
 
2
* This file is part of wxSmithAui plugin for Code::Blocks Studio
 
3
* Copyright (C) 2008-2009  César Fernández Domínguez
 
4
*
 
5
* wxSmithAui is free software; you can redistribute it and/or modify
 
6
* it under the terms of the GNU General Public License as published by
 
7
* the Free Software Foundation; either version 3 of the License, or
 
8
* (at your option) any later version.
 
9
*
 
10
* wxSmithAui is distributed in the hope that it will be useful,
 
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
13
* GNU General Public License for more details.
 
14
*
 
15
* You should have received a copy of the GNU General Public License
 
16
* along with wxSmithAui. If not, see <http://www.gnu.org/licenses/>.
 
17
*/
 
18
 
 
19
#include "wxsAuiToolBarSpacer.h"
 
20
 
 
21
#if wxCHECK_VERSION(2,8,9)
 
22
 
 
23
#include <wx/aui/auibar.h>
 
24
 
 
25
#include <wxwidgets/wxsflags.h>
 
26
 
 
27
using namespace wxsFlags;
 
28
 
 
29
namespace
 
30
{
 
31
    #include "../images/wxsAuiToolBarSpacer16.xpm"
 
32
    #include "../images/wxsAuiToolBarSpacer32.xpm"
 
33
 
 
34
    wxsRegisterItem<wxsAuiToolBarSpacer> Reg(
 
35
        _T("wxAuiToolBarSpacer"),            // Class name
 
36
        wxsTWidget,                             // Item type
 
37
        _T("wxWindows"),                        // License
 
38
        _T("Benjamin I. Williams"),             // Author
 
39
        _T(""),                                 // Author's email
 
40
        _T(""),                                 // Item's homepage
 
41
        _T("Aui"),                              // Category in palette
 
42
        1,                                     // Priority in palette
 
43
        _T("AuiToolBarSpacer"),                                 // Base part of names for new items
 
44
        wxsCPP,                                 // List of coding languages supported by this item
 
45
        2, 8,                                   // Version
 
46
        wxBitmap(wxsAuiToolBarSpacer32_xpm),    // 32x32 bitmap
 
47
        wxBitmap(wxsAuiToolBarSpacer16_xpm),    // 16x16 bitmap
 
48
        false);
 
49
}
 
50
 
 
51
wxsAuiToolBarSpacer::wxsAuiToolBarSpacer(wxsItemResData* Data)
 
52
    : wxsAuiToolBarItemBase(Data,&Reg.Info,flId,0,0)
 
53
{}
 
54
 
 
55
void wxsAuiToolBarSpacer::OnEnumItemProperties(long Flags)
 
56
{
 
57
    WXS_BOOL(wxsAuiToolBarSpacer,m_Stretch,_("Is strecht spacer"),_T("stretch"),false)
 
58
    WXS_LONG(wxsAuiToolBarSpacer,m_Pixels,_("Pixels"),_T("pixels"),0)
 
59
    WXS_LONG(wxsAuiToolBarSpacer,m_Proportion,_("Proportion"),_T("proportion"),1)
 
60
}
 
61
 
 
62
#endif // wxCHECK_VERSION(2,8,9)