// Licence:
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "propeditor.h"
#endif
}
/// Handles detailed editing event.
-void ctPropertyEditor::OnEditDetails(wxCommandEvent& event)
+void ctPropertyEditor::OnEditDetails(wxCommandEvent& WXUNUSED(event))
{
wxWindow* parentFrame = this;
while (parentFrame && !parentFrame->IsKindOf(CLASSINFO(wxFrame)))
// Set the value type
if (prop->GetEditorType() == _T("choice"))
{
+#if 0
wxString* strArr = prop->GetChoices().GetStringArray();
m_attributeEditorGrid->SetCellEditor(row, 1,
new wxGridCellChoiceEditor(prop->GetChoices().GetCount(), strArr));
delete[] strArr;
+#endif
+ m_attributeEditorGrid->SetCellEditor(row, 1,
+ new wxGridCellChoiceEditor(prop->GetChoices()));
}
else if (prop->GetEditorType() == _T("integer") || prop->GetVariant().GetType() == _T("long"))
{
}
/// Edit the details of this cell appropriately.
-bool ctPropertyEditor::EditDetails(wxWindow* parent)
+bool ctPropertyEditor::EditDetails(wxWindow* WXUNUSED(parent))
{
if (CanEditDetails())
{
}
/// Double-click to show specialised editor.
-void ctPropertyEditor::OnDClickCell(wxGridEvent& event)
+void ctPropertyEditor::OnDClickCell(wxGridEvent& WXUNUSED(event))
{
wxWindow* parentFrame = this;
while (parentFrame && !parentFrame->IsKindOf(CLASSINFO(wxFrame)))