#pragma hdrstop
#endif
+#if wxUSE_PROPGRID
+
#ifndef WX_PRECOMP
#include "wx/defs.h"
#include "wx/object.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/cursor.h"
- #include "wx/dialog.h"
#include "wx/settings.h"
- #include "wx/msgdlg.h"
- #include "wx/choice.h"
#include "wx/textctrl.h"
- #include "wx/dirdlg.h"
- #include "wx/combobox.h"
- #include "wx/layout.h"
#include "wx/sizer.h"
- #include "wx/textdlg.h"
- #include "wx/filedlg.h"
#include "wx/statusbr.h"
#include "wx/intl.h"
#endif
}
// -----------------------------------------------------------------------
-void wxPropertyGridManager::SetPropertyAttributeAll( const wxString& attrName, wxVariant value )
-{
- size_t i;
- for ( i=0; i<GetPageCount(); i++ )
- {
- wxPropertyGridPage* page = (wxPropertyGridPage*)m_arrPages.Item(i);
-
- DoSetPropertyAttribute(page->GetStatePtr()->m_properties, attrName, value, wxPG_RECURSE);
- }
-}
-
-// -----------------------------------------------------------------------
-
size_t wxPropertyGridManager::GetPageCount() const
{
if ( !(m_iFlags & wxPG_MAN_FL_PAGE_INSERTED) )
// -----------------------------------------------------------------------
-int wxPropertyGridManager::InsertPage( int index, const wxString& label,
- const wxBitmap& bmp, wxPropertyGridPage* pageObj )
+wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index,
+ const wxString& label,
+ const wxBitmap& bmp,
+ wxPropertyGridPage* pageObj )
{
if ( index < 0 )
index = GetPageCount();
- wxCHECK_MSG( (size_t)index == GetPageCount(), -1,
+ wxCHECK_MSG( (size_t)index == GetPageCount(), NULL,
wxT("wxPropertyGridManager currently only supports appending pages (due to wxToolBar limitation)."));
bool needInit = true;
wxASSERT( pageObj->GetGrid() );
- return index;
+ return pageObj;
}
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
-size_t wxPropertyGridManager::GetChildrenCount( int page_index )
-{
- return GetChildrenCount( GetPage(page_index)->GetStatePtr()->m_properties );
-}
-
-// -----------------------------------------------------------------------
-
void wxPropertyGridManager::OnToolbarClick( wxCommandEvent &event )
{
int id = event.GetId();
{
return wxPGVIterator( new wxPGVIteratorBase_Manager( (wxPropertyGridManager*)this, flags ) );
}
+
+#endif // wxUSE_PROPGRID