-//-----------------------------------------------------------------------------
-// wxPropertyModule
-//-----------------------------------------------------------------------------
-
-class wxPropertyModule: public wxModule
-{
- DECLARE_DYNAMIC_CLASS(wxPropertyModule)
-
-public:
- wxPropertyModule() {}
- bool OnInit();
- void OnExit();
-};
-
-IMPLEMENT_DYNAMIC_CLASS(wxPropertyModule,wxModule)
-
-bool wxPropertyModule::OnInit()
-{
-#if defined(__WXMSW__) || defined(__WXOS2__)
- gs_tickBitmap = new wxBitmap("tick_bmp", wxBITMAP_TYPE_RESOURCE);
- gs_crossBitmap = new wxBitmap("cross_bmp", wxBITMAP_TYPE_RESOURCE);
-#else
- gs_tickBitmap = new wxBitmap( tick_xpm );
- gs_crossBitmap = new wxBitmap( cross_xpm );
-#endif
- if (!gs_tickBitmap || !gs_crossBitmap || !gs_tickBitmap->Ok() || !gs_crossBitmap->Ok())
- {
- if (gs_tickBitmap) delete gs_tickBitmap;
- if (gs_crossBitmap) delete gs_crossBitmap;
- gs_tickBitmap = (wxBitmap*) NULL;
- gs_crossBitmap = (wxBitmap*) NULL;
- }
-
- return TRUE;
-}
-
-void wxPropertyModule::OnExit()
-{
- if (gs_tickBitmap)
- delete gs_tickBitmap;
- if (gs_crossBitmap)
- delete gs_crossBitmap;
-}