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

Method CreateNative

src/uiobjects.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 virtual bool IsNativeObject() { return true; }
75 virtual bool DrawDottedOutline() { return false; }
76 virtual wxWindow *CreateNative( wxWindow *parent ) {
77 AFSchedNumeric *sn = new AFSchedNumeric( parent, wxID_ANY ) ;
78 sn->SetLabel( Property("Label").GetString() );
79 sn->UseSchedule( Property("UseSchedule").GetBoolean() );
80 sn->ScheduleOnly( Property("ScheduleOnly").GetBoolean() );
81 sn->SetFixedLen( Property("FixedLength").GetInteger() );
82 sn->SetDescription( Property("Description").GetString() );
83 return AssignNative( sn );
84 }
85 virtual void OnPropertyChanged( const wxString &id, wxUIProperty *p )
86 {
87 if ( AFSchedNumeric *sn = GetNative<AFSchedNumeric>() )

Callers

nothing calls this directly

Calls 8

UseScheduleMethod · 0.80
GetBooleanMethod · 0.80
ScheduleOnlyMethod · 0.80
SetFixedLenMethod · 0.80
GetIntegerMethod · 0.80
SetLabelMethod · 0.45
GetStringMethod · 0.45
SetDescriptionMethod · 0.45

Tested by

no test coverage detected