2
* This file is part of wxSmith plugin for Code::Blocks Studio
3
* Copyright (C) 2006-2007 Bartlomiej Swiecki
5
* wxSmith 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
* wxSmith 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 wxSmith. If not, see <http://www.gnu.org/licenses/>.
19
* $Id: wxscustomwidget.h 4850 2008-01-29 21:45:49Z byo $
20
* $HeadURL: svn://svn.berlios.de/codeblocks/tags/8.02/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxscustomwidget.h $
23
#ifndef WXSCUSTOMWIDGET_H
24
#define WXSCUSTOMWIDGET_H
26
#include "../wxswidget.h"
28
/** \brief Class for custom widgets
30
* Using custom widget class, User can add it's own widgets here.
31
* Because widgets in XRC must be threated differently from the ones
32
* created using source code, XRC will use additional xml configuration,
33
* source code will must have creating code defined.
35
class wxsCustomWidget: public wxsWidget
38
wxsCustomWidget(wxsItemResData* Data);
42
virtual void OnBuildCreatingCode();
43
virtual wxObject* OnBuildPreview(wxWindow* Parent,long Flags);
44
virtual void OnEnumWidgetProperties(long Flags);
45
virtual bool OnIsPointer() { return true; }
46
virtual bool OnXmlRead(TiXmlElement* Element,bool IsXRC,bool IsExtra);
47
virtual bool OnXmlWrite(TiXmlElement* Element,bool IsXRC,bool IsExtra);
49
void RebuildXmlData();
50
bool RebuildXmlDataDoc();
52
wxString m_CreatingCode;
55
TiXmlDocument m_XmlDataDoc;
56
wxString m_IncludeFile;
57
bool m_IncludeIsLocal;