Commit 4fb9bce3 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Code formatting.

parent 112adccb
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -29,35 +29,37 @@
#include <wx_status_popup.h>
#include <wxPcbStruct.h>

WX_STATUS_POPUP::WX_STATUS_POPUP ( PCB_EDIT_FRAME *parent ) : 
    wxPopupWindow ( parent )
WX_STATUS_POPUP::WX_STATUS_POPUP( PCB_EDIT_FRAME* aParent ) :
    wxPopupWindow( aParent )
{
    m_panel = new wxPanel( this, wxID_ANY );
    m_panel->SetBackgroundColour( *wxLIGHT_GREY );

    m_topSizer = new wxBoxSizer( wxVERTICAL );
    m_panel->SetSizer( m_topSizer );

}


void WX_STATUS_POPUP::updateSize()
{
    m_topSizer->Fit( m_panel );
    SetClientSize( m_panel->GetSize() );
}


WX_STATUS_POPUP::~WX_STATUS_POPUP()
{
}

void WX_STATUS_POPUP::Popup(wxWindow *focus)

void WX_STATUS_POPUP::Popup( wxWindow* )
{
    Show( true );
    Raise();
}


void WX_STATUS_POPUP::Move( const wxPoint& aWhere )
{
    SetPosition ( aWhere );
}
    
 No newline at end of file
+12 −9
Original line number Diff line number Diff line
@@ -50,6 +50,7 @@ WX_UNIT_BINDER::~WX_UNIT_BINDER()
{
}


void WX_UNIT_BINDER::SetValue( int aValue )
{
    wxString s = StringFromValue( m_units, aValue, false );
@@ -59,6 +60,7 @@ void WX_UNIT_BINDER::SetValue( int aValue )
    m_unitLabel->SetLabel( GetAbbreviatedUnitsLabel( m_units ) );
}


int WX_UNIT_BINDER::GetValue() const
{
    wxString s = m_textCtrl->GetValue();
@@ -66,6 +68,7 @@ int WX_UNIT_BINDER::GetValue() const
    return ValueFromString( m_units, s );
}


void WX_UNIT_BINDER::Enable( bool aEnable )
{
    m_textCtrl->Enable( aEnable );
+1 −2
Original line number Diff line number Diff line
@@ -257,7 +257,6 @@ public:
        return cnt;
    }


    /**
     * Function Collect
     * scans an EDA_ITEM using this class's Inspector method, which does
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ public:
    /**
     * Function GetSize()
     * Returns information about number of vertices stored.
     * @param Number of vertices.
     * @return Number of vertices.
     */
    inline unsigned int GetSize() const
    {
+17 −20
Original line number Diff line number Diff line
@@ -320,7 +320,6 @@ private:
    int m_index;
};


inline VECTOR2I SEG::LineProject( const VECTOR2I& aP ) const
{
    VECTOR2I d = B - A;
@@ -337,7 +336,6 @@ inline VECTOR2I SEG::LineProject( const VECTOR2I& aP ) const
    return A + VECTOR2I( xp, yp );
}


inline int SEG::LineDistance( const VECTOR2I& aP, bool aDetermineSide ) const
{
    ecoord p = A.y - B.y;
@@ -376,7 +374,6 @@ inline const VECTOR2I SEG::NearestPoint( const VECTOR2I& aP ) const
    return A + VECTOR2I( xp, yp );
}


inline std::ostream& operator<<( std::ostream& aStream, const SEG& aSeg )
{
    aStream << "[ " << aSeg.A << " - " << aSeg.B << " ]";
Loading