139 wxMenuItem* menuItem =
nullptr;
143 result = cond( aSelection );
145 catch( std::exception& )
153 switch( entry.Type() )
156 Add( *entry.Action(), entry.IsCheckmarkEntry() );
161 entry.Menu()->UpdateTitle();
162 Add( entry.Menu()->Clone() );
167 menuItem =
new wxMenuItem(
this,
168 entry.wxItem()->GetId(),
169 wxGetTranslation( entry.wxItem()->GetItemLabel() ),
170 wxGetTranslation( entry.wxItem()->GetHelp() ),
171 entry.wxItem()->GetKind() );
173 if( !!entry.GetIcon() )
203 if( conditionalMenu )
204 conditionalMenu->
Evaluate( aSelection );
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
wxString result
Test unit parsing edge cases and error handling.