2
* This file is part of wxSmithAui plugin for Code::Blocks Studio
3
* Copyright (C) 2008-2009 César Fernández Domínguez
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.
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.
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/>.
19
#include "wxsAuiToolBarSpacer.h"
21
#if wxCHECK_VERSION(2,8,9)
23
#include <wx/aui/auibar.h>
25
#include <wxwidgets/wxsflags.h>
27
using namespace wxsFlags;
31
#include "../images/wxsAuiToolBarSpacer16.xpm"
32
#include "../images/wxsAuiToolBarSpacer32.xpm"
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
46
wxBitmap(wxsAuiToolBarSpacer32_xpm), // 32x32 bitmap
47
wxBitmap(wxsAuiToolBarSpacer16_xpm), // 16x16 bitmap
51
wxsAuiToolBarSpacer::wxsAuiToolBarSpacer(wxsItemResData* Data)
52
: wxsAuiToolBarItemBase(Data,&Reg.Info,flId,0,0)
55
void wxsAuiToolBarSpacer::OnEnumItemProperties(long Flags)
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)
62
#endif // wxCHECK_VERSION(2,8,9)