]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/xrc/xh_gdctl.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxGenericDirCtrl
4 // Author: Markus Greither
7 // Copyright: (c) 2002 Markus Greither
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_gdctl.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
25 #include "wx/textctrl.h"
26 #include "wx/xrc/xh_gdctl.h"
27 #include "wx/dirctrl.h"
29 wxGenericDirCtrlXmlHandler::wxGenericDirCtrlXmlHandler()
30 : wxXmlResourceHandler()
32 ADD_STYLE(wxDIRCTRL_DIR_ONLY
);
33 ADD_STYLE(wxDIRCTRL_3D_INTERNAL
);
34 ADD_STYLE(wxDIRCTRL_SELECT_FIRST
);
35 ADD_STYLE(wxDIRCTRL_SHOW_FILTERS
);
39 wxObject
*wxGenericDirCtrlXmlHandler::DoCreateResource()
41 XRC_MAKE_INSTANCE(ctrl
, wxGenericDirCtrl
)
43 ctrl
->Create(m_parentAsWindow
,
45 GetText(wxT("defaultfolder")),
46 GetPosition(), GetSize(),
48 GetText(wxT("filter")),
49 (int)GetLong(wxT("defaultfilter")),
57 bool wxGenericDirCtrlXmlHandler::CanHandle(wxXmlNode
*node
)
59 return IsOfClass(node
, wxT("wxGenericDirCtrl"));