~kaspar-emanuel/kicad/python-unittest

« back to all changes in this revision

Viewing changes to pcbnew/edit_pcb_text.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:
147
147
    m_canvas->Refresh();
148
148
#endif
149
149
 
150
 
    GetScreen()->SetCrossHairPosition( aTextePcb->GetTextPosition() );
 
150
    SetCrossHairPosition( aTextePcb->GetTextPosition() );
151
151
    m_canvas->MoveCursorToCrossHair();
152
152
 
153
153
    m_canvas->SetMouseCapture( Move_Texte_Pcb, Abort_Edit_Pcb_Text );
156
156
}
157
157
 
158
158
 
159
 
/* Move  PCB text following the cursor. */
 
159
// Move  PCB text following the cursor.
160
160
static void Move_Texte_Pcb( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosition,
161
161
                            bool aErase )
162
162
{
168
168
    if( aErase )
169
169
        TextePcb->Draw( aPanel, aDC, GR_XOR );
170
170
 
171
 
    TextePcb->SetTextPosition( aPanel->GetScreen()->GetCrossHairPosition() );
 
171
    TextePcb->SetTextPosition( aPanel->GetParent()->GetCrossHairPosition() );
172
172
 
173
173
    TextePcb->Draw( aPanel, aDC, GR_XOR );
174
174
}
214
214
            textePcb->SetMirrored( true );
215
215
 
216
216
        textePcb->SetSize( GetBoard()->GetDesignSettings().m_PcbTextSize );
217
 
        textePcb->SetTextPosition( GetScreen()->GetCrossHairPosition() );
 
217
        textePcb->SetTextPosition( GetCrossHairPosition() );
218
218
        textePcb->SetThickness( GetBoard()->GetDesignSettings().m_PcbTextWidth );
219
219
 
220
220
        InstallTextPCBOptionsFrame( textePcb, aDC );