114    wxBitmapButton* 
dummy =
 
  116                                wxDefaultPosition, wxDefaultSize, wxBORDER_NONE );
 
  117    wxSize          bitmapSize = 
dummy->GetSize();
 
  121    const wxSize text_padding( 2, 1 );
 
  122    const int    twiddle = -1;
 
  124    const wxSize text_padding( 8, 6 );
 
  125    const int    twiddle = 1;
 
  129    wxPoint       pos( 0, charSize.y * 2 );
 
  134        std::vector<wxStaticText*> labels;
 
  139            int y = pos.y + ( ii * ( bitmapSize.y + text_padding.y ) );
 
  141                                     wxPoint( 5, y + ( bitmapSize.y / 2 ) - ( 12 / 2 ) ) );
 
  142            labels.push_back( 
text );
 
  144            int x = 
text->GetRect().GetRight();
 
  145            pos.x = std::max( pos.x, x );
 
  151            wxPoint labelPos = labels[ ii ]->GetPosition();
 
  152            labelPos.x = pos.x - labels[ ii ]->GetRect().GetWidth();
 
  153            labelPos.y += twiddle;
 
  154            labels[ ii ]->SetPosition( labelPos );
 
  166        int y = pos.y + (ii * ( bitmapSize.y + text_padding.y ) );
 
  168        for( 
int jj = 0; jj <= ii; jj++ )
 
  173            int x = pos.x + ( jj * ( bitmapSize.x + text_padding.x ) );
 
  177                wxPoint textPos( x + 
KiROUND( bitmapSize.x / 2.0 ),
 
  178                                 y - charSize.y * 2 );
 
  181                wxPoint calloutPos( x + 
KiROUND( bitmapSize.x / 2.0 ),
 
  183                new wxStaticText( 
m_matrixPanel, wxID_ANY, 
"|", calloutPos );
 
  191                                                    wxPoint( x, y ), bitmapSize );
 
  201            wxBitmapButton* btn =
 
  203                                        wxPoint( x, y ), wxDefaultSize, wxBORDER_NONE );
 
  207            btn->SetSize( btn->GetSize() + text_padding );
 
 
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
 
KICOMMON_API wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...