X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fef4b46dc77a404fb59c4e88c4a0a72d71c80399..ad653fa23069c5d9378247084f03c9a718c3ad62:/src/xrc/xh_comboctrl.cpp diff --git a/src/xrc/xh_comboctrl.cpp b/src/xrc/xh_comboctrl.cpp index 162ce708ab..29be3e775d 100644 --- a/src/xrc/xh_comboctrl.cpp +++ b/src/xrc/xh_comboctrl.cpp @@ -1,69 +1,69 @@ -///////////////////////////////////////////////////////////////////////////// -// Name: src/xrc/xh_comboctrl.cpp -// Purpose: XRC resource for wxComboCtrl -// Author: Jaakko Salli -// Created: 2009/01/25 -// RCS-ID: $Id$ -// Copyright: (c) 2009 Jaakko Salli -// Licence: wxWindows licence -///////////////////////////////////////////////////////////////////////////// - -// For compilers that support precompilation, includes "wx.h". -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#if wxUSE_XRC && wxUSE_COMBOCTRL - -#include "wx/xrc/xh_comboctrl.h" - -#ifndef WX_PRECOMP - #include "wx/intl.h" - #include "wx/textctrl.h" // for wxTE_PROCESS_ENTER -#endif - -#include "wx/combo.h" - - -IMPLEMENT_DYNAMIC_CLASS(wxComboCtrlXmlHandler, wxXmlResourceHandler) - -wxComboCtrlXmlHandler::wxComboCtrlXmlHandler() - : wxXmlResourceHandler() -{ - XRC_ADD_STYLE(wxCB_SORT); - XRC_ADD_STYLE(wxCB_READONLY); - XRC_ADD_STYLE(wxTE_PROCESS_ENTER); - XRC_ADD_STYLE(wxCC_SPECIAL_DCLICK); - XRC_ADD_STYLE(wxCC_STD_BUTTON); - AddWindowStyles(); -} - -wxObject *wxComboCtrlXmlHandler::DoCreateResource() -{ - if( m_class == wxT("wxComboCtrl")) - { - XRC_MAKE_INSTANCE(control, wxComboCtrl) - - control->Create(m_parentAsWindow, - GetID(), - GetText(wxT("value")), - GetPosition(), GetSize(), - GetStyle(), - wxDefaultValidator, - GetName()); - - SetupWindow(control); - - return control; - } - return NULL; -} - -bool wxComboCtrlXmlHandler::CanHandle(wxXmlNode *node) -{ - return IsOfClass(node, wxT("wxComboCtrl")); -} - -#endif // wxUSE_XRC && wxUSE_COMBOBOX +///////////////////////////////////////////////////////////////////////////// +// Name: src/xrc/xh_comboctrl.cpp +// Purpose: XRC resource for wxComboCtrl +// Author: Jaakko Salli +// Created: 2009/01/25 +// RCS-ID: $Id$ +// Copyright: (c) 2009 Jaakko Salli +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +#if wxUSE_XRC && wxUSE_COMBOCTRL + +#include "wx/xrc/xh_comboctrl.h" + +#ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/textctrl.h" // for wxTE_PROCESS_ENTER +#endif + +#include "wx/combo.h" + + +IMPLEMENT_DYNAMIC_CLASS(wxComboCtrlXmlHandler, wxXmlResourceHandler) + +wxComboCtrlXmlHandler::wxComboCtrlXmlHandler() + : wxXmlResourceHandler() +{ + XRC_ADD_STYLE(wxCB_SORT); + XRC_ADD_STYLE(wxCB_READONLY); + XRC_ADD_STYLE(wxTE_PROCESS_ENTER); + XRC_ADD_STYLE(wxCC_SPECIAL_DCLICK); + XRC_ADD_STYLE(wxCC_STD_BUTTON); + AddWindowStyles(); +} + +wxObject *wxComboCtrlXmlHandler::DoCreateResource() +{ + if( m_class == wxT("wxComboCtrl")) + { + XRC_MAKE_INSTANCE(control, wxComboCtrl) + + control->Create(m_parentAsWindow, + GetID(), + GetText(wxT("value")), + GetPosition(), GetSize(), + GetStyle(), + wxDefaultValidator, + GetName()); + + SetupWindow(control); + + return control; + } + return NULL; +} + +bool wxComboCtrlXmlHandler::CanHandle(wxXmlNode *node) +{ + return IsOfClass(node, wxT("wxComboCtrl")); +} + +#endif // wxUSE_XRC && wxUSE_COMBOBOX