135 wxMenuItem* menuItem =
nullptr;
139 result = cond( aSelection );
141 catch( std::exception& )
149 switch( entry.Type() )
152 Add( *entry.Action(), entry.IsCheckmarkEntry() );
157 entry.Menu()->UpdateTitle();
158 Add( entry.Menu()->Clone() );
163 menuItem =
new wxMenuItem(
this,
164 entry.wxItem()->GetId(),
165 wxGetTranslation( entry.wxItem()->GetItemLabel() ),
166 wxGetTranslation( entry.wxItem()->GetHelp() ),
167 entry.wxItem()->GetKind() );
169 if( !!entry.GetIcon() )
199 if( conditionalMenu )
200 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.