]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configtool/src/propeditor.cpp
Fix docs for Bind
[wxWidgets.git] / utils / configtool / src / propeditor.cpp
index a9fbb9f54e9d93691bc41ce60223494bdc3a4883..d45415fe2fc6edfeeec03064e84611e36bc17c90 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:
 /////////////////////////////////////////////////////////////////////////////
 
 // Licence:
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "propeditor.h"
 #endif
 
 #pragma implementation "propeditor.h"
 #endif
 
@@ -163,7 +163,7 @@ void ctPropertyEditor::ClearEditor()
 }
 
 /// Handles detailed editing event.
 }
 
 /// Handles detailed editing event.
-void ctPropertyEditor::OnEditDetails(wxCommandEvent& event)
+void ctPropertyEditor::OnEditDetails(wxCommandEvent& WXUNUSED(event))
 {
     wxWindow* parentFrame = this;
     while (parentFrame && !parentFrame->IsKindOf(CLASSINFO(wxFrame)))
 {
     wxWindow* parentFrame = this;
     while (parentFrame && !parentFrame->IsKindOf(CLASSINFO(wxFrame)))
@@ -313,12 +313,16 @@ bool ctPropertyEditor::DisplayProperty(int row, ctProperty* prop, bool valueOnly
     // Set the value type
     if (prop->GetEditorType() == _T("choice"))
     {
     // 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;
         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"))
     {
     }
     else if (prop->GetEditorType() == _T("integer") || prop->GetVariant().GetType() == _T("long"))
     {
@@ -435,7 +439,7 @@ ctProperty* ctPropertyEditor::FindProperty(int row)
 }
 
 /// Edit the details of this cell appropriately.
 }
 
 /// Edit the details of this cell appropriately.
-bool ctPropertyEditor::EditDetails(wxWindow* parent)
+bool ctPropertyEditor::EditDetails(wxWindow* WXUNUSED(parent))
 {
     if (CanEditDetails())
     {
 {
     if (CanEditDetails())
     {
@@ -572,7 +576,7 @@ void ctPropertyEditor::OnChangeCell(wxGridEvent& event)
 }
 
 /// Double-click to show specialised editor.
 }
 
 /// 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)))
 {
     wxWindow* parentFrame = this;
     while (parentFrame && !parentFrame->IsKindOf(CLASSINFO(wxFrame)))