~kaspar-emanuel/kicad/python-unittest

« back to all changes in this revision

Viewing changes to eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp

  • Committer: kaspar
  • Date: 2013-08-15 20:11:34 UTC
  • mfrom: (4242.1.44 kicad)
  • Revision ID: kaspar.emanuel@gmail.com-20130815201134-77ig0ylk3qfohjsb
mergingĀ lp:kicad

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
    void moveUpButtonHandler( wxCommandEvent& event );
78
78
    void OnCancelButtonClick( wxCommandEvent& event );
79
79
    void OnOKButtonClick( wxCommandEvent& event );
 
80
    void showButtonHandler( wxCommandEvent& event );
80
81
 
81
82
    // internal functions:
82
83
    void setSelectedFieldNdx( int aFieldNdx );
379
380
}
380
381
 
381
382
 
 
383
void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::showButtonHandler( wxCommandEvent& event )
 
384
{
 
385
    wxString datasheet_uri = fieldValueTextCtrl->GetValue();
 
386
    ::wxLaunchDefaultBrowser( datasheet_uri );
 
387
}
 
388
 
 
389
 
382
390
void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::setSelectedFieldNdx( int aFieldNdx )
383
391
{
384
392
    // deselect old selection, but I think this is done by single selection
645
653
 
646
654
    textSizeTextCtrl->SetValue( EDA_GRAPHIC_TEXT_CTRL::FormatSize( g_UserUnit, field.GetSize().x ) );
647
655
 
 
656
    m_show_datasheet_button->Enable( fieldNdx == DATASHEET );
 
657
 
648
658
    wxPoint coord = field.GetTextPosition();
649
659
    wxPoint zero;
650
660