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

Method CreateNative

src/uiobjects.cpp:723–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

721 virtual wxUIObject* Duplicate() { wxUIObject* o = new wxUIDataArrayTableObject; o->Copy(this); return o; }
722 virtual bool IsNativeObject() { return true; }
723 virtual wxWindow* CreateNative(wxWindow* parent) {
724 AFDataArrayTableCtrl* dm = new AFDataArrayTableCtrl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, Property("Layout").GetInteger() == 1, Property("ColLabels").GetString(), Property("RowLabels").GetString(), Property("Choices").GetString(), false, Property("HorizontalLabel").GetString(), Property("VerticalLabel").GetString());
725 dm->PasteAppendRows(Property("PasteAppendRows").GetBoolean());
726 dm->PasteAppendCols(Property("PasteAppendCols").GetBoolean());
727 dm->ShowButtons(Property("ShowButtons").GetBoolean());
728 dm->ShowRows(Property("ShowRows").GetBoolean());
729 dm->ShowRowLabels(Property("ShowRowLabels").GetBoolean());
730 dm->SetRowLabels(Property("RowLabels").GetString());
731 dm->ShadeR0C0(Property("ShadeR0C0").GetBoolean());
732 dm->SetR0C0Label(Property("LeftSideLabel").GetString());
733 dm->ShadeC0(Property("ShadeC0").GetBoolean());
734 dm->ShowCols(Property("ShowCols").GetBoolean());
735 dm->ShowColLabels(Property("ShowColLabels").GetBoolean());
736 dm->SetColLabels(Property("ColLabels").GetString());
737 dm->SetNumRowsLabel(Property("NumRowsLabel").GetString());
738 dm->SetNumColsLabel(Property("NumColsLabel").GetString());
739 dm->ShowCol(Property("ShowColumn").GetInteger(), true);
740 dm->ShowCol(Property("HideColumn").GetInteger(), false);
741 return AssignNative(dm);
742 }
743 virtual void OnPropertyChanged(const wxString& id, wxUIProperty* p)
744 {
745 if (AFDataArrayTableCtrl* dm = GetNative<AFDataArrayTableCtrl>())

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