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

Method CreateNative

src/uiobjects.cpp:644–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

642 virtual wxUIObject *Duplicate() { wxUIObject *o = new wxUIDataMatrixObject; o->Copy(this); return o; }
643 virtual bool IsNativeObject() { return true; }
644 virtual wxWindow *CreateNative(wxWindow *parent) {
645 AFDataMatrixCtrl *dm = new AFDataMatrixCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, Property("Layout").GetInteger() == 1, Property("ColLabels").GetString(), Property("RowLabels").GetString(), Property("Choices").GetString(), Property("ChoiceColumn").GetInteger(),false, Property("HorizontalLabel").GetString(), Property("VerticalLabel").GetString());
646 dm->PasteAppendRows(Property("PasteAppendRows").GetBoolean());
647 dm->PasteAppendCols(Property("PasteAppendCols").GetBoolean());
648 dm->ShowButtons(Property("ShowButtons").GetBoolean());
649 dm->ShowRows(Property("ShowRows").GetBoolean());
650 dm->ShowRowLabels(Property("ShowRowLabels").GetBoolean());
651 dm->SetRowLabels(Property("RowLabels").GetString());
652 dm->ShadeR0C0(Property("ShadeR0C0").GetBoolean());
653 dm->SetR0C0Label(Property("LeftSideLabel").GetString());
654 dm->ShadeC0(Property("ShadeC0").GetBoolean());
655 dm->ShowCols(Property("ShowCols").GetBoolean());
656 dm->ShowColLabels(Property("ShowColLabels").GetBoolean());
657 dm->SetColLabels(Property("ColLabels").GetString());
658 dm->SetNumRowsLabel(Property("NumRowsLabel").GetString());
659 dm->SetNumColsLabel(Property("NumColsLabel").GetString());
660 dm->ShowCol(Property("ShowColumn").GetInteger(), true);
661 dm->ShowCol(Property("HideColumn").GetInteger(), false);
662 dm->ColorMap(Property("ColorMap").GetBoolean());
663 return AssignNative(dm);
664 }
665 virtual void OnPropertyChanged(const wxString &id, wxUIProperty *p)
666 {
667 if (AFDataMatrixCtrl *dm = GetNative<AFDataMatrixCtrl>())

Callers

nothing calls this directly

Calls 15

GetIntegerMethod · 0.80
PasteAppendRowsMethod · 0.80
GetBooleanMethod · 0.80
PasteAppendColsMethod · 0.80
ShowButtonsMethod · 0.80
ShowRowsMethod · 0.80
ShowRowLabelsMethod · 0.80
SetRowLabelsMethod · 0.80
ShadeR0C0Method · 0.80
SetR0C0LabelMethod · 0.80
ShadeC0Method · 0.80
ShowColsMethod · 0.80

Tested by

no test coverage detected