Commit c3e3ff36 authored by unknown's avatar unknown Committed by jean-pierre charras
Browse files

Minot fixes: Minor coding style issues fix (tab -> spaces). Add missing...

Minot fixes: Minor coding style issues fix (tab -> spaces). Add missing GetClass to all classes derived from EDA_ITEM. Make debug method Show() only compiled in debug mode.
parent 02c8d4db
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -65,6 +65,14 @@ public:
#if defined(DEBUG)
    void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
#endif

    /** Get class name
     * @return  string "S3D_MATERIAL"
     */
    virtual wxString GetClass() const
    {
        return wxT( "S3D_MATERIAL" );
    }
};

void SetOpenGlDefaultMaterial();
+8 −0
Original line number Diff line number Diff line
@@ -176,6 +176,14 @@ public:
        return m_Shape3DName;
    }

    /** Get class name
     * @return  string "S3D_MASTER"
     */
    virtual wxString GetClass() const
    {
        return wxT( "S3D_MASTER" );
    }

    /**
     * Function GetShape3DFullFilename
     * @return the full filename of the 3D shape,
+1 −4
Original line number Diff line number Diff line
@@ -386,10 +386,7 @@ public:
     * returns the class name.
     * @return wxString
     */
    virtual wxString GetClass() const
    {
        return wxT( "EDA_ITEM" );
    }
    virtual wxString GetClass() const = 0;

    /**
     * Function GetSelectMenuText
+10 −0
Original line number Diff line number Diff line
@@ -123,10 +123,20 @@ public:
    /// @copydoc VIEW_ITEM::ViewGetLayers()
    void ViewGetLayers( int aLayers[], int& aCount ) const;

#if defined(DEBUG)
    /// @copydoc EDA_ITEM::Show()
    void Show( int x, std::ostream& st ) const
    {
    }
#endif

    /** Get class name
     * @return  string "WORKSHEET_VIEWITEM"
     */
    virtual wxString GetClass() const
    {
        return wxT( "WORKSHEET_VIEWITEM" );
    }

protected:
    /// File name displayed in the title block
+8 −0
Original line number Diff line number Diff line
@@ -57,6 +57,14 @@ public:
#if defined(DEBUG)
    virtual void Show( int nestLevel, std::ostream& os ) const {}
#endif

    /** Get class name
     * @return  string "PL_ITEM_LAYOUT"
     */
    virtual wxString GetClass() const
    {
        return wxT( "PL_ITEM_LAYOUT" );
    }
};

void PL_EDITOR_FRAME::SaveCopyInUndoList()
Loading