MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / OnPropertyChanged

Method OnPropertyChanged

src/uiobjects.cpp:743–763  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741 return AssignNative(dm);
742 }
743 virtual void OnPropertyChanged(const wxString& id, wxUIProperty* p)
744 {
745 if (AFDataArrayTableCtrl* dm = GetNative<AFDataArrayTableCtrl>())
746 {
747 if (id == "PasteAppendRows") dm->PasteAppendRows(p->GetBoolean());
748 if (id == "PasteAppendCols") dm->PasteAppendCols(p->GetBoolean());
749 if (id == "ShadeR0C0") dm->ShadeR0C0(p->GetBoolean());
750 if (id == "LeftSideLabel") dm->SetR0C0Label(p->GetString());
751 if (id == "ShadeC0") dm->ShadeC0(p->GetBoolean());
752 if (id == "ShowButtons") dm->ShowButtons(p->GetBoolean());
753 if (id == "ShowCols") dm->ShowCols(p->GetBoolean());
754 if (id == "ShowRows") dm->ShowRows(p->GetBoolean());
755 if (id == "ShowRowLabels") dm->ShowRowLabels(p->GetBoolean());
756 if (id == "ShowColLabels") dm->ShowColLabels(p->GetBoolean());
757 // if (id == "ColLabels") dm->SetColLabels(p->GetString());
758 if (id == "NumRowsLabel") dm->SetNumRowsLabel(p->GetString());
759 if (id == "NumColsLabel") dm->SetNumColsLabel(p->GetString());
760 if (id == "ShowColumn") dm->ShowCol(p->GetInteger(), true);
761 if (id == "HideColumn") dm->ShowCol(p->GetInteger(), false);
762 }
763 }
764
765};
766

Callers

nothing calls this directly

Calls 15

PasteAppendRowsMethod · 0.80
GetBooleanMethod · 0.80
PasteAppendColsMethod · 0.80
ShadeR0C0Method · 0.80
SetR0C0LabelMethod · 0.80
ShadeC0Method · 0.80
ShowButtonsMethod · 0.80
ShowColsMethod · 0.80
ShowRowsMethod · 0.80
ShowRowLabelsMethod · 0.80
ShowColLabelsMethod · 0.80
SetNumRowsLabelMethod · 0.80

Tested by

no test coverage detected