Commit 2884d125 authored by stambaughw's avatar stambaughw
Browse files

Replace library editor pin properties dialog box and minor update.

* Replaced library pin properties dialog with wxFormBuilder version.
* Remove DialogBlocks version of pin properties dialog.
* Add pin properties dialog support code to pin object.
* Create single event handler for displaying pin properties dialog.
* Remove left over DialogBlocks project file for annotate dialog.
* Fixed escape key bug in library editor new component dialog.
* Add GetUnitsLabel() to get human readable units for dialog labels.
* Translate French comments in all modified files.
* Some minor clean up of Doxygen comments.
parent 29e217d3
Loading
Loading
Loading
Loading
+29 −26
Original line number Diff line number Diff line
@@ -73,10 +73,7 @@ int g_DebugLevel;
int            g_MouseOldButtons;
int            g_KeyPressed;

// Nom (full file name) du file Configuration par defaut (kicad.pro)
wxString       g_Prj_Default_Config_FullFilename;

// Nom du file Configuration local (<curr projet>.pro)
wxString       g_Prj_Config_LocalFilename;

// Handle the preferd editor for browsing report files:
@@ -257,6 +254,31 @@ wxString ReturnUnitSymbol( int Units )
}


wxString GetUnitsLabel( int units )
{
    wxString label;

    switch( units )
    {
    case INCHES:
        label = _( "inches" );
        break;

    case MILLIMETRE:
        label = _( "millimeters" );
        break;

    case CENTIMETRE:
        label = _( "centimeters" );
        break;
    default:
        label = _( "Unknown" );
        break;
    }

    return label;
}

/*
 * Add string "  (mm):" or " ("):" to the static text Stext.
 *  Used in dialog boxes for entering values depending on selected units
@@ -669,17 +691,6 @@ void WinEDA_TextFrame::OnClose( wxCloseEvent& event )
}


/**
 *  Routine d'affichage d'un parametre.
 *  pos_X = cadrage horizontal
 *      si pos_X < 0 : la position horizontale est la derniere
 *          valeur demandee >= 0
 *  texte_H = texte a afficher en ligne superieure.
 *      si "", par d'affichage sur cette ligne
 *  texte_L = texte a afficher en ligne inferieure.
 *      si "", par d'affichage sur cette ligne
 *  color = couleur d'affichage
 */
/*****************************************************************************/
void Affiche_1_Parametre( WinEDA_DrawFrame* frame, int pos_X,
                          const wxString& texte_H, const wxString& texte_L,
@@ -693,10 +704,6 @@ void Affiche_1_Parametre( WinEDA_DrawFrame* frame, int pos_X,
/***********************/
int GetTimeStamp()
/***********************/

/*
 *  Retourne une identification temporelle (Time stamp) differente a chaque appel
 */
{
    static int OldTimeStamp, NewTimeStamp;

@@ -708,16 +715,12 @@ int GetTimeStamp()
}


/**
 *  TODO replace this obsolete funtion by ReturnStringFromValue
 * Retourne pour affichage la valeur d'un parametre, selon type d'unites choisies
 *  entree : valeur en mils , buffer de texte
 *  retourne en buffer : texte : valeur exprimee en pouces ou millimetres
 *                      suivie de " ou mm
/* Returns to display the value of a parameter, by type of units selected
 * Input: value in mils, buffer text
 * Returns to buffer: text: value expressed in inches or millimeters
 * Followed by " or mm
 */
/*********************************************/
const wxString& valeur_param( int valeur, wxString& buf_texte )
/*********************************************/
{
    if( g_UnitMetric )
    {
+2 −1
Original line number Diff line number Diff line
@@ -57,6 +57,8 @@ set(EESCHEMA_SRCS
#   dialog_find.cpp
    dialog_lib_edit_draw_item.cpp
    dialog_lib_edit_draw_item_base.cpp
    dialog_lib_edit_pin.cpp
    dialog_lib_edit_pin_base.cpp
    dialog_lib_new_component.cpp
    dialog_lib_new_component_base.cpp
    dialog_options.cpp
@@ -97,7 +99,6 @@ set(EESCHEMA_SRCS
    onrightclick.cpp
    operations_on_items_lists.cpp
    pinedit.cpp
#   pinedit-dialog.cpp
    plot.cpp
    plothpgl.cpp
    plotps.cpp
Loading