diff --git a/3d-viewer/3d_cache/dialogs/dlg_3d_pathconfig.h b/3d-viewer/3d_cache/dialogs/dlg_3d_pathconfig.h
index 8a29f3ff1b..e47681ca09 100644
--- a/3d-viewer/3d_cache/dialogs/dlg_3d_pathconfig.h
+++ b/3d-viewer/3d_cache/dialogs/dlg_3d_pathconfig.h
@@ -39,16 +39,16 @@ private:
void initDialog();
- void OnAddAlias( wxCommandEvent& event );
- void OnDelAlias( wxCommandEvent& event );
- void OnAliasMoveUp( wxCommandEvent& event );
- void OnAliasMoveDown( wxCommandEvent& event );
- void OnConfigEnvVar( wxCommandEvent& event );
- void OnHelp( wxCommandEvent& event );
+ void OnAddAlias( wxCommandEvent& event ) override;
+ void OnDelAlias( wxCommandEvent& event ) override;
+ void OnAliasMoveUp( wxCommandEvent& event ) override;
+ void OnAliasMoveDown( wxCommandEvent& event ) override;
+ void OnConfigEnvVar( wxCommandEvent& event ) override;
+ void OnHelp( wxCommandEvent& event ) override;
public:
DLG_3D_PATH_CONFIG( wxWindow* aParent, S3D_FILENAME_RESOLVER* aResolver );
- bool TransferDataFromWindow();
+ bool TransferDataFromWindow() override;
private:
void updateEnvVars( void );
diff --git a/3d-viewer/3d_cache/dialogs/dlg_select_3dmodel.h b/3d-viewer/3d_cache/dialogs/dlg_select_3dmodel.h
index 48033991dd..4eddc99fe1 100644
--- a/3d-viewer/3d_cache/dialogs/dlg_select_3dmodel.h
+++ b/3d-viewer/3d_cache/dialogs/dlg_select_3dmodel.h
@@ -64,7 +64,7 @@ public:
DLG_SELECT_3DMODEL( wxWindow* aParent, S3D_CACHE* aCacheManager, S3D_INFO* aModelItem,
wxString& prevModelSelectDir, int& prevModelWildcard );
- bool TransferDataFromWindow();
+ bool TransferDataFromWindow() override;
void OnSelectionChanged( wxTreeEvent& event );
void OnFileActivated( wxTreeEvent& event );
void SetRootDir( wxCommandEvent& event );
diff --git a/3d-viewer/3d_cache/sg/scenegraph.h b/3d-viewer/3d_cache/sg/scenegraph.h
index 1ba7467584..801f304bb1 100644
--- a/3d-viewer/3d_cache/sg/scenegraph.h
+++ b/3d-viewer/3d_cache/sg/scenegraph.h
@@ -57,8 +57,8 @@ private:
bool addNode( SGNODE* aNode, bool isChild );
public:
- void unlinkChildNode( const SGNODE* aNode );
- void unlinkRefNode( const SGNODE* aNode );
+ void unlinkChildNode( const SGNODE* aNode ) override;
+ void unlinkRefNode( const SGNODE* aNode ) override;
public:
// note: order of transformation is Translate, Rotate, Offset
@@ -73,16 +73,16 @@ public:
SCENEGRAPH( SGNODE* aParent );
virtual ~SCENEGRAPH();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
- SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller);
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
+ SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
bool Prepare( const glm::dmat4* aTransform,
S3D::MATLIST& materials, std::vector< SMESH >& meshes );
diff --git a/3d-viewer/3d_cache/sg/sg_appearance.h b/3d-viewer/3d_cache/sg/sg_appearance.h
index f44f85a5fe..1916edbecb 100644
--- a/3d-viewer/3d_cache/sg/sg_appearance.h
+++ b/3d-viewer/3d_cache/sg/sg_appearance.h
@@ -41,14 +41,14 @@ public:
SGCOLOR emissive; // default 0.0 0.0 0.0
SGCOLOR specular; // default 0.0 0.0 0.0
- void unlinkChildNode( const SGNODE* aNode );
- void unlinkRefNode( const SGNODE* aNode );
+ void unlinkChildNode( const SGNODE* aNode ) override;
+ void unlinkRefNode( const SGNODE* aNode ) override;
public:
SGAPPEARANCE( SGNODE* aParent );
virtual ~SGAPPEARANCE();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
bool SetEmissive( float aRVal, float aGVal, float aBVal );
bool SetEmissive( const SGCOLOR* aRGBColor );
@@ -66,15 +66,15 @@ public:
bool SetAmbient( const SGCOLOR* aRGBColor );
bool SetAmbient( const SGCOLOR& aRGBColor );
- SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller);
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
};
#endif // SG_APPEARANCE_H
diff --git a/3d-viewer/3d_cache/sg/sg_colors.h b/3d-viewer/3d_cache/sg/sg_colors.h
index edfdd50b3d..75a67cb9a7 100644
--- a/3d-viewer/3d_cache/sg/sg_colors.h
+++ b/3d-viewer/3d_cache/sg/sg_colors.h
@@ -37,29 +37,29 @@ class SGCOLORS : public SGNODE
public:
std::vector< SGCOLOR > colors;
- void unlinkChildNode( const SGNODE* aNode );
- void unlinkRefNode( const SGNODE* aNode );
+ void unlinkChildNode( const SGNODE* aNode ) override;
+ void unlinkRefNode( const SGNODE* aNode ) override;
public:
SGCOLORS( SGNODE* aParent );
virtual ~SGCOLORS();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
- SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller);
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
bool GetColorList( size_t& aListSize, SGCOLOR*& aColorList );
void SetColorList( size_t aListSize, const SGCOLOR* aColorList );
void AddColor( double aRedValue, double aGreenValue, double aBlueValue );
void AddColor( const SGCOLOR& aColor );
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
};
#endif // SG_COLORS_H
diff --git a/3d-viewer/3d_cache/sg/sg_coords.h b/3d-viewer/3d_cache/sg/sg_coords.h
index 5e5a9f6845..378b785f94 100644
--- a/3d-viewer/3d_cache/sg/sg_coords.h
+++ b/3d-viewer/3d_cache/sg/sg_coords.h
@@ -39,18 +39,18 @@ class SGCOORDS : public SGNODE
public:
std::vector< SGPOINT > coords;
- void unlinkChildNode( const SGNODE* aNode );
- void unlinkRefNode( const SGNODE* aNode );
+ void unlinkChildNode( const SGNODE* aNode ) override;
+ void unlinkRefNode( const SGNODE* aNode ) override;
public:
SGCOORDS( SGNODE* aParent );
virtual ~SGCOORDS();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
- SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller);
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
bool GetCoordsList( size_t& aListSize, SGPOINT*& aCoordsList );
void SetCoordsList( size_t aListSize, const SGPOINT* aCoordsList );
@@ -64,11 +64,11 @@ public:
*/
bool CalcNormals( SGFACESET* callingNode, SGNODE** aPtr = NULL );
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
};
#endif // SG_COORDS_H
diff --git a/3d-viewer/3d_cache/sg/sg_faceset.h b/3d-viewer/3d_cache/sg/sg_faceset.h
index a016ac90dd..c465f25f2a 100644
--- a/3d-viewer/3d_cache/sg/sg_faceset.h
+++ b/3d-viewer/3d_cache/sg/sg_faceset.h
@@ -60,8 +60,8 @@ public:
SGCOORDS* m_RCoords;
SGNORMALS* m_RNormals;
- void unlinkChildNode( const SGNODE* aNode );
- void unlinkRefNode( const SGNODE* aNode );
+ void unlinkChildNode( const SGNODE* aNode ) override;
+ void unlinkRefNode( const SGNODE* aNode ) override;
// validate the data held by this face set
bool validate( void );
@@ -69,19 +69,19 @@ public:
SGFACESET( SGNODE* aParent );
virtual ~SGFACESET();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
- SGNODE* FindNode( const char *aNodeName, const SGNODE *aCaller );
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ SGNODE* FindNode( const char *aNodeName, const SGNODE *aCaller ) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
bool CalcNormals( SGNODE** aPtr );
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
/**
* Function GatherCoordIndices
diff --git a/3d-viewer/3d_cache/sg/sg_index.h b/3d-viewer/3d_cache/sg/sg_index.h
index ee4484af3f..61c114a1d7 100644
--- a/3d-viewer/3d_cache/sg/sg_index.h
+++ b/3d-viewer/3d_cache/sg/sg_index.h
@@ -42,18 +42,18 @@ protected:
public:
// for internal SG consumption only
std::vector< int > index;
- void unlinkChildNode( const SGNODE* aCaller );
- void unlinkRefNode( const SGNODE* aCaller );
+ void unlinkChildNode( const SGNODE* aCaller ) override;
+ void unlinkRefNode( const SGNODE* aCaller ) override;
public:
SGINDEX( SGNODE* aParent );
virtual ~SGINDEX();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
- SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller);
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
/**
* Function GetIndices
@@ -88,11 +88,11 @@ public:
*/
void AddIndex( int aIndex );
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
};
#endif // SG_INDEX_H
diff --git a/3d-viewer/3d_cache/sg/sg_normals.h b/3d-viewer/3d_cache/sg/sg_normals.h
index 356072dbfd..01c9295325 100644
--- a/3d-viewer/3d_cache/sg/sg_normals.h
+++ b/3d-viewer/3d_cache/sg/sg_normals.h
@@ -37,29 +37,29 @@ class SGNORMALS : public SGNODE
public:
std::vector< SGVECTOR > norms;
- void unlinkChildNode( const SGNODE* aNode );
- void unlinkRefNode( const SGNODE* aNode );
+ void unlinkChildNode( const SGNODE* aNode ) override;
+ void unlinkRefNode( const SGNODE* aNode ) override;
public:
SGNORMALS( SGNODE* aParent );
virtual ~SGNORMALS();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
- SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller);
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
bool GetNormalList( size_t& aListSize, SGVECTOR*& aNormalList );
void SetNormalList( size_t aListSize, const SGVECTOR* aNormalList );
void AddNormal( double aXValue, double aYValue, double aZValue );
void AddNormal( const SGVECTOR& aNormal );
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
};
#endif // SG_NORMALS_H
diff --git a/3d-viewer/3d_cache/sg/sg_shape.h b/3d-viewer/3d_cache/sg/sg_shape.h
index 281042ea1c..0732f697e9 100644
--- a/3d-viewer/3d_cache/sg/sg_shape.h
+++ b/3d-viewer/3d_cache/sg/sg_shape.h
@@ -51,24 +51,24 @@ public:
SGAPPEARANCE* m_RAppearance;
SGFACESET* m_RFaceSet;
- void unlinkChildNode( const SGNODE* aNode );
- void unlinkRefNode( const SGNODE* aNode );
+ void unlinkChildNode( const SGNODE* aNode ) override;
+ void unlinkRefNode( const SGNODE* aNode ) override;
public:
SGSHAPE( SGNODE* aParent );
virtual ~SGSHAPE();
- virtual bool SetParent( SGNODE* aParent, bool notify = true );
+ virtual bool SetParent( SGNODE* aParent, bool notify = true ) override;
- SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller);
- bool AddRefNode( SGNODE* aNode );
- bool AddChildNode( SGNODE* aNode );
+ SGNODE* FindNode(const char *aNodeName, const SGNODE *aCaller) override;
+ bool AddRefNode( SGNODE* aNode ) override;
+ bool AddChildNode( SGNODE* aNode ) override;
- void ReNameNodes( void );
- bool WriteVRML( std::ofstream& aFile, bool aReuseFlag );
+ void ReNameNodes( void ) override;
+ bool WriteVRML( std::ofstream& aFile, bool aReuseFlag ) override;
- bool WriteCache( std::ofstream& aFile, SGNODE* parentNode );
- bool ReadCache( std::ifstream& aFile, SGNODE* parentNode );
+ bool WriteCache( std::ofstream& aFile, SGNODE* parentNode ) override;
+ bool ReadCache( std::ifstream& aFile, SGNODE* parentNode ) override;
bool Prepare( const glm::dmat4* aTransform,
S3D::MATLIST& materials, std::vector< SMESH >& meshes );
diff --git a/3d-viewer/3d_canvas/status_text_reporter.h b/3d-viewer/3d_canvas/status_text_reporter.h
index 2e12660658..37b0076dfa 100644
--- a/3d-viewer/3d_canvas/status_text_reporter.h
+++ b/3d-viewer/3d_canvas/status_text_reporter.h
@@ -50,7 +50,7 @@ public:
m_hasMessage = false;
}
- REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED )
+ REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED ) override
{
if( !aText.IsEmpty() )
m_hasMessage = true;
diff --git a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h
index 1697efa316..ebfc2df983 100644
--- a/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h
+++ b/3d-viewer/3d_rendering/3d_render_ogl_legacy/c3d_render_ogl_legacy.h
@@ -64,10 +64,10 @@ public:
~C3D_RENDER_OGL_LEGACY();
// Imported from C3D_RENDER_BASE
- void SetCurWindowSize( const wxSize &aSize );
- bool Redraw( bool aIsMoving, REPORTER *aStatusTextReporter );
+ void SetCurWindowSize( const wxSize &aSize ) override;
+ bool Redraw( bool aIsMoving, REPORTER *aStatusTextReporter ) override;
- int GetWaitForEditingTimeOut();
+ int GetWaitForEditingTimeOut() override;
private:
bool initializeOpenGL();
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/cbvh_pbrt.h b/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/cbvh_pbrt.h
index 67b7208479..050a9ebe8d 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/cbvh_pbrt.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/cbvh_pbrt.h
@@ -118,10 +118,10 @@ public:
~CBVH_PBRT();
// Imported from CGENERICACCELERATOR
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo, unsigned int aAccNodeInfo ) const;
- bool Intersect(const RAYPACKET &aRayPacket, HITINFO_PACKET *aHitInfoPacket ) const;
- bool IntersectP( const RAY &aRay, float aMaxDistance ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo, unsigned int aAccNodeInfo ) const override;
+ bool Intersect(const RAYPACKET &aRayPacket, HITINFO_PACKET *aHitInfoPacket ) const override;
+ bool IntersectP( const RAY &aRay, float aMaxDistance ) const override;
private:
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer.h b/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer.h
index 8d8a4e1126..59b5377223 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer.h
@@ -76,8 +76,8 @@ private:
class CCONTAINER : public CGENERICCONTAINER
{
public:
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool IntersectP( const RAY &aRay, float aMaxDistance ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool IntersectP( const RAY &aRay, float aMaxDistance ) const override;
};
#endif // _CCONTAINER_H_
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer2d.h
index 2f5edf14ea..4686fa0a34 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/accelerators/ccontainer2d.h
@@ -80,7 +80,7 @@ public:
// Imported from CGENERICCONTAINER2D
void GetListObjectsIntersects( const CBBOX2D & aBBox,
- CONST_LIST_OBJECT2D &aOutList ) const;
+ CONST_LIST_OBJECT2D &aOutList ) const override;
};
@@ -117,7 +117,7 @@ public:
// Imported from CGENERICCONTAINER2D
void GetListObjectsIntersects( const CBBOX2D & aBBox,
- CONST_LIST_OBJECT2D &aOutList ) const;
+ CONST_LIST_OBJECT2D &aOutList ) const override;
};
#endif // _CCONTAINER2D_H_
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.h b/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.h
index d23e606820..999f35ba01 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/c3d_render_raytracing.h
@@ -64,10 +64,10 @@ public:
~C3D_RENDER_RAYTRACING();
// Imported from C3D_RENDER_BASE
- void SetCurWindowSize( const wxSize &aSize );
- bool Redraw(bool aIsMoving, REPORTER *aStatusTextReporter );
+ void SetCurWindowSize( const wxSize &aSize ) override;
+ bool Redraw(bool aIsMoving, REPORTER *aStatusTextReporter ) override;
- int GetWaitForEditingTimeOut();
+ int GetWaitForEditingTimeOut() override;
private:
bool initializeOpenGL();
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/clight.h b/3d-viewer/3d_rendering/3d_render_raytracing/clight.h
index 40c0a128b0..fb45d45093 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/clight.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/clight.h
@@ -83,7 +83,7 @@ public:
void GetLightParameters( const SFVEC3F &aHitPoint,
SFVEC3F &aOutVectorToLight,
SFVEC3F &aOutLightColor,
- float &aOutDistance ) const
+ float &aOutDistance ) const override
{
const SFVEC3F vectorLight = m_position - aHitPoint;
@@ -134,7 +134,7 @@ public:
void GetLightParameters( const SFVEC3F &aHitPoint,
SFVEC3F &aOutVectorToLight,
SFVEC3F &aOutLightColor,
- float &aOutDistance ) const
+ float &aOutDistance ) const override
{
(void)aHitPoint; // unused
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/cmaterial.h b/3d-viewer/3d_rendering/3d_render_raytracing/cmaterial.h
index 877b3ea31b..630ec89b2a 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/cmaterial.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/cmaterial.h
@@ -123,7 +123,7 @@ public:
const SFVEC3F &aDiffuseObjColor,
const SFVEC3F &aDirToLight,
const SFVEC3F &aLightColor,
- float aShadowAttenuationFactor ) const;
+ float aShadowAttenuationFactor ) const override;
};
#endif // _CMATERIAL_H_
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cfilledcircle2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cfilledcircle2d.h
index d97d2489bd..fde32ad23e 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cfilledcircle2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cfilledcircle2d.h
@@ -48,11 +48,11 @@ public:
CFILLEDCIRCLE2D( const SFVEC2F &aCenter, float aRadius, const BOARD_ITEM &aBoardItem );
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/citemlayercsg2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/citemlayercsg2d.h
index 5318332327..53f036ea2a 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/citemlayercsg2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/citemlayercsg2d.h
@@ -91,11 +91,11 @@ public:
~CITEMLAYERCSG2D();
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon2d.h
index 88ee0283df..15b2c4ce43 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon2d.h
@@ -102,11 +102,11 @@ public:
const BOARD_ITEM &aBoardItem );
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
@@ -126,11 +126,11 @@ public:
CDUMMYBLOCK2D( const CBBOX2D &aBBox, const BOARD_ITEM &aBoardItem );
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
/**
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon4pts2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon4pts2d.h
index fc2e2abf0b..e93c4bc5ed 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon4pts2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cpolygon4pts2d.h
@@ -62,11 +62,11 @@ public:
const SFVEC2F &GetN3() const { return m_seg_normal[3]; }
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cring2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cring2d.h
index 13f2155c68..6705f437f9 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cring2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/cring2d.h
@@ -54,11 +54,11 @@ public:
const BOARD_ITEM &aBoardItem );
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/croundsegment2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/croundsegment2d.h
index 8524bc456c..0169323c4e 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/croundsegment2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/croundsegment2d.h
@@ -78,11 +78,11 @@ public:
const SFVEC2F &GetRightDir() const { return m_rightDir; }
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
static const float s_min_dot = (FLT_EPSILON * 4.0f) ;
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/ctriangle2d.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/ctriangle2d.h
index 71e361fa33..e43f2b8239 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/ctriangle2d.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes2D/ctriangle2d.h
@@ -60,11 +60,11 @@ public:
const SFVEC2F &GetP3() const { return p3; }
// Imported from COBJECT2D
- bool Overlaps( const CBBOX2D &aBBox ) const;
- bool Intersects( const CBBOX2D &aBBox ) const;
- bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const;
- INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const;
- bool IsPointInside( const SFVEC2F &aPoint ) const;
+ bool Overlaps( const CBBOX2D &aBBox ) const override;
+ bool Intersects( const CBBOX2D &aBBox ) const override;
+ bool Intersect( const RAYSEG2D &aSegRay, float *aOutT, SFVEC2F *aNormalOut ) const override;
+ INTERSECTION_RESULT IsBBoxInside( const CBBOX2D &aBBox ) const override;
+ bool IsPointInside( const SFVEC2F &aPoint ) const override;
};
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ccylinder.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ccylinder.h
index c6099fe88a..9a885e4b47 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ccylinder.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ccylinder.h
@@ -50,10 +50,10 @@ public:
void SetColor( SFVEC3F aObjColor ) { m_diffusecolor = aObjColor; }
// Imported from COBJECT
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool IntersectP(const RAY &aRay , float aMaxDistance ) const;
- bool Intersects( const CBBOX &aBBox ) const;
- SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool IntersectP(const RAY &aRay , float aMaxDistance ) const override;
+ bool Intersects( const CBBOX &aBBox ) const override;
+ SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const override;
private:
SFVEC2F m_center;
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cdummyblock.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cdummyblock.h
index e62564175f..bb88a3b502 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cdummyblock.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cdummyblock.h
@@ -45,10 +45,10 @@ public:
void SetColor( SFVEC3F aObjColor ) { m_diffusecolor = aObjColor; }
// Imported from COBJECT
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool IntersectP(const RAY &aRay , float aMaxDistance ) const;
- bool Intersects( const CBBOX &aBBox ) const;
- SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool IntersectP(const RAY &aRay , float aMaxDistance ) const override;
+ bool Intersects( const CBBOX &aBBox ) const override;
+ SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const override;
private:
SFVEC3F m_diffusecolor;
};
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/clayeritem.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/clayeritem.h
index 3c695087e5..f037eac21b 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/clayeritem.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/clayeritem.h
@@ -46,10 +46,10 @@ public:
void SetColor( SFVEC3F aObjColor ) { m_diffusecolor = aObjColor; }
// Imported from COBJECT
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool IntersectP(const RAY &aRay , float aMaxDistance ) const;
- bool Intersects( const CBBOX &aBBox ) const;
- SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool IntersectP(const RAY &aRay , float aMaxDistance ) const override;
+ bool Intersects( const CBBOX &aBBox ) const override;
+ SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const override;
private:
SFVEC3F m_diffusecolor;
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cplane.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cplane.h
index 299bb9714d..d5346325c6 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cplane.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/cplane.h
@@ -52,10 +52,10 @@ public:
void SetColor( SFVEC3F aObjColor ) { m_diffusecolor = aObjColor; }
// Imported from COBJECT
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool IntersectP(const RAY &aRay , float aMaxDistance ) const;
- bool Intersects( const CBBOX &aBBox ) const;
- SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool IntersectP(const RAY &aRay , float aMaxDistance ) const override;
+ bool Intersects( const CBBOX &aBBox ) const override;
+ SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const override;
private:
SFVEC3F m_centerPoint;
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/croundseg.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/croundseg.h
index 4d73baf2c9..bc9d369599 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/croundseg.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/croundseg.h
@@ -48,10 +48,10 @@ public:
void SetColor( SFVEC3F aObjColor ) { m_diffusecolor = aObjColor; }
// Imported from COBJECT
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool IntersectP( const RAY &aRay, float aMaxDistance ) const;
- bool Intersects( const CBBOX &aBBox ) const;
- SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool IntersectP( const RAY &aRay, float aMaxDistance ) const override;
+ bool Intersects( const CBBOX &aBBox ) const override;
+ SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const override;
private:
RAYSEG2D m_segment;
diff --git a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ctriangle.h b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ctriangle.h
index f6860f40a6..82a3145976 100644
--- a/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ctriangle.h
+++ b/3d-viewer/3d_rendering/3d_render_raytracing/shapes3D/ctriangle.h
@@ -64,10 +64,10 @@ public:
void SetUV( const SFVEC2F &aUV1, const SFVEC2F &aUV2, const SFVEC2F &aUV3 );
// Imported from COBJECT
- bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const;
- bool IntersectP(const RAY &aRay , float aMaxDistance ) const;
- bool Intersects( const CBBOX &aBBox ) const;
- SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const;
+ bool Intersect( const RAY &aRay, HITINFO &aHitInfo ) const override;
+ bool IntersectP(const RAY &aRay , float aMaxDistance ) const override;
+ bool Intersects( const CBBOX &aBBox ) const override;
+ SFVEC3F GetDiffuseColor( const HITINFO &aHitInfo ) const override;
private:
void pre_calc_const();
diff --git a/3d-viewer/3d_rendering/cpostshader_ssao.h b/3d-viewer/3d_rendering/cpostshader_ssao.h
index f1583299c9..3cc4366753 100644
--- a/3d-viewer/3d_rendering/cpostshader_ssao.h
+++ b/3d-viewer/3d_rendering/cpostshader_ssao.h
@@ -41,7 +41,7 @@ public:
//~CPOSTSHADER_SSAO();
// Imported from CPOSTSHADER
- SFVEC3F Shade(const SFVEC2I &aShaderPos ) const;
+ SFVEC3F Shade(const SFVEC2I &aShaderPos ) const override;
private:
SFVEC3F posFromDepth( const SFVEC2F &coord ) const;
diff --git a/3d-viewer/3d_rendering/ctrack_ball.h b/3d-viewer/3d_rendering/ctrack_ball.h
index 12d6e3e51a..5b81f5d569 100644
--- a/3d-viewer/3d_rendering/ctrack_ball.h
+++ b/3d-viewer/3d_rendering/ctrack_ball.h
@@ -40,23 +40,23 @@ class CTRACK_BALL : public CCAMERA
explicit CTRACK_BALL( float aRangeScale );
- void Drag( const wxPoint &aNewMousePosition );
+ void Drag( const wxPoint &aNewMousePosition ) override;
- void Pan( const wxPoint &aNewMousePosition );
+ void Pan( const wxPoint &aNewMousePosition ) override;
- void Pan( const SFVEC3F &aDeltaOffsetInc );
+ void Pan( const SFVEC3F &aDeltaOffsetInc ) override;
- void Pan_T1( const SFVEC3F &aDeltaOffsetInc );
+ void Pan_T1( const SFVEC3F &aDeltaOffsetInc ) override;
- void SetLookAtPos( const SFVEC3F &aLookAtPos );
+ void SetLookAtPos( const SFVEC3F &aLookAtPos ) override;
- void Reset();
+ void Reset() override;
- void Reset_T1();
+ void Reset_T1() override;
- void SetT0_and_T1_current_T();
+ void SetT0_and_T1_current_T() override;
- void Interpolate( float t );
+ void Interpolate( float t ) override;
private:
diff --git a/3d-viewer/3d_viewer/dialogs/dialog_3D_view_option.cpp b/3d-viewer/3d_viewer/dialogs/dialog_3D_view_option.cpp
index 39c143a57d..257795748a 100644
--- a/3d-viewer/3d_viewer/dialogs/dialog_3D_view_option.cpp
+++ b/3d-viewer/3d_viewer/dialogs/dialog_3D_view_option.cpp
@@ -38,9 +38,9 @@ private:
void initDialog();
// Event functions:
- void OnShowAllClick( wxCommandEvent& event );
- void OnShowNoneClick( wxCommandEvent& event );
- void OnOKClick( wxCommandEvent& event );
+ void OnShowAllClick( wxCommandEvent& event ) override;
+ void OnShowNoneClick( wxCommandEvent& event ) override;
+ void OnOKClick( wxCommandEvent& event ) override;
};
diff --git a/3d-viewer/3d_viewer/eda_3d_viewer.h b/3d-viewer/3d_viewer/eda_3d_viewer.h
index 686e82fdaf..ec4efc0303 100644
--- a/3d-viewer/3d_viewer/eda_3d_viewer.h
+++ b/3d-viewer/3d_viewer/eda_3d_viewer.h
@@ -185,9 +185,9 @@ class EDA_3D_VIEWER : public KIWAY_PLAYER
void SetToolbars();
- void SaveSettings( wxConfigBase *aCfg );
+ void SaveSettings( wxConfigBase *aCfg ) override;
- void LoadSettings( wxConfigBase *aCfg );
+ void LoadSettings( wxConfigBase *aCfg ) override;
void OnLeftClick( wxDC *DC, const wxPoint &MousePos );
diff --git a/bitmap2component/bitmap2cmp_gui.cpp b/bitmap2component/bitmap2cmp_gui.cpp
index 99ad647795..c514aa1095 100644
--- a/bitmap2component/bitmap2cmp_gui.cpp
+++ b/bitmap2component/bitmap2cmp_gui.cpp
@@ -87,14 +87,14 @@ public:
~BM2CMP_FRAME();
// overload KIWAY_PLAYER virtual
- bool OpenProjectFiles( const std::vector& aFilenames, int aCtl=0 );
+ bool OpenProjectFiles( const std::vector& aFilenames, int aCtl=0 ) override;
private:
// Event handlers
- void OnPaint( wxPaintEvent& event );
- void OnLoadFile( wxCommandEvent& event );
- void OnExport( wxCommandEvent& event );
+ void OnPaint( wxPaintEvent& event ) override;
+ void OnLoadFile( wxCommandEvent& event ) override;
+ void OnExport( wxCommandEvent& event ) override;
/**
* Generate a schematic library which contains one component:
@@ -119,9 +119,9 @@ private:
void OnExportLogo();
void Binarize( double aThreshold ); // aThreshold = 0.0 (black level) to 1.0 (white level)
- void OnOptionsSelection( wxCommandEvent& event );
- void OnThresholdChange( wxScrollEvent& event );
- void OnResolutionChange( wxCommandEvent& event );
+ void OnOptionsSelection( wxCommandEvent& event ) override;
+ void OnThresholdChange( wxScrollEvent& event ) override;
+ void OnResolutionChange( wxCommandEvent& event ) override;
// called when texts controls which handle the image resolution
// lose the focus, to ensure the right values are displayed
@@ -141,7 +141,7 @@ private:
void NegateGreyscaleImage( );
void ExportFile( FILE* aOutfile, OUTPUT_FMT_ID aFormat );
void updateImageInfo();
- void OnFormatChange( wxCommandEvent& event );
+ void OnFormatChange( wxCommandEvent& event ) override;
};
@@ -668,7 +668,7 @@ namespace BMP2CMP {
static struct IFACE : public KIFACE_I
{
- bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits );
+ bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override;
wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 )
{
diff --git a/common/confirm.cpp b/common/confirm.cpp
index cc3c9b0a1e..af25736e95 100644
--- a/common/confirm.cpp
+++ b/common/confirm.cpp
@@ -50,8 +50,8 @@ public:
};
private:
- void OnSaveAndExit( wxCommandEvent& event ) { EndModal( wxID_YES ); }
- void OnExitNoSave( wxCommandEvent& event ) { EndModal( wxID_NO ); }
+ void OnSaveAndExit( wxCommandEvent& event ) override { EndModal( wxID_YES ); }
+ void OnExitNoSave( wxCommandEvent& event ) override { EndModal( wxID_NO ); }
};
diff --git a/common/dialogs/dialog_image_editor.h b/common/dialogs/dialog_image_editor.h
index 226221c239..91e3f87100 100644
--- a/common/dialogs/dialog_image_editor.h
+++ b/common/dialogs/dialog_image_editor.h
@@ -53,15 +53,15 @@ public:
void TransfertToImage( BITMAP_BASE* aItem );
private:
- void OnUndoLastChange( wxCommandEvent& event );
- void OnGreyScaleConvert( wxCommandEvent& event );
- void OnHalfSize( wxCommandEvent& event );
- void OnMirrorX_click( wxCommandEvent& event );
- void OnMirrorY_click( wxCommandEvent& event );
- void OnRotateClick( wxCommandEvent& event );
- void OnOK_Button( wxCommandEvent& aEvent );
- void OnCancel_Button( wxCommandEvent& aEvent );
- void OnRedrawPanel( wxPaintEvent& event );
+ void OnUndoLastChange( wxCommandEvent& event ) override;
+ void OnGreyScaleConvert( wxCommandEvent& event ) override;
+ void OnHalfSize( wxCommandEvent& event ) override;
+ void OnMirrorX_click( wxCommandEvent& event ) override;
+ void OnMirrorY_click( wxCommandEvent& event ) override;
+ void OnRotateClick( wxCommandEvent& event ) override;
+ void OnOK_Button( wxCommandEvent& aEvent ) override;
+ void OnCancel_Button( wxCommandEvent& aEvent ) override;
+ void OnRedrawPanel( wxPaintEvent& event ) override;
bool CheckValues();
};
diff --git a/common/dialogs/dialog_page_settings.h b/common/dialogs/dialog_page_settings.h
index 5127886f29..d5e891b2e9 100644
--- a/common/dialogs/dialog_page_settings.h
+++ b/common/dialogs/dialog_page_settings.h
@@ -73,29 +73,29 @@ private:
void initDialog(); // Initialisation of member variables
// event handler for button OK
- void OnOkClick( wxCommandEvent& event );
+ void OnOkClick( wxCommandEvent& event ) override;
// event handlers for page size choice
- void OnPaperSizeChoice( wxCommandEvent& event );
- void OnUserPageSizeXTextUpdated( wxCommandEvent& event );
- void OnUserPageSizeYTextUpdated( wxCommandEvent& event );
- void OnPageOrientationChoice( wxCommandEvent& event );
+ void OnPaperSizeChoice( wxCommandEvent& event ) override;
+ void OnUserPageSizeXTextUpdated( wxCommandEvent& event ) override;
+ void OnUserPageSizeYTextUpdated( wxCommandEvent& event ) override;
+ void OnPageOrientationChoice( wxCommandEvent& event ) override;
// event handler for texts in title block
- void OnRevisionTextUpdated( wxCommandEvent& event );
- void OnDateTextUpdated( wxCommandEvent& event );
- void OnTitleTextUpdated( wxCommandEvent& event );
- void OnCompanyTextUpdated( wxCommandEvent& event );
- void OnComment1TextUpdated( wxCommandEvent& event );
- void OnComment2TextUpdated( wxCommandEvent& event );
- void OnComment3TextUpdated( wxCommandEvent& event );
- void OnComment4TextUpdated( wxCommandEvent& event );
+ void OnRevisionTextUpdated( wxCommandEvent& event ) override;
+ void OnDateTextUpdated( wxCommandEvent& event ) override;
+ void OnTitleTextUpdated( wxCommandEvent& event ) override;
+ void OnCompanyTextUpdated( wxCommandEvent& event ) override;
+ void OnComment1TextUpdated( wxCommandEvent& event ) override;
+ void OnComment2TextUpdated( wxCommandEvent& event ) override;
+ void OnComment3TextUpdated( wxCommandEvent& event ) override;
+ void OnComment4TextUpdated( wxCommandEvent& event ) override;
// Handle button click for setting the date from the picker
- void OnDateApplyClick( wxCommandEvent& event );
+ void OnDateApplyClick( wxCommandEvent& event ) override;
// .kicad_wks file description selection
- void OnWksFileSelection( wxCommandEvent& event );
+ void OnWksFileSelection( wxCommandEvent& event ) override;
// Save in the current title block the new page settings
// return true if changes are made, or false if not
diff --git a/common/dialogs/wx_html_report_panel.h b/common/dialogs/wx_html_report_panel.h
index 03e351f359..68bbc099b6 100644
--- a/common/dialogs/wx_html_report_panel.h
+++ b/common/dialogs/wx_html_report_panel.h
@@ -59,7 +59,7 @@ public:
void Clear();
///> sets the frame label
- void SetLabel( const wxString& aLabel );
+ void SetLabel( const wxString& aLabel ) override;
///> Sets the lasy update. If this mode is on, messages are stored but the display
///> is not updated (Updating display can be very time consumming if there are many messages)
@@ -94,13 +94,13 @@ private:
void scrollToBottom();
void syncCheckboxes();
- void onCheckBoxShowAll( wxCommandEvent& event );
- void onCheckBoxShowWarnings( wxCommandEvent& event );
- void onCheckBoxShowErrors( wxCommandEvent& event );
- void onCheckBoxShowInfos( wxCommandEvent& event );
- void onCheckBoxShowActions( wxCommandEvent& event );
+ void onCheckBoxShowAll( wxCommandEvent& event ) override;
+ void onCheckBoxShowWarnings( wxCommandEvent& event ) override;
+ void onCheckBoxShowErrors( wxCommandEvent& event ) override;
+ void onCheckBoxShowInfos( wxCommandEvent& event ) override;
+ void onCheckBoxShowActions( wxCommandEvent& event ) override;
- void onBtnSaveToFile( wxCommandEvent& event );
+ void onBtnSaveToFile( wxCommandEvent& event ) override;
///> copy of the report, stored for filtering
REPORT_LINES m_report;
diff --git a/cvpcb/class_DisplayFootprintsFrame.h b/cvpcb/class_DisplayFootprintsFrame.h
index f4cbf7c0ee..cd8bba6b0d 100644
--- a/cvpcb/class_DisplayFootprintsFrame.h
+++ b/cvpcb/class_DisplayFootprintsFrame.h
@@ -45,15 +45,15 @@ public:
DISPLAY_FOOTPRINTS_FRAME( KIWAY* aKiway, CVPCB_MAINFRAME* aParent );
~DISPLAY_FOOTPRINTS_FRAME();
- void OnCloseWindow( wxCloseEvent& Event );
+ void OnCloseWindow( wxCloseEvent& Event ) override;
/*
* Draws the current highlighted footprint.
*/
- void RedrawActiveWindow( wxDC* DC, bool EraseBg );
+ void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
- void ReCreateHToolbar();
- void ReCreateVToolbar();
+ void ReCreateHToolbar() override;
+ void ReCreateVToolbar() override;
void ReCreateOptToolbar();
void RecreateMenuBar();
@@ -74,7 +74,7 @@ public:
* Function IsGridVisible() , virtual
* @return true if the grid must be shown
*/
- virtual bool IsGridVisible() const;
+ virtual bool IsGridVisible() const override;
/**
* Function SetGridVisibility() , virtual
@@ -82,17 +82,17 @@ public:
* if you want to store/retrieve the grid visibility in configuration.
* @param aVisible = true if the grid must be shown
*/
- virtual void SetGridVisibility( bool aVisible );
+ virtual void SetGridVisibility( bool aVisible ) override;
/**
* Function GetGridColor() , virtual
* @return the color of the grid
*/
- virtual EDA_COLOR_T GetGridColor() const;
+ virtual EDA_COLOR_T GetGridColor() const override;
- void OnLeftClick( wxDC* DC, const wxPoint& MousePos );
- void OnLeftDClick( wxDC* DC, const wxPoint& MousePos );
- bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu );
- bool GeneralControl( wxDC* DC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 );
+ void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) override;
+ void OnLeftDClick( wxDC* DC, const wxPoint& MousePos ) override;
+ bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu ) override;
+ bool GeneralControl( wxDC* DC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
void InstallOptionsDisplay( wxCommandEvent& event );
MODULE* Get_Module( const wxString& CmpName );
@@ -104,7 +104,7 @@ public:
/**
* Display 3D frame of current footprint selection.
*/
- void Show3D_Frame( wxCommandEvent& event );
+ void Show3D_Frame( wxCommandEvent& event ) override;
/* SaveCopyInUndoList() virtual
* currently: do nothing in CvPcb.
diff --git a/cvpcb/cvpcb.cpp b/cvpcb/cvpcb.cpp
index 512f61bb5d..9e3ee826a1 100644
--- a/cvpcb/cvpcb.cpp
+++ b/cvpcb/cvpcb.cpp
@@ -65,9 +65,9 @@ static struct IFACE : public KIFACE_I
KIFACE_I( aName, aType )
{}
- bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits );
+ bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override;
- void OnKifaceEnd();
+ void OnKifaceEnd() override;
wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 )
{
diff --git a/cvpcb/cvpcb_mainframe.h b/cvpcb/cvpcb_mainframe.h
index d62747ef22..d9895d818d 100644
--- a/cvpcb/cvpcb_mainframe.h
+++ b/cvpcb/cvpcb_mainframe.h
@@ -115,7 +115,7 @@ public:
void OnCloseWindow( wxCloseEvent& Event );
void OnSize( wxSizeEvent& SizeEvent );
void ReCreateHToolbar();
- virtual void ReCreateMenuBar();
+ virtual void ReCreateMenuBar() override;
void ChangeFocus( bool aMoveRight );
diff --git a/cvpcb/dialogs/dialog_config_equfiles.h b/cvpcb/dialogs/dialog_config_equfiles.h
index 1dbbf47e77..bbe84e2dbc 100644
--- a/cvpcb/dialogs/dialog_config_equfiles.h
+++ b/cvpcb/dialogs/dialog_config_equfiles.h
@@ -44,13 +44,13 @@ private:
void Init();
// Virtual event handlers
- void OnCloseWindow( wxCloseEvent& event );
- void OnOkClick( wxCommandEvent& event );
- void OnAddFiles( wxCommandEvent& event );
- void OnEditEquFile( wxCommandEvent& event );
- void OnRemoveFiles( wxCommandEvent& event );
- void OnButtonMoveUp( wxCommandEvent& event );
- void OnButtonMoveDown( wxCommandEvent& event );
+ void OnCloseWindow( wxCloseEvent& event ) override;
+ void OnOkClick( wxCommandEvent& event ) override;
+ void OnAddFiles( wxCommandEvent& event ) override;
+ void OnEditEquFile( wxCommandEvent& event ) override;
+ void OnRemoveFiles( wxCommandEvent& event ) override;
+ void OnButtonMoveUp( wxCommandEvent& event ) override;
+ void OnButtonMoveDown( wxCommandEvent& event ) override;
int getEnvVarCount() // Get the number of rows in env var table
{
diff --git a/cvpcb/dialogs/dialog_display_options.h b/cvpcb/dialogs/dialog_display_options.h
index f39846454c..92fb8468fe 100644
--- a/cvpcb/dialogs/dialog_display_options.h
+++ b/cvpcb/dialogs/dialog_display_options.h
@@ -49,9 +49,9 @@ public:
private:
void initDialog( );
void UpdateObjectSettings( void );
- void OnApplyClick( wxCommandEvent& event );
- void OnCancelClick( wxCommandEvent& event );
- void OnOkClick( wxCommandEvent& event );
+ void OnApplyClick( wxCommandEvent& event ) override;
+ void OnCancelClick( wxCommandEvent& event ) override;
+ void OnOkClick( wxCommandEvent& event ) override;
};
#endif // _DIALOG_DISPLAY_OPTIONS_H_
diff --git a/cvpcb/dialogs/fp_conflict_assignment_selector.h b/cvpcb/dialogs/fp_conflict_assignment_selector.h
index 9beeb3fc13..aa5ca7f49c 100644
--- a/cvpcb/dialogs/fp_conflict_assignment_selector.h
+++ b/cvpcb/dialogs/fp_conflict_assignment_selector.h
@@ -63,13 +63,13 @@ class DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR : public DIALOG_FP_CONFLICT_ASSIGNM
int GetSelection( const wxString& aReference );
private:
- void OnSize( wxSizeEvent& event );
+ void OnSize( wxSizeEvent& event ) override;
// Virtual: called when clicking on the column title:
// when it is a column choice, set all item choices.
- void OnColumnClick( wxListEvent& event );
+ void OnColumnClick( wxListEvent& event ) override;
- void OnItemClicked( wxMouseEvent& event );
+ void OnItemClicked( wxMouseEvent& event ) override;
void OnCancelClick( wxCommandEvent& event ) { EndModal( wxID_CANCEL ); }
void OnOKClick( wxCommandEvent& event ) { EndModal( wxID_OK ); }
diff --git a/cvpcb/listview_classes.h b/cvpcb/listview_classes.h
index c5f2474bcf..0cb4290372 100644
--- a/cvpcb/listview_classes.h
+++ b/cvpcb/listview_classes.h
@@ -131,7 +131,7 @@ public:
* this overloaded function MUST be provided for the wxLC_VIRTUAL mode
* because real data is not handled by ITEMS_LISTBOX_BASE
*/
- wxString OnGetItemText( long item, long column ) const;
+ wxString OnGetItemText( long item, long column ) const override;
// Events functions:
void OnLeftClick( wxListEvent& event );
@@ -161,7 +161,7 @@ public:
void SetLibraryList( const wxArrayString& aList );
wxString GetSelectedLibrary();
- wxString OnGetItemText( long item, long column ) const;
+ wxString OnGetItemText( long item, long column ) const override;
// Events functions:
void OnLeftClick( wxListEvent& event );
@@ -209,7 +209,7 @@ public:
* this overloaded function MUST be provided for the wxLC_VIRTUAL mode
* because real data is not handled by ITEMS_LISTBOX_BASE
*/
- wxString OnGetItemText( long item, long column ) const;
+ wxString OnGetItemText( long item, long column ) const override;
/*
* Enable or disable an item
diff --git a/eeschema/class_sch_screen.h b/eeschema/class_sch_screen.h
index 2fb40438fc..328937908b 100644
--- a/eeschema/class_sch_screen.h
+++ b/eeschema/class_sch_screen.h
@@ -342,7 +342,7 @@ public:
* items are removed from the beginning of the list.
* So this function can be called to remove old commands
*/
- virtual void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 );
+ virtual void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 ) override;
/**
* Function Save
diff --git a/eeschema/dialogs/dialog_annotate.cpp b/eeschema/dialogs/dialog_annotate.cpp
index 5c8b002b99..5ea48defc7 100644
--- a/eeschema/dialogs/dialog_annotate.cpp
+++ b/eeschema/dialogs/dialog_annotate.cpp
@@ -61,9 +61,9 @@ private:
/// Initialises member variables
void InitValues();
- void OnCancelClick( wxCommandEvent& event );
- void OnClearAnnotationCmpClick( wxCommandEvent& event );
- void OnApplyClick( wxCommandEvent& event );
+ void OnCancelClick( wxCommandEvent& event ) override;
+ void OnClearAnnotationCmpClick( wxCommandEvent& event ) override;
+ void OnApplyClick( wxCommandEvent& event ) override;
// User functions:
bool GetLevel();
diff --git a/eeschema/dialogs/dialog_bom.cpp b/eeschema/dialogs/dialog_bom.cpp
index 16ccce5d46..b971a1f7c6 100644
--- a/eeschema/dialogs/dialog_bom.cpp
+++ b/eeschema/dialogs/dialog_bom.cpp
@@ -185,16 +185,16 @@ public:
~DIALOG_BOM();
private:
- void OnPluginSelected( wxCommandEvent& event );
- void OnRunPlugin( wxCommandEvent& event );
- void OnCancelClick( wxCommandEvent& event );
- void OnHelp( wxCommandEvent& event );
- void OnAddPlugin( wxCommandEvent& event );
- void OnRemovePlugin( wxCommandEvent& event );
- void OnEditPlugin( wxCommandEvent& event );
- void OnCommandLineEdited( wxCommandEvent& event );
- void OnNameEdited( wxCommandEvent& event );
- void OnShowConsoleChanged( wxCommandEvent& event );
+ void OnPluginSelected( wxCommandEvent& event ) override;
+ void OnRunPlugin( wxCommandEvent& event ) override;
+ void OnCancelClick( wxCommandEvent& event ) override;
+ void OnHelp( wxCommandEvent& event ) override;
+ void OnAddPlugin( wxCommandEvent& event ) override;
+ void OnRemovePlugin( wxCommandEvent& event ) override;
+ void OnEditPlugin( wxCommandEvent& event ) override;
+ void OnCommandLineEdited( wxCommandEvent& event ) override;
+ void OnNameEdited( wxCommandEvent& event ) override;
+ void OnShowConsoleChanged( wxCommandEvent& event ) override;
void pluginInit();
void installPluginsList();
diff --git a/eeschema/dialogs/dialog_choose_component.h b/eeschema/dialogs/dialog_choose_component.h
index 8d8ac24edb..9d83df8c8c 100644
--- a/eeschema/dialogs/dialog_choose_component.h
+++ b/eeschema/dialogs/dialog_choose_component.h
@@ -71,17 +71,17 @@ public:
bool IsExternalBrowserSelected() const { return m_external_browser_requested; }
protected:
- virtual void OnSearchBoxChange( wxCommandEvent& aEvent );
- virtual void OnSearchBoxEnter( wxCommandEvent& aEvent );
- virtual void OnInterceptSearchBoxKey( wxKeyEvent& aEvent );
+ virtual void OnSearchBoxChange( wxCommandEvent& aEvent ) override;
+ virtual void OnSearchBoxEnter( wxCommandEvent& aEvent ) override;
+ virtual void OnInterceptSearchBoxKey( wxKeyEvent& aEvent ) override;
- virtual void OnTreeSelect( wxTreeEvent& aEvent );
- virtual void OnDoubleClickTreeActivation( wxTreeEvent& aEvent );
- virtual void OnInterceptTreeEnter( wxKeyEvent& aEvent );
- virtual void OnTreeMouseUp( wxMouseEvent& aMouseEvent );
+ virtual void OnTreeSelect( wxTreeEvent& aEvent ) override;
+ virtual void OnDoubleClickTreeActivation( wxTreeEvent& aEvent ) override;
+ virtual void OnInterceptTreeEnter( wxKeyEvent& aEvent ) override;
+ virtual void OnTreeMouseUp( wxMouseEvent& aMouseEvent ) override;
- virtual void OnStartComponentBrowser( wxMouseEvent& aEvent );
- virtual void OnHandlePreviewRepaint( wxPaintEvent& aRepaintEvent );
+ virtual void OnStartComponentBrowser( wxMouseEvent& aEvent ) override;
+ virtual void OnHandlePreviewRepaint( wxPaintEvent& aRepaintEvent ) override;
private:
bool updateSelection();
diff --git a/eeschema/dialogs/dialog_edit_component_in_lib.h b/eeschema/dialogs/dialog_edit_component_in_lib.h
index 829a8cc45b..e32d3a650c 100644
--- a/eeschema/dialogs/dialog_edit_component_in_lib.h
+++ b/eeschema/dialogs/dialog_edit_component_in_lib.h
@@ -50,20 +50,20 @@ private:
void initDlg();
void InitPanelDoc();
void InitBasicPanel();
- void OnCancelClick( wxCommandEvent& event );
- void OnOkClick(wxCommandEvent& event);
- void DeleteAllAliasOfPart(wxCommandEvent& event);
- void DeleteAliasOfPart(wxCommandEvent& event);
- void AddAliasOfPart(wxCommandEvent& event);
+ void OnCancelClick( wxCommandEvent& event ) override;
+ void OnOkClick(wxCommandEvent& event) override;
+ void DeleteAllAliasOfPart(wxCommandEvent& event) override;
+ void DeleteAliasOfPart(wxCommandEvent& event) override;
+ void AddAliasOfPart(wxCommandEvent& event) override;
bool ChangeNbUnitsPerPackage(int newUnit);
bool SetUnsetConvert();
- void CopyDocFromRootToAlias(wxCommandEvent& event);
- void BrowseAndSelectDocFile(wxCommandEvent& event);
+ void CopyDocFromRootToAlias(wxCommandEvent& event) override;
+ void BrowseAndSelectDocFile(wxCommandEvent& event) override;
- void DeleteAllFootprintFilter(wxCommandEvent& event);
- void DeleteOneFootprintFilter(wxCommandEvent& event);
- void AddFootprintFilter(wxCommandEvent& event);
- void EditOneFootprintFilter( wxCommandEvent& event );
+ void DeleteAllFootprintFilter(wxCommandEvent& event) override;
+ void DeleteOneFootprintFilter(wxCommandEvent& event) override;
+ void AddFootprintFilter(wxCommandEvent& event) override;
+ void EditOneFootprintFilter( wxCommandEvent& event ) override;
};
#endif
diff --git a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp
index 3a65c99f41..e288fe8921 100644
--- a/eeschema/dialogs/dialog_edit_component_in_schematic.cpp
+++ b/eeschema/dialogs/dialog_edit_component_in_schematic.cpp
@@ -118,18 +118,18 @@ private:
}
// event handlers
- void OnCloseDialog( wxCloseEvent& event );
- void OnListItemDeselected( wxListEvent& event );
- void OnListItemSelected( wxListEvent& event );
- void OnCancelButtonClick( wxCommandEvent& event );
- void OnOKButtonClick( wxCommandEvent& event );
- void SetInitCmp( wxCommandEvent& event );
- void addFieldButtonHandler( wxCommandEvent& event );
- void deleteFieldButtonHandler( wxCommandEvent& event );
- void moveUpButtonHandler( wxCommandEvent& event );
- void showButtonHandler( wxCommandEvent& event );
- void OnTestChipName( wxCommandEvent& event );
- void OnSelectChipName( wxCommandEvent& event );
+ void OnCloseDialog( wxCloseEvent& event ) override;
+ void OnListItemDeselected( wxListEvent& event ) override;
+ void OnListItemSelected( wxListEvent& event ) override;
+ void OnCancelButtonClick( wxCommandEvent& event ) override;
+ void OnOKButtonClick( wxCommandEvent& event ) override;
+ void SetInitCmp( wxCommandEvent& event ) override;
+ void addFieldButtonHandler( wxCommandEvent& event ) override;
+ void deleteFieldButtonHandler( wxCommandEvent& event ) override;
+ void moveUpButtonHandler( wxCommandEvent& event ) override;
+ void showButtonHandler( wxCommandEvent& event ) override;
+ void OnTestChipName( wxCommandEvent& event ) override;
+ void OnSelectChipName( wxCommandEvent& event ) override;
void OnInitDlg( wxInitDialogEvent& event )
{
TransferDataToWindow();
diff --git a/eeschema/dialogs/dialog_edit_label.cpp b/eeschema/dialogs/dialog_edit_label.cpp
index 9c653fd1b4..bf62ac3e85 100644
--- a/eeschema/dialogs/dialog_edit_label.cpp
+++ b/eeschema/dialogs/dialog_edit_label.cpp
@@ -76,10 +76,10 @@ public:
}
private:
- void InitDialog( );
- virtual void OnEnterKey( wxCommandEvent& aEvent );
- virtual void OnOkClick( wxCommandEvent& aEvent );
- virtual void OnCancelClick( wxCommandEvent& aEvent );
+ void InitDialog( ) override;
+ virtual void OnEnterKey( wxCommandEvent& aEvent ) override;
+ virtual void OnOkClick( wxCommandEvent& aEvent ) override;
+ virtual void OnCancelClick( wxCommandEvent& aEvent ) override;
void TextPropertiesAccept( wxCommandEvent& aEvent );
SCH_EDIT_FRAME* m_Parent;
diff --git a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
index b2c824ee58..ac1b03aff6 100644
--- a/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
+++ b/eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
@@ -60,12 +60,12 @@ public:
private:
// Events handlers:
- void OnInitDialog( wxInitDialogEvent& event );
- void OnCloseDialog( wxCloseEvent& event );
+ void OnInitDialog( wxInitDialogEvent& event ) override;
+ void OnCloseDialog( wxCloseEvent& event ) override;
- void OnListItemDeselected( wxListEvent& event );
- void OnListItemSelected( wxListEvent& event );
- void addFieldButtonHandler( wxCommandEvent& event );
+ void OnListItemDeselected( wxListEvent& event ) override;
+ void OnListItemSelected( wxListEvent& event ) override;
+ void addFieldButtonHandler( wxCommandEvent& event ) override;
/**
* Function deleteFieldButtonHandler
@@ -74,12 +74,12 @@ private:
* If a field is empty, it is removed.
* if not empty, the text is removed.
*/
- void deleteFieldButtonHandler( wxCommandEvent& event );
+ void deleteFieldButtonHandler( wxCommandEvent& event ) override;
- void moveUpButtonHandler( wxCommandEvent& event );
- void OnCancelButtonClick( wxCommandEvent& event );
- void OnOKButtonClick( wxCommandEvent& event );
- void showButtonHandler( wxCommandEvent& event );
+ void moveUpButtonHandler( wxCommandEvent& event ) override;
+ void OnCancelButtonClick( wxCommandEvent& event ) override;
+ void OnOKButtonClick( wxCommandEvent& event ) override;
+ void showButtonHandler( wxCommandEvent& event ) override;
// internal functions:
void setSelectedFieldNdx( int aFieldNdx );
diff --git a/eeschema/dialogs/dialog_edit_one_field.h b/eeschema/dialogs/dialog_edit_one_field.h
index d12e47ba1e..714fc96ac5 100644
--- a/eeschema/dialogs/dialog_edit_one_field.h
+++ b/eeschema/dialogs/dialog_edit_one_field.h
@@ -52,9 +52,9 @@ public:
~DIALOG_EDIT_ONE_FIELD() {}
- virtual bool TransferDataToWindow();
+ virtual bool TransferDataToWindow() override;
- virtual bool TransferDataFromWindow();
+ virtual bool TransferDataFromWindow() override;
SCH_BASE_FRAME* GetParent() { return dynamic_cast< SCH_BASE_FRAME* >( wxDialog::GetParent() ); }
@@ -75,7 +75,7 @@ protected:
*
* @param aEvent is the the wX event thrown when the button is clicked, this isn't used
*/
- void OnTextValueSelectButtonClick( wxCommandEvent& aEvent );
+ void OnTextValueSelectButtonClick( wxCommandEvent& aEvent ) override;
/// @todo Update DIALOG_SHIM to handle this transparently so no matter what mode the
/// dialogs is shown, everything is handled without this ugliness.
diff --git a/eeschema/dialogs/dialog_eeschema_config.cpp b/eeschema/dialogs/dialog_eeschema_config.cpp
index 0d0d16ebe9..597da70086 100644
--- a/eeschema/dialogs/dialog_eeschema_config.cpp
+++ b/eeschema/dialogs/dialog_eeschema_config.cpp
@@ -65,12 +65,12 @@ private:
//------ event handlers, overiding the fbp handlers --------------
- void OnCloseWindow( wxCloseEvent& event );
+ void OnCloseWindow( wxCloseEvent& event ) override;
/* Remove a library to the library list.
* The real list (m_Parent->m_ComponentLibFiles) is not changed, so the change can be canceled
*/
- void OnRemoveLibClick( wxCommandEvent& event );
+ void OnRemoveLibClick( wxCommandEvent& event ) override;
/* Insert or add a library to the library list:
* The new library is put in list before (insert button) the selection,
@@ -78,14 +78,14 @@ private:
* The real list (m_Parent->m_ComponentLibFiles) is not changed, so the change
* can be canceled
*/
- void OnAddOrInsertLibClick( wxCommandEvent& event );
+ void OnAddOrInsertLibClick( wxCommandEvent& event ) override;
- void OnAddOrInsertPath( wxCommandEvent& event );
- void OnOkClick( wxCommandEvent& event );
- void OnCancelClick( wxCommandEvent& event );
- void OnRemoveUserPath( wxCommandEvent& event );
- void OnButtonUpClick( wxCommandEvent& event );
- void OnButtonDownClick( wxCommandEvent& event );
+ void OnAddOrInsertPath( wxCommandEvent& event ) override;
+ void OnOkClick( wxCommandEvent& event ) override;
+ void OnCancelClick( wxCommandEvent& event ) override;
+ void OnRemoveUserPath( wxCommandEvent& event ) override;
+ void OnButtonUpClick( wxCommandEvent& event ) override;
+ void OnButtonDownClick( wxCommandEvent& event ) override;
};
diff --git a/eeschema/dialogs/dialog_eeschema_options.h b/eeschema/dialogs/dialog_eeschema_options.h
index 6349a6c7d2..55cbaa0f0d 100644
--- a/eeschema/dialogs/dialog_eeschema_options.h
+++ b/eeschema/dialogs/dialog_eeschema_options.h
@@ -56,7 +56,7 @@ protected:
*
* Adds a new template fieldname (with default values) to the template fieldnames data
*/
- void OnAddButtonClick( wxCommandEvent& event );
+ void OnAddButtonClick( wxCommandEvent& event ) override;
/**
* Function OnDeleteButtonClick
@@ -67,19 +67,19 @@ protected:
*
* Deletes the selected template fieldname from the template fieldnames data
*/
- void OnDeleteButtonClick( wxCommandEvent& event );
+ void OnDeleteButtonClick( wxCommandEvent& event ) override;
/**
* Function TransferDataToWindow
* Transfer data into the GUI.
*/
- bool TransferDataToWindow();
+ bool TransferDataToWindow() override;
/**
* Function TransferDataFromWindow
* Transfer data out of the GUI.
*/
- bool TransferDataFromWindow();
+ bool TransferDataFromWindow() override;
public:
/**
diff --git a/eeschema/dialogs/dialog_erc.h b/eeschema/dialogs/dialog_erc.h
index 27192773aa..8b3a96c575 100644
--- a/eeschema/dialogs/dialog_erc.h
+++ b/eeschema/dialogs/dialog_erc.h
@@ -58,17 +58,17 @@ private:
void Init();
// from DIALOG_ERC_BASE:
- void OnCloseErcDialog( wxCloseEvent& event );
- void OnErcCmpClick( wxCommandEvent& event );
- void OnEraseDrcMarkersClick( wxCommandEvent& event );
- void OnButtonCloseClick( wxCommandEvent& event );
- void OnResetMatrixClick( wxCommandEvent& event );
+ void OnCloseErcDialog( wxCloseEvent& event ) override;
+ void OnErcCmpClick( wxCommandEvent& event ) override;
+ void OnEraseDrcMarkersClick( wxCommandEvent& event ) override;
+ void OnButtonCloseClick( wxCommandEvent& event ) override;
+ void OnResetMatrixClick( wxCommandEvent& event ) override;
// Click on a marker info:
- void OnLeftClickMarkersList( wxHtmlLinkEvent& event );
+ void OnLeftClickMarkersList( wxHtmlLinkEvent& event ) override;
// Double click on a marker info:
- void OnLeftDblClickMarkersList( wxMouseEvent& event );
+ void OnLeftDblClickMarkersList( wxMouseEvent& event ) override;
void TestErc( wxArrayString* aMessagesList );
void DisplayERC_MarkersList();
diff --git a/eeschema/dialogs/dialog_lib_edit_pin.h b/eeschema/dialogs/dialog_lib_edit_pin.h
index dab9d9022e..700d7a3450 100644
--- a/eeschema/dialogs/dialog_lib_edit_pin.h
+++ b/eeschema/dialogs/dialog_lib_edit_pin.h
@@ -46,13 +46,13 @@ public:
DIALOG_LIB_EDIT_PIN( EDA_DRAW_FRAME* parent, LIB_PIN* aPin );
~DIALOG_LIB_EDIT_PIN();
- void OnInitDialog( wxInitDialogEvent& event);
+ void OnInitDialog( wxInitDialogEvent& event) override;
- void OnCloseDialog( wxCloseEvent& event );
- void OnCancelButtonClick( wxCommandEvent& event );
- void OnOKButtonClick( wxCommandEvent& event );
- void OnPaintShowPanel( wxPaintEvent& event );
- void OnPropertiesChange( wxCommandEvent& event );
+ void OnCloseDialog( wxCloseEvent& event ) override;
+ void OnCancelButtonClick( wxCommandEvent& event ) override;
+ void OnOKButtonClick( wxCommandEvent& event ) override;
+ void OnPaintShowPanel( wxPaintEvent& event ) override;
+ void OnPropertiesChange( wxCommandEvent& event ) override;
void SetOrientationList( const wxArrayString& list, const BITMAP_DEF* aBitmaps );
void SetOrientation( int orientation )
diff --git a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp
index c652bd76d0..4a299d4042 100644
--- a/eeschema/dialogs/dialog_lib_edit_pin_table.cpp
+++ b/eeschema/dialogs/dialog_lib_edit_pin_table.cpp
@@ -48,14 +48,14 @@ public:
DataViewModel( LIB_PART& aPart );
// wxDataViewModel
- virtual unsigned int GetColumnCount() const;
- virtual wxString GetColumnType( unsigned int col ) const;
- virtual void GetValue( wxVariant&, const wxDataViewItem&, unsigned int ) const;
- virtual bool SetValue( const wxVariant&, const wxDataViewItem&, unsigned int );
- virtual wxDataViewItem GetParent( const wxDataViewItem& ) const;
- virtual bool IsContainer( const wxDataViewItem& ) const;
- virtual bool HasContainerColumns( const wxDataViewItem& ) const;
- virtual unsigned int GetChildren( const wxDataViewItem&, wxDataViewItemArray& ) const;
+ virtual unsigned int GetColumnCount() const override;
+ virtual wxString GetColumnType( unsigned int col ) const override;
+ virtual void GetValue( wxVariant&, const wxDataViewItem&, unsigned int ) const override;
+ virtual bool SetValue( const wxVariant&, const wxDataViewItem&, unsigned int ) override;
+ virtual wxDataViewItem GetParent( const wxDataViewItem& ) const override;
+ virtual bool IsContainer( const wxDataViewItem& ) const override;
+ virtual bool HasContainerColumns( const wxDataViewItem& ) const override;
+ virtual unsigned int GetChildren( const wxDataViewItem&, wxDataViewItemArray& ) const override;
virtual int Compare( const wxDataViewItem& lhs,
const wxDataViewItem& rhs,
@@ -118,8 +118,8 @@ class DIALOG_LIB_EDIT_PIN_TABLE::DataViewModel::Group :
public:
Group( unsigned int aGroupingColumn ) : m_GroupingColumn( aGroupingColumn ) {}
- virtual void GetValue( wxVariant& aValue, unsigned int aCol ) const;
- virtual wxString GetString( unsigned int aCol ) const;
+ virtual void GetValue( wxVariant& aValue, unsigned int aCol ) const override;
+ virtual wxString GetString( unsigned int aCol ) const override;
virtual wxDataViewItem GetParent() const { return wxDataViewItem(); }
virtual bool IsContainer() const { return true; }
virtual unsigned int GetChildren( wxDataViewItemArray& aItems ) const
@@ -146,8 +146,8 @@ public:
Pin( DataViewModel& aModel,
LIB_PIN* aBacking ) : m_Model( aModel ), m_Backing( aBacking ), m_Group( 0 ) {}
- virtual void GetValue( wxVariant& aValue, unsigned int aCol ) const;
- virtual wxString GetString( unsigned int aCol ) const;
+ virtual void GetValue( wxVariant& aValue, unsigned int aCol ) const override;
+ virtual wxString GetString( unsigned int aCol ) const override;
virtual wxDataViewItem GetParent() const { return wxDataViewItem( m_Group ); }
virtual bool IsContainer() const { return false; }
virtual unsigned int GetChildren( wxDataViewItemArray& ) const { return 0; }
diff --git a/eeschema/dialogs/dialog_lib_edit_pin_table.h b/eeschema/dialogs/dialog_lib_edit_pin_table.h
index 868c4531b3..8be318a61e 100644
--- a/eeschema/dialogs/dialog_lib_edit_pin_table.h
+++ b/eeschema/dialogs/dialog_lib_edit_pin_table.h
@@ -11,7 +11,7 @@ public:
void UpdateSummary();
- virtual void OnColumnHeaderRightClicked( wxDataViewEvent& aEvent );
+ virtual void OnColumnHeaderRightClicked( wxDataViewEvent& aEvent ) override;
private:
class DataViewModel;
diff --git a/eeschema/dialogs/dialog_lib_edit_text.h b/eeschema/dialogs/dialog_lib_edit_text.h
index 24ad5899e2..e208bbcc52 100644
--- a/eeschema/dialogs/dialog_lib_edit_text.h
+++ b/eeschema/dialogs/dialog_lib_edit_text.h
@@ -46,8 +46,8 @@ public:
private:
void initDlg( );
- void OnOkClick( wxCommandEvent& aEvent );
- void OnCancelClick( wxCommandEvent& aEvent );
+ void OnOkClick( wxCommandEvent& aEvent ) override;
+ void OnCancelClick( wxCommandEvent& aEvent ) override;
};
diff --git a/eeschema/dialogs/dialog_netlist.cpp b/eeschema/dialogs/dialog_netlist.cpp
index 723e536f89..b697cac68c 100644
--- a/eeschema/dialogs/dialog_netlist.cpp
+++ b/eeschema/dialogs/dialog_netlist.cpp
@@ -142,23 +142,23 @@ private:
const wxString & aCommandString,
NETLIST_TYPE_ID aNetTypeId );
void InstallPageSpice();
- void GenNetlist( wxCommandEvent& event );
+ void GenNetlist( wxCommandEvent& event ) override;
void RunSimulator( wxCommandEvent& event );
void NetlistUpdateOpt();
- void OnNetlistTypeSelection( wxNotebookEvent& event );
+ void OnNetlistTypeSelection( wxNotebookEvent& event ) override;
void SelectDefaultNetlistType( wxCommandEvent& event );
/**
* Function OnAddPlugin
* Add a new panel for a new netlist plugin
*/
- void OnAddPlugin( wxCommandEvent& event );
+ void OnAddPlugin( wxCommandEvent& event ) override;
/**
* Function OnDelPlugin
* Remove a panel relative to a netlist plugin
*/
- void OnDelPlugin( wxCommandEvent& event );
+ void OnDelPlugin( wxCommandEvent& event ) override;
/**
* Function WriteCurrentNetlistSetup
@@ -219,12 +219,12 @@ private:
* Function OnOKClick
* Validate info relative to a new netlist plugin
*/
- void OnOKClick( wxCommandEvent& event );
+ void OnOKClick( wxCommandEvent& event ) override;
/*
* Browse plugin files, and set m_CommandStringCtrl field
*/
- void OnBrowsePlugins( wxCommandEvent& event );
+ void OnBrowsePlugins( wxCommandEvent& event ) override;
};
diff --git a/eeschema/dialogs/dialog_plot_schematic.h b/eeschema/dialogs/dialog_plot_schematic.h
index 69cf6c050c..79ad300e93 100644
--- a/eeschema/dialogs/dialog_plot_schematic.h
+++ b/eeschema/dialogs/dialog_plot_schematic.h
@@ -63,10 +63,10 @@ public:
// and therefore should be saved
private:
- void OnPlotFormatSelection( wxCommandEvent& event );
- void OnButtonPlotCurrentClick( wxCommandEvent& event );
- void OnButtonPlotAllClick( wxCommandEvent& event );
- void OnButtonCancelClick( wxCommandEvent& event );
+ void OnPlotFormatSelection( wxCommandEvent& event ) override;
+ void OnButtonPlotCurrentClick( wxCommandEvent& event ) override;
+ void OnButtonPlotAllClick( wxCommandEvent& event ) override;
+ void OnButtonCancelClick( wxCommandEvent& event ) override;
void initDlg();
@@ -82,7 +82,7 @@ private:
/**
* Set the m_outputDirectoryName variable to the selected directory from directory dialog.
*/
- void OnOutputDirectoryBrowseClicked( wxCommandEvent& event );
+ void OnOutputDirectoryBrowseClicked( wxCommandEvent& event ) override;
PlotFormat GetPlotFileFormat();
diff --git a/eeschema/dialogs/dialog_print_using_printer.cpp b/eeschema/dialogs/dialog_print_using_printer.cpp
index 2a1139c761..a28020eb47 100644
--- a/eeschema/dialogs/dialog_print_using_printer.cpp
+++ b/eeschema/dialogs/dialog_print_using_printer.cpp
@@ -58,10 +58,10 @@ public:
}
private:
- void OnCloseWindow( wxCloseEvent& event );
- void OnPageSetup( wxCommandEvent& event );
- void OnPrintPreview( wxCommandEvent& event );
- void OnPrintButtonClick( wxCommandEvent& event );
+ void OnCloseWindow( wxCloseEvent& event ) override;
+ void OnPageSetup( wxCommandEvent& event ) override;
+ void OnPrintPreview( wxCommandEvent& event ) override;
+ void OnPrintButtonClick( wxCommandEvent& event ) override;
void OnButtonCancelClick( wxCommandEvent& event ) { Close(); }
void initDialog();
@@ -85,10 +85,10 @@ public:
wxASSERT( aParent != NULL );
m_parent = aParent;
}
- bool OnPrintPage( int page );
- bool HasPage( int page );
- bool OnBeginDocument( int startPage, int endPage );
- void GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo );
+ bool OnPrintPage( int page ) override;
+ bool HasPage( int page ) override;
+ bool OnBeginDocument( int startPage, int endPage ) override;
+ void GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo ) override;
void DrawPage( SCH_SCREEN* aScreen );
};
diff --git a/eeschema/dialogs/dialog_rescue_each.cpp b/eeschema/dialogs/dialog_rescue_each.cpp
index 144e765986..1c0b9e5eba 100644
--- a/eeschema/dialogs/dialog_rescue_each.cpp
+++ b/eeschema/dialogs/dialog_rescue_each.cpp
@@ -55,16 +55,16 @@ private:
RESCUER* m_Rescuer;
bool m_AskShowAgain;
- bool TransferDataToWindow();
- bool TransferDataFromWindow();
+ bool TransferDataToWindow() override;
+ bool TransferDataFromWindow() override;
void PopulateConflictList();
void PopulateInstanceList();
- void OnConflictSelect( wxDataViewEvent& event );
- void OnNeverShowClick( wxCommandEvent& event );
- void OnCancelClick( wxCommandEvent& event );
- void OnHandleCachePreviewRepaint( wxPaintEvent& aRepaintEvent );
- void OnHandleLibraryPreviewRepaint( wxPaintEvent& aRepaintEvent );
- void OnDialogResize( wxSizeEvent& aSizeEvent );
+ void OnConflictSelect( wxDataViewEvent& event ) override;
+ void OnNeverShowClick( wxCommandEvent& event ) override;
+ void OnCancelClick( wxCommandEvent& event ) override;
+ void OnHandleCachePreviewRepaint( wxPaintEvent& aRepaintEvent ) override;
+ void OnHandleLibraryPreviewRepaint( wxPaintEvent& aRepaintEvent ) override;
+ void OnDialogResize( wxSizeEvent& aSizeEvent ) override;
void renderPreview( LIB_PART* aComponent, int aUnit, wxPanel* panel );
};
diff --git a/eeschema/dialogs/dialog_schematic_find.h b/eeschema/dialogs/dialog_schematic_find.h
index 0a869479e5..3bd91a5a7d 100644
--- a/eeschema/dialogs/dialog_schematic_find.h
+++ b/eeschema/dialogs/dialog_schematic_find.h
@@ -154,16 +154,16 @@ class DIALOG_SCH_FIND : public DIALOG_SCH_FIND_BASE
{
protected:
// Handlers for DIALOG_SCH_FIND_BASE events.
- void OnClose( wxCloseEvent& aEvent );
- void OnUpdateFindUI( wxUpdateUIEvent& aEvent );
- void OnUpdateReplaceUI( wxUpdateUIEvent& aEvent );
- void OnUpdateReplaceAllUI( wxUpdateUIEvent& aEvent );
- void OnUpdateWholeWordUI( wxUpdateUIEvent& aEvent );
- void OnUpdateWildcardUI( wxUpdateUIEvent& aEvent );
+ void OnClose( wxCloseEvent& aEvent ) override;
+ void OnUpdateFindUI( wxUpdateUIEvent& aEvent ) override;
+ void OnUpdateReplaceUI( wxUpdateUIEvent& aEvent ) override;
+ void OnUpdateReplaceAllUI( wxUpdateUIEvent& aEvent ) override;
+ void OnUpdateWholeWordUI( wxUpdateUIEvent& aEvent ) override;
+ void OnUpdateWildcardUI( wxUpdateUIEvent& aEvent ) override;
- void OnFind( wxCommandEvent& aEvent );
- void OnReplace( wxCommandEvent& aEvent );
- void OnCancel( wxCommandEvent& aEvent );
+ void OnFind( wxCommandEvent& aEvent ) override;
+ void OnReplace( wxCommandEvent& aEvent ) override;
+ void OnCancel( wxCommandEvent& aEvent ) override;
void SendEvent( const wxEventType& aEventType );
diff --git a/eeschema/eeschema.cpp b/eeschema/eeschema.cpp
index 301280e020..c95f9e4961 100644
--- a/eeschema/eeschema.cpp
+++ b/eeschema/eeschema.cpp
@@ -65,9 +65,9 @@ static struct IFACE : public KIFACE_I
KIFACE_I( aName, aType )
{}
- bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits );
+ bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override;
- void OnKifaceEnd();
+ void OnKifaceEnd() override;
wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 )
{
diff --git a/eeschema/lib_arc.h b/eeschema/lib_arc.h
index f1b7767337..5f66f90c4f 100644
--- a/eeschema/lib_arc.h
+++ b/eeschema/lib_arc.h
@@ -67,7 +67,7 @@ class LIB_ARC : public LIB_ITEM
/**
* Draw the graphics when the arc is being edited.
*/
- void drawEditGraphics( EDA_RECT* aClipBox, wxDC* aDC, EDA_COLOR_T aColor );
+ void drawEditGraphics( EDA_RECT* aClipBox, wxDC* aDC, EDA_COLOR_T aColor ) override;
/**
* Calculates the center, radius, and angles at \a aPosition when the arc is being edited.
@@ -76,7 +76,7 @@ class LIB_ARC : public LIB_ITEM
*
* @param aPosition - The current mouse position in drawing coordinates.
*/
- void calcEdit( const wxPoint& aPosition );
+ void calcEdit( const wxPoint& aPosition ) override;
/**
* Calculate the radius and angle of an arc using the start, end, and center points.
@@ -96,39 +96,39 @@ public:
}
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& aErrorMsg ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint& aPosition, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint& aPosition, int aThreshold, const TRANSFORM& aTransform ) const override;
const EDA_RECT GetBoundingBox() const; // Virtual
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- int GetPenSize() const;
+ int GetPenSize() const override;
- void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) );
+ void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) ) override;
- bool ContinueEdit( const wxPoint aNextPoint );
+ bool ContinueEdit( const wxPoint aNextPoint ) override;
- void EndEdit( const wxPoint& aPosition, bool aAbort = false );
+ void EndEdit( const wxPoint& aPosition, bool aAbort = false ) override;
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_Pos; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
@@ -153,11 +153,11 @@ public:
void SetEnd( const wxPoint& aPoint ) { m_ArcEnd = aPoint; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_arc_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -170,7 +170,7 @@ private:
* - Arc start angle.
* - Arc end angle.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
diff --git a/eeschema/lib_bezier.h b/eeschema/lib_bezier.h
index 3049d7e4c6..fd7ed5e7de 100644
--- a/eeschema/lib_bezier.h
+++ b/eeschema/lib_bezier.h
@@ -59,36 +59,36 @@ public:
}
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& aErrorMsg ) override;
void AddPoint( const wxPoint& aPoint ) { m_BezierPoints.push_back( aPoint ); }
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
/**
* @return the number of corners
*/
unsigned GetCornerCount() const { return m_PolyPoints.size(); }
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint& aPosRef, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint& aPosRef, int aThreshold, const TRANSFORM& aTransform ) const override;
const EDA_RECT GetBoundingBox() const; // Virtual
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_PolyPoints[0]; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
@@ -97,11 +97,11 @@ public:
void SetWidth( int aWidth ) { m_Width = aWidth; }
- int GetPenSize( ) const;
+ int GetPenSize( ) const override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -112,7 +112,7 @@ private:
* - Bezier horizontal (X) point position.
* - Bezier vertical (Y) point position.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
diff --git a/eeschema/lib_circle.h b/eeschema/lib_circle.h
index 2b95161750..71f6110be3 100644
--- a/eeschema/lib_circle.h
+++ b/eeschema/lib_circle.h
@@ -42,7 +42,7 @@ class LIB_CIRCLE : public LIB_ITEM
EDA_COLOR_T aColor, GR_DRAWMODE aDrawMode, void* aData,
const TRANSFORM& aTransform );
- void calcEdit( const wxPoint& aPosition );
+ void calcEdit( const wxPoint& aPosition ) override;
public:
LIB_CIRCLE( LIB_PART * aParent );
@@ -57,39 +57,39 @@ public:
}
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& aErrorMsg ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint& aPosRef, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint& aPosRef, int aThreshold, const TRANSFORM& aTransform ) const override;
- int GetPenSize( ) const;
+ int GetPenSize( ) const override;
const EDA_RECT GetBoundingBox() const; // Virtual
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) );
+ void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) ) override;
- bool ContinueEdit( const wxPoint aNextPoint );
+ bool ContinueEdit( const wxPoint aNextPoint ) override;
- void EndEdit( const wxPoint& aPosition, bool aAbort = false );
+ void EndEdit( const wxPoint& aPosition, bool aAbort = false ) override;
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_Pos; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
@@ -102,11 +102,11 @@ public:
int GetRadius() const { return m_Radius; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_circle_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -118,7 +118,7 @@ private:
* - Circle vertical (Y) position.
* - Circle radius.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
diff --git a/eeschema/lib_draw_item.h b/eeschema/lib_draw_item.h
index 47ca7a4ee0..c214ad67b1 100644
--- a/eeschema/lib_draw_item.h
+++ b/eeschema/lib_draw_item.h
@@ -274,7 +274,7 @@ public:
*
* @param aList is the list to populate.
*/
- virtual void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ virtual void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
/**
* Test LIB_ITEM objects for equivalence.
diff --git a/eeschema/lib_field.h b/eeschema/lib_field.h
index e1d0f0fdf7..ac40014e51 100644
--- a/eeschema/lib_field.h
+++ b/eeschema/lib_field.h
@@ -82,7 +82,7 @@ class LIB_FIELD : public LIB_ITEM, public EDA_TEXT
*
* @param aPosition - The position to edit the circle in drawing coordinates.
*/
- void calcEdit( const wxPoint& aPosition );
+ void calcEdit( const wxPoint& aPosition ) override;
friend class SCH_LEGACY_PLUGIN_CACHE; // Required to access m_name.
@@ -137,11 +137,11 @@ public:
void SetId( int aId ) { m_id = aId; }
- int GetPenSize( ) const;
+ int GetPenSize( ) const override;
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& errorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& errorMsg ) override;
/**
* Copy parameters of this field to another field. Pointers are not copied.
@@ -172,11 +172,11 @@ public:
const EDA_RECT GetBoundingBox() const; // Virtual
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint &aPosition, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint &aPosition, int aThreshold, const TRANSFORM& aTransform ) const override;
void operator=( const LIB_FIELD& field )
{
@@ -210,15 +210,15 @@ public:
*/
wxString GetFullText( int unit = 1 );
- EDA_COLOR_T GetDefaultColor();
+ EDA_COLOR_T GetDefaultColor() override;
- void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) );
+ void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) ) override;
- bool ContinueEdit( const wxPoint aNextPoint );
+ bool ContinueEdit( const wxPoint aNextPoint ) override;
- void EndEdit( const wxPoint& aPosition, bool aAbort = false );
+ void EndEdit( const wxPoint& aPosition, bool aAbort = false ) override;
- void Rotate();
+ void Rotate() override;
/**
* Sets the field text to \a aText.
@@ -231,21 +231,21 @@ public:
*
* @param aText - New text value.
*/
- void SetText( const wxString& aText );
+ void SetText( const wxString& aText ) override;
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_Pos; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
@@ -254,11 +254,11 @@ public:
void SetWidth( int aWidth ) { m_Thickness = aWidth; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return move_field_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -274,7 +274,7 @@ private:
* - Field width.
* - Field height.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
typedef std::vector< LIB_FIELD > LIB_FIELDS;
diff --git a/eeschema/lib_pin.h b/eeschema/lib_pin.h
index a40b0f70ae..25f966d010 100644
--- a/eeschema/lib_pin.h
+++ b/eeschema/lib_pin.h
@@ -108,17 +108,17 @@ public:
void Show( int nestLevel, std::ostream& os ) const; // virtual override
#endif
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& aErrorMsg ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint &aPosRef, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint &aPosRef, int aThreshold, const TRANSFORM& aTransform ) const override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
+ bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
/* Cannot use a default parameter here as it will not be compatible with the virtual. */
const EDA_RECT GetBoundingBox() const { return GetBoundingBox( false ); }
@@ -230,7 +230,7 @@ public:
*/
void SetOrientation( int aOrientation );
- void Rotate();
+ void Rotate() override;
GRAPHIC_PINSHAPE GetShape() const { return m_shape; }
@@ -363,7 +363,7 @@ public:
*/
bool IsPowerConnection() const { return !IsVisible() && GetType() == PIN_POWER_IN; }
- int GetPenSize() const;
+ int GetPenSize() const override;
/**
* Function DrawPinSymbol
@@ -440,32 +440,32 @@ public:
*/
static int GetOrientationCodeIndex( int aCode );
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_position; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
int GetWidth() const { return m_width; }
- void SetWidth( int aWidth );
+ void SetWidth( int aWidth ) override;
- BITMAP_DEF GetMenuImage() const;
+ BITMAP_DEF GetMenuImage() const override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -478,7 +478,7 @@ private:
* - Pin horizontal (X) position.
* - Pin vertical (Y) position.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
diff --git a/eeschema/lib_polyline.h b/eeschema/lib_polyline.h
index 88e397f140..1bbfe3525e 100644
--- a/eeschema/lib_polyline.h
+++ b/eeschema/lib_polyline.h
@@ -43,7 +43,7 @@ class LIB_POLYLINE : public LIB_ITEM
EDA_COLOR_T aColor, GR_DRAWMODE aDrawMode, void* aData,
const TRANSFORM& aTransform );
- void calcEdit( const wxPoint& aPosition );
+ void calcEdit( const wxPoint& aPosition ) override;
public:
LIB_POLYLINE( LIB_PART * aParent );
@@ -58,9 +58,9 @@ public:
}
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& aErrorMsg ) override;
void AddPoint( const wxPoint& aPoint );
@@ -74,35 +74,35 @@ public:
*/
unsigned GetCornerCount() const { return m_PolyPoints.size(); }
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint &aPosition, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint &aPosition, int aThreshold, const TRANSFORM& aTransform ) const override;
const EDA_RECT GetBoundingBox() const; // Virtual
- int GetPenSize( ) const;
+ int GetPenSize( ) const override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) );
+ void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) ) override;
- bool ContinueEdit( const wxPoint aNextPoint );
+ bool ContinueEdit( const wxPoint aNextPoint ) override;
- void EndEdit( const wxPoint& aPosition, bool aAbort = false );
+ void EndEdit( const wxPoint& aPosition, bool aAbort = false ) override;
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_PolyPoints[0]; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
@@ -111,11 +111,11 @@ public:
void SetWidth( int aWidth ) { m_Width = aWidth; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_polygon_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -126,7 +126,7 @@ private:
* - Line segment point horizontal (X) position.
* - Line segment point vertical (Y) position.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
diff --git a/eeschema/lib_rectangle.h b/eeschema/lib_rectangle.h
index 9a50e06715..23865f84f6 100644
--- a/eeschema/lib_rectangle.h
+++ b/eeschema/lib_rectangle.h
@@ -45,7 +45,7 @@ class LIB_RECTANGLE : public LIB_ITEM
EDA_COLOR_T aColor, GR_DRAWMODE aDrawMode, void* aData,
const TRANSFORM& aTransform );
- void calcEdit( const wxPoint& aPosition );
+ void calcEdit( const wxPoint& aPosition ) override;
public:
LIB_RECTANGLE( LIB_PART * aParent );
@@ -61,39 +61,39 @@ public:
void SetEndPosition( const wxPoint& aPosition ) { m_End = aPosition; }
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& aErrorMsg ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint &aPosRef, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint &aPosRef, int aThreshold, const TRANSFORM& aTransform ) const override;
- int GetPenSize( ) const;
+ int GetPenSize( ) const override;
const EDA_RECT GetBoundingBox() const; // Virtual
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) );
+ void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) ) override;
- bool ContinueEdit( const wxPoint aNextPoint );
+ bool ContinueEdit( const wxPoint aNextPoint ) override;
- void EndEdit( const wxPoint& aPosition, bool aAbort = false );
+ void EndEdit( const wxPoint& aPosition, bool aAbort = false ) override;
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_Pos; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
@@ -106,11 +106,11 @@ public:
wxPoint GetEnd() const { return m_End; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_rectangle_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -123,7 +123,7 @@ private:
* - Rectangle horizontal (X) end position.
* - Rectangle vertical (Y) end position.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
diff --git a/eeschema/lib_text.h b/eeschema/lib_text.h
index 518678b785..c943df89cf 100644
--- a/eeschema/lib_text.h
+++ b/eeschema/lib_text.h
@@ -52,7 +52,7 @@ class LIB_TEXT : public LIB_ITEM, public EDA_TEXT
EDA_COLOR_T aColor, GR_DRAWMODE aDrawMode, void* aData,
const TRANSFORM& aTransform );
- void calcEdit( const wxPoint& aPosition );
+ void calcEdit( const wxPoint& aPosition ) override;
public:
LIB_TEXT( LIB_PART * aParent );
@@ -76,15 +76,15 @@ public:
*
* @param aText - New text value.
*/
- void SetText( const wxString& aText );
+ void SetText( const wxString& aText ) override;
- bool Save( OUTPUTFORMATTER& aFormatter );
+ bool Save( OUTPUTFORMATTER& aFormatter ) override;
- bool Load( LINE_READER& aLineReader, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLineReader, wxString& aErrorMsg ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- bool HitTest( const wxPoint &aPosition, int aThreshold, const TRANSFORM& aTransform ) const;
+ bool HitTest( const wxPoint &aPosition, int aThreshold, const TRANSFORM& aTransform ) const override;
bool HitTest( const EDA_RECT& aRect ) const
{
@@ -92,33 +92,33 @@ public:
}
- int GetPenSize( ) const;
+ int GetPenSize( ) const override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
const EDA_RECT GetBoundingBox() const; // virtual
- void Rotate();
+ void Rotate() override;
- void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) );
+ void BeginEdit( STATUS_FLAGS aEditMode, const wxPoint aStartPoint = wxPoint( 0, 0 ) ) override;
- bool ContinueEdit( const wxPoint aNextPoint );
+ bool ContinueEdit( const wxPoint aNextPoint ) override;
- void EndEdit( const wxPoint& aPosition, bool aAbort = false );
+ void EndEdit( const wxPoint& aPosition, bool aAbort = false ) override;
- void SetOffset( const wxPoint& aOffset );
+ void SetOffset( const wxPoint& aOffset ) override;
- bool Inside( EDA_RECT& aRect ) const;
+ bool Inside( EDA_RECT& aRect ) const override;
- void Move( const wxPoint& aPosition );
+ void Move( const wxPoint& aPosition ) override;
wxPoint GetPosition() const { return m_Pos; }
- void MirrorHorizontal( const wxPoint& aCenter );
+ void MirrorHorizontal( const wxPoint& aCenter ) override;
- void MirrorVertical( const wxPoint& aCenter );
+ void MirrorVertical( const wxPoint& aCenter ) override;
- void Rotate( const wxPoint& aCenter, bool aRotateCCW = true );
+ void Rotate( const wxPoint& aCenter, bool aRotateCCW = true ) override;
void Plot( PLOTTER* aPlotter, const wxPoint& aOffset, bool aFill,
const TRANSFORM& aTransform );
@@ -127,11 +127,11 @@ public:
void SetWidth( int aWidth ) { m_Thickness = aWidth; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_text_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
@@ -145,7 +145,7 @@ private:
* - Text width.
* - Text height.
*/
- int compare( const LIB_ITEM& aOther ) const;
+ int compare( const LIB_ITEM& aOther ) const override;
};
diff --git a/eeschema/libeditframe.h b/eeschema/libeditframe.h
index 49f569ce5e..c920551eba 100644
--- a/eeschema/libeditframe.h
+++ b/eeschema/libeditframe.h
@@ -180,7 +180,7 @@ public:
void SetRepeatPinStep( int aStep) { m_repeatPinStep = aStep; }
- void ReCreateMenuBar();
+ void ReCreateMenuBar() override;
/**
* Function EnsureActiveLibExists
@@ -313,27 +313,27 @@ public:
* Display reference like in schematic (a reference U is shown U? or U?A)
* update status bar and info shown in the bottom of the window
*/
- void RedrawActiveWindow( wxDC* DC, bool EraseBg );
+ void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
void OnCloseWindow( wxCloseEvent& Event );
- void ReCreateHToolbar();
- void ReCreateVToolbar();
+ void ReCreateHToolbar() override;
+ void ReCreateVToolbar() override;
void CreateOptionToolbar();
- void OnLeftClick( wxDC* DC, const wxPoint& MousePos );
- bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu );
+ void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) override;
+ bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu ) override;
double BestZoom(); // Returns the best zoom
- void OnLeftDClick( wxDC* DC, const wxPoint& MousePos );
+ void OnLeftDClick( wxDC* DC, const wxPoint& MousePos ) override;
///> @copydoc EDA_DRAW_FRAME::GetHotKeyDescription()
- EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const;
+ EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
- bool OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, EDA_ITEM* aItem = NULL );
+ bool OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
- bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 );
+ bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
- void LoadSettings( wxConfigBase* aCfg );
+ void LoadSettings( wxConfigBase* aCfg ) override;
- void SaveSettings( wxConfigBase* aCfg );
+ void SaveSettings( wxConfigBase* aCfg ) override;
/**
* Function CloseWindow
@@ -429,7 +429,7 @@ private:
* The library list can be changed by the schematic editor after reloading a new schematic
* and the current library can point a non existent lib.
*/
- virtual void OnActivate( wxActivateEvent& event );
+ virtual void OnActivate( wxActivateEvent& event ) override;
// General:
@@ -609,13 +609,13 @@ public:
* returns the block command (BLOCK_MOVE, BLOCK_COPY...) corresponding to
* the \a aKey (ALT, SHIFT ALT ..)
*/
- virtual int BlockCommand( EDA_KEY aKey );
+ virtual int BlockCommand( EDA_KEY aKey ) override;
/**
* Function HandleBlockPlace
* handles the block place command.
*/
- virtual void HandleBlockPlace( wxDC* DC );
+ virtual void HandleBlockPlace( wxDC* DC ) override;
/**
* Function HandleBlockEnd
@@ -623,7 +623,7 @@ public:
* @return If command finished (zoom, delete ...) false is returned otherwise true
* is returned indicating more processing is required.
*/
- virtual bool HandleBlockEnd( wxDC* DC );
+ virtual bool HandleBlockEnd( wxDC* DC ) override;
/**
* Function PlacePin
diff --git a/eeschema/netlist_exporters/netlist_exporter_cadstar.h b/eeschema/netlist_exporters/netlist_exporter_cadstar.h
index 909e1bdbb8..0c8cbf9da9 100644
--- a/eeschema/netlist_exporters/netlist_exporter_cadstar.h
+++ b/eeschema/netlist_exporters/netlist_exporter_cadstar.h
@@ -56,7 +56,7 @@ public:
* Function WriteList
* writes to specified output file
*/
- bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions );
+ bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions ) override;
};
#endif
diff --git a/eeschema/netlist_exporters/netlist_exporter_generic.h b/eeschema/netlist_exporters/netlist_exporter_generic.h
index 71d3e512ed..98366dfed3 100644
--- a/eeschema/netlist_exporters/netlist_exporter_generic.h
+++ b/eeschema/netlist_exporters/netlist_exporter_generic.h
@@ -63,7 +63,7 @@ public:
* Function WriteNetlist
* writes to specified output file
*/
- bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions );
+ bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions ) override;
#define GNL_ALL ( GNL_LIBRARIES | GNL_COMPONENTS | GNL_PARTS | GNL_HEADER | GNL_NETS )
diff --git a/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.h b/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.h
index 06fcf10deb..1765d24481 100644
--- a/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.h
+++ b/eeschema/netlist_exporters/netlist_exporter_orcadpcb2.h
@@ -40,7 +40,7 @@ public:
{
}
- bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions );
+ bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions ) override;
};
#endif
diff --git a/eeschema/netlist_exporters/netlist_exporter_pspice.h b/eeschema/netlist_exporters/netlist_exporter_pspice.h
index 980d0b23a1..be7207f23d 100644
--- a/eeschema/netlist_exporters/netlist_exporter_pspice.h
+++ b/eeschema/netlist_exporters/netlist_exporter_pspice.h
@@ -126,7 +126,7 @@ public:
* Function WriteNetlist
* writes to specified output file
*/
- bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions );
+ bool WriteNetlist( const wxString& aOutFileName, unsigned aNetlistOptions ) override;
///> @copydoc NETLIST_EXPORTER::Format()
bool Format( OUTPUTFORMATTER* aFormatter, unsigned aCtl );
diff --git a/eeschema/sch_base_frame.h b/eeschema/sch_base_frame.h
index c99e1a603e..8ad2bad53b 100644
--- a/eeschema/sch_base_frame.h
+++ b/eeschema/sch_base_frame.h
@@ -96,7 +96,7 @@ public:
* level indicator in dialogs.
* Virtual from the base class
*/
- const wxString GetZoomLevelIndicator() const;
+ const wxString GetZoomLevelIndicator() const override;
void SetPageSettings( const PAGE_INFO& aPageSettings ); // overload EDA_DRAW_FRAME
const PAGE_INFO& GetPageSettings () const; // overload EDA_DRAW_FRAME
@@ -114,8 +114,8 @@ public:
// Virtual from EDA_DRAW_FRAME
// the background color of the draw canvas:
- EDA_COLOR_T GetDrawBgColor() const;
- void SetDrawBgColor( EDA_COLOR_T aColor);
+ EDA_COLOR_T GetDrawBgColor() const override;
+ void SetDrawBgColor( EDA_COLOR_T aColor) override;
const TITLE_BLOCK& GetTitleBlock() const; // overload EDA_DRAW_FRAME
void SetTitleBlock( const TITLE_BLOCK& aTitleBlock ); // overload EDA_DRAW_FRAME
diff --git a/eeschema/sch_bitmap.h b/eeschema/sch_bitmap.h
index 29d0252531..dd429c7e5f 100644
--- a/eeschema/sch_bitmap.h
+++ b/eeschema/sch_bitmap.h
@@ -96,7 +96,7 @@ public:
const EDA_RECT GetBoundingBox() const; // Virtual
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
@@ -110,9 +110,9 @@ public:
*/
bool ReadImageFile( const wxString& aFullFilename );
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
void Move( const wxPoint& aMoveVector )
{
@@ -120,13 +120,13 @@ public:
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
wxString GetSelectMenuText() const { return wxString( _( "Image" ) ); }
@@ -136,13 +136,13 @@ public:
void SetPosition( const wxPoint& aPosition ) { m_pos = aPosition; }
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const override;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
diff --git a/eeschema/sch_bus_entry.h b/eeschema/sch_bus_entry.h
index 5de14e669b..aff3b18751 100644
--- a/eeschema/sch_bus_entry.h
+++ b/eeschema/sch_bus_entry.h
@@ -80,7 +80,7 @@ public:
void SetSize( const wxSize& aSize ) { m_size = aSize; }
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
@@ -95,23 +95,23 @@ public:
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
- void GetEndPoints( std::vector & aItemList );
+ void GetEndPoints( std::vector & aItemList ) override;
- bool IsDanglingStateChanged( std::vector& aItemList );
+ bool IsDanglingStateChanged( std::vector& aItemList ) override;
- bool IsDangling() const;
+ bool IsDangling() const override;
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
bool IsConnectable() const { return true; }
- void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
+ void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const override;
BITMAP_DEF GetMenuImage() const { return add_entry_xpm; }
@@ -119,11 +119,11 @@ public:
void SetPosition( const wxPoint& aPosition ) { m_pos = aPosition; }
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const override;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
@@ -147,13 +147,13 @@ public:
return wxT( "SCH_BUS_WIRE_ENTRY" );
}
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- int GetPenSize() const;
+ int GetPenSize() const override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
};
/**
@@ -173,13 +173,13 @@ public:
return wxT( "SCH_BUS_BUS_ENTRY" );
}
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- int GetPenSize() const;
+ int GetPenSize() const override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
};
#endif // _SCH_BUS_ENTRY_H_
diff --git a/eeschema/sch_component.h b/eeschema/sch_component.h
index c8055fa09a..3f261fc435 100644
--- a/eeschema/sch_component.h
+++ b/eeschema/sch_component.h
@@ -210,9 +210,9 @@ public:
*/
int GetUnitCount() const;
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
/**
* Function SetOrientation
@@ -247,7 +247,7 @@ public:
*/
wxPoint GetScreenCoord( const wxPoint& aPoint );
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
/**
* Function ClearAnnotation
@@ -397,7 +397,7 @@ public:
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor,
bool aDrawPinText );
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
// returns a unique ID, in the form of a path.
wxString GetPath( const SCH_SHEET_PATH* sheet ) const;
@@ -461,15 +461,15 @@ public:
SetModified();
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
- bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
+ bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
- void GetEndPoints( std::vector& aItemList );
+ void GetEndPoints( std::vector& aItemList ) override;
/**
* Test if the component's dangling state has changed for one given pin index. As
@@ -490,17 +490,17 @@ public:
* @param aItemList - list of all DANGLING_END_ITEMs to be tested
* @return true if any pin's state has changed.
*/
- bool IsDanglingStateChanged( std::vector& aItemList );
+ bool IsDanglingStateChanged( std::vector& aItemList ) override;
/**
* Return whether any pin has dangling status. Does NOT update the internal status,
* only checks the existing status.
*/
- bool IsDangling() const;
+ bool IsDangling() const override;
wxPoint GetPinPhysicalPosition( LIB_PIN* Pin );
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
bool IsConnectable() const { return true; }
@@ -511,7 +511,7 @@ public:
*/
bool IsInNetlist() const;
- void GetConnectionPoints( std::vector& aPoints ) const;
+ void GetConnectionPoints( std::vector& aPoints ) const override;
SEARCH_RESULT Visit( INSPECTOR inspector, void* testData, const KICAD_T scanTypes[] ) override;
@@ -525,14 +525,14 @@ public:
*/
LIB_ITEM* GetDrawItem( const wxPoint& aPosition, KICAD_T aType = TYPE_NOT_INIT );
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_component_xpm; }
void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems,
SCH_SHEET_PATH* aSheetPath );
- bool operator <( const SCH_ITEM& aItem ) const;
+ bool operator <( const SCH_ITEM& aItem ) const override;
bool operator==( const SCH_COMPONENT& aComponent) const;
bool operator!=( const SCH_COMPONENT& aComponent) const;
@@ -545,20 +545,20 @@ public:
void SetPosition( const wxPoint& aPosition ) { Move( aPosition - m_Pos ); }
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const override;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
#endif
private:
- bool doIsConnected( const wxPoint& aPosition ) const;
+ bool doIsConnected( const wxPoint& aPosition ) const override;
};
diff --git a/eeschema/sch_field.h b/eeschema/sch_field.h
index d01deb3434..4c1972a19f 100644
--- a/eeschema/sch_field.h
+++ b/eeschema/sch_field.h
@@ -120,7 +120,7 @@ public:
return len == 0 || ( len == 1 && m_Text[0] == wxChar( '~' ) );
}
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
/**
* Function ImportValues
@@ -130,7 +130,7 @@ public:
*/
void ImportValues( const LIB_FIELD& aSource );
- int GetPenSize() const;
+ int GetPenSize() const override;
/**
* Function IsVisible
@@ -144,7 +144,7 @@ public:
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
// Geometric transforms (used in block operations):
@@ -154,7 +154,7 @@ public:
}
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
/**
* @copydoc SCH_ITEM::MirrorX()
@@ -178,29 +178,29 @@ public:
{
}
- bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
+ bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
- bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL );
+ bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL ) override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const;
+ BITMAP_DEF GetMenuImage() const override;
bool IsReplaceable() const { return true; }
wxPoint GetLibPosition() const { return m_Pos; }
- wxPoint GetPosition() const;
+ wxPoint GetPosition() const override;
- void SetPosition( const wxPoint& aPosition );
+ void SetPosition( const wxPoint& aPosition ) override;
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const override;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
diff --git a/eeschema/sch_junction.h b/eeschema/sch_junction.h
index 0e93d846b2..eb62725de5 100644
--- a/eeschema/sch_junction.h
+++ b/eeschema/sch_junction.h
@@ -53,60 +53,60 @@ public:
static int GetSymbolSize() { return m_symbolSize; }
static void SetSymbolSize( int aSize ) { m_symbolSize = aSize; }
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
const EDA_RECT GetBoundingBox() const; // Virtual
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
void Move( const wxPoint& aMoveVector )
{
m_pos += aMoveVector;
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
- void GetEndPoints( std::vector & aItemList );
+ void GetEndPoints( std::vector & aItemList ) override;
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
bool IsConnectable() const { return true; }
- void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
+ void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const override;
wxString GetSelectMenuText() const { return wxString( _( "Junction" ) ); }
BITMAP_DEF GetMenuImage() const { return add_junction_xpm; }
- void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems, SCH_SHEET_PATH* aSheetPath );
+ void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems, SCH_SHEET_PATH* aSheetPath ) override;
wxPoint GetPosition() const { return m_pos; }
void SetPosition( const wxPoint& aPosition ) { m_pos = aPosition; }
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
bool HitTest( const EDA_RECT& aRect, bool aContained = false,
int aAccuracy = 0 ) const;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
#endif
private:
- bool doIsConnected( const wxPoint& aPosition ) const;
+ bool doIsConnected( const wxPoint& aPosition ) const override;
};
diff --git a/eeschema/sch_line.h b/eeschema/sch_line.h
index 87a3972a8d..e89a45e344 100644
--- a/eeschema/sch_line.h
+++ b/eeschema/sch_line.h
@@ -87,19 +87,19 @@ public:
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
- int GetPenSize() const;
+ int GetPenSize() const override;
- void Move( const wxPoint& aMoveVector );
+ void Move( const wxPoint& aMoveVector ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
/**
* Check line against \a aLine to see if it overlaps and merge if it does.
@@ -113,44 +113,44 @@ public:
*/
bool MergeOverlap( SCH_LINE* aLine );
- void GetEndPoints( std::vector& aItemList );
+ void GetEndPoints( std::vector& aItemList ) override;
- bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList );
+ bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList ) override;
bool IsDangling() const { return m_startIsDangling || m_endIsDangling; }
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
- bool IsConnectable() const;
+ bool IsConnectable() const override;
- void GetConnectionPoints(std::vector< wxPoint >& aPoints ) const;
+ void GetConnectionPoints(std::vector< wxPoint >& aPoints ) const override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const;
+ BITMAP_DEF GetMenuImage() const override;
- void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems, SCH_SHEET_PATH* aSheetPath );
+ void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems, SCH_SHEET_PATH* aSheetPath ) override;
- bool operator <( const SCH_ITEM& aItem ) const;
+ bool operator <( const SCH_ITEM& aItem ) const override;
wxPoint GetPosition() const { return m_start; }
- void SetPosition( const wxPoint& aPosition );
+ void SetPosition( const wxPoint& aPosition ) override;
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const override;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
#endif
private:
- bool doIsConnected( const wxPoint& aPosition ) const;
+ bool doIsConnected( const wxPoint& aPosition ) const override;
};
diff --git a/eeschema/sch_marker.h b/eeschema/sch_marker.h
index 0c534d9c4d..7c5f3d271e 100644
--- a/eeschema/sch_marker.h
+++ b/eeschema/sch_marker.h
@@ -63,7 +63,7 @@ public:
(void) aPlotter;
}
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
EDA_RECT const GetBoundingBox() const; // Virtual
@@ -75,11 +75,11 @@ public:
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
/**
* Function Matches, virtual from the base class EDA_ITEM
@@ -91,11 +91,11 @@ public:
* @param aFindLocation - a wxPoint where to put the location of matched item. can be NULL.
* @return True if the DRC main or auxiliary text matches the search criteria.
*/
- bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
+ bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
wxString GetSelectMenuText() const { return wxString( _( "ERC Marker" ) ); }
@@ -105,9 +105,9 @@ public:
void SetPosition( const wxPoint& aPosition ) { m_Pos = aPosition; }
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
diff --git a/eeschema/sch_no_connect.h b/eeschema/sch_no_connect.h
index f5663047b9..0b5fe62955 100644
--- a/eeschema/sch_no_connect.h
+++ b/eeschema/sch_no_connect.h
@@ -51,18 +51,18 @@ public:
return wxT( "SCH_NO_CONNECT" );
}
- int GetPenSize() const;
+ int GetPenSize() const override;
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
- void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList );
+ void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) override;
const EDA_RECT GetBoundingBox() const; // Virtual
@@ -73,42 +73,42 @@ public:
m_pos += aMoveVector;
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
bool IsConnectable() const { return true; }
- void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
+ void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const override;
wxString GetSelectMenuText() const { return wxString( _( "No Connect" ) ); }
BITMAP_DEF GetMenuImage() const { return noconn_xpm; }
- void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems, SCH_SHEET_PATH* aSheetPath );
+ void GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems, SCH_SHEET_PATH* aSheetPath ) override;
wxPoint GetPosition() const { return m_pos; }
void SetPosition( const wxPoint& aPosition ) { m_pos = aPosition; }
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const override;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
#endif
private:
- bool doIsConnected( const wxPoint& aPosition ) const;
+ bool doIsConnected( const wxPoint& aPosition ) const override;
};
diff --git a/eeschema/sch_sheet.h b/eeschema/sch_sheet.h
index 8ae97fe64a..1f67d773c4 100644
--- a/eeschema/sch_sheet.h
+++ b/eeschema/sch_sheet.h
@@ -121,11 +121,11 @@ public:
* @param aPoints = a buffer to fill with polygon corners coordinates
* @param aPos = Position of the shape
*/
- void CreateGraphicShape( std::vector & aPoints, const wxPoint& aPos );
+ void CreateGraphicShape( std::vector & aPoints, const wxPoint& aPos ) override;
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
- int GetPenSize() const;
+ int GetPenSize() const override;
/**
* Get the sheet label number.
@@ -160,9 +160,9 @@ public:
*/
SCH_SHEET* GetParent() const { return (SCH_SHEET*) m_Parent; }
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
@@ -175,13 +175,13 @@ public:
m_Pos += aMoveVector;
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
+ bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL )
{
@@ -190,19 +190,19 @@ public:
bool IsReplaceable() const { return true; }
- void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList );
+ void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) override;
bool IsConnectable() const { return true; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_hierar_pin_xpm; }
void SetPosition( const wxPoint& aPosition ) { ConstrainOnEdge( aPosition ); }
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
};
@@ -323,11 +323,11 @@ public:
*/
int GetScreenCount() const;
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
/* there is no member for orientation in sch_sheet, to preserve file
* format, we detect orientation based on pin edges
@@ -426,12 +426,12 @@ public:
*/
int GetMinHeight() const;
- int GetPenSize() const;
+ int GetPenSize() const override;
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aOffset,
GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
- EDA_RECT const GetBoundingBox() const;
+ EDA_RECT const GetBoundingBox() const override;
/**
* Function GetResizePos
@@ -441,7 +441,7 @@ public:
*/
wxPoint GetResizePosition() const;
- void SwapData( SCH_ITEM* aItem );
+ void SwapData( SCH_ITEM* aItem ) override;
/**
* Function ComponentCount
@@ -525,15 +525,15 @@ public:
}
}
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
- bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
+ bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
- bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL );
+ bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL ) override;
bool IsReplaceable() const { return true; }
@@ -556,21 +556,21 @@ public:
*/
wxPoint GetFileNamePosition();
- void GetEndPoints( std::vector & aItemList );
+ void GetEndPoints( std::vector & aItemList ) override;
- bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList );
+ bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList ) override;
- bool IsDangling() const;
+ bool IsDangling() const override;
- bool IsSelectStateChanged( const wxRect& aRect );
+ bool IsSelectStateChanged( const wxRect& aRect ) override;
bool IsConnectable() const { return true; }
- void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
+ void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const override;
SEARCH_RESULT Visit( INSPECTOR inspector, void* testData, const KICAD_T scanTypes[] ) override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_hierarchical_subsheet_xpm; }
@@ -581,15 +581,15 @@ public:
wxPoint GetPosition() const { return m_pos; }
- void SetPosition( const wxPoint& aPosition );
+ void SetPosition( const wxPoint& aPosition ) override;
- bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
- bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = false, int aAccuracy = 0 ) const override;
- void Plot( PLOTTER* aPlotter );
+ void Plot( PLOTTER* aPlotter ) override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
diff --git a/eeschema/sch_text.h b/eeschema/sch_text.h
index da09f771ae..8e66ae2ccf 100644
--- a/eeschema/sch_text.h
+++ b/eeschema/sch_text.h
@@ -147,15 +147,15 @@ public:
aPoints.clear();
}
- virtual void SwapData( SCH_ITEM* aItem );
+ virtual void SwapData( SCH_ITEM* aItem ) override;
- virtual const EDA_RECT GetBoundingBox() const;
+ virtual const EDA_RECT GetBoundingBox() const override;
- virtual bool Save( FILE* aFile ) const;
+ virtual bool Save( FILE* aFile ) const override;
- virtual bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ virtual bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
- virtual int GetPenSize() const;
+ virtual int GetPenSize() const override;
// Geometric transforms (used in block operations):
@@ -164,13 +164,13 @@ public:
m_Pos += aMoveVector;
}
- virtual void MirrorY( int aYaxis_position );
+ virtual void MirrorY( int aYaxis_position ) override;
- virtual void MirrorX( int aXaxis_position );
+ virtual void MirrorX( int aXaxis_position ) override;
- virtual void Rotate( wxPoint aPosition );
+ virtual void Rotate( wxPoint aPosition ) override;
- virtual bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation );
+ virtual bool Matches( wxFindReplaceData& aSearchData, void* aAuxData, wxPoint* aFindLocation ) override;
virtual bool Replace( wxFindReplaceData& aSearchData, void* aAuxData = NULL )
{
@@ -179,19 +179,19 @@ public:
virtual bool IsReplaceable() const { return true; }
- virtual void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList );
+ virtual void GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) override;
- virtual bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList );
+ virtual bool IsDanglingStateChanged( std::vector< DANGLING_END_ITEM >& aItemList ) override;
virtual bool IsDangling() const { return m_isDangling; }
- virtual bool IsSelectStateChanged( const wxRect& aRect );
+ virtual bool IsSelectStateChanged( const wxRect& aRect ) override;
- virtual void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const;
+ virtual void GetConnectionPoints( std::vector< wxPoint >& aPoints ) const override;
virtual bool CanIncrementLabel() const { return true; }
- virtual wxString GetSelectMenuText() const;
+ virtual wxString GetSelectMenuText() const override;
virtual BITMAP_DEF GetMenuImage() const { return add_text_xpm; }
@@ -202,16 +202,16 @@ public:
virtual void SetPosition( const wxPoint& aPosition ) { m_Pos = aPosition; }
- virtual bool HitTest( const wxPoint& aPosition, int aAccuracy ) const;
+ virtual bool HitTest( const wxPoint& aPosition, int aAccuracy ) const override;
virtual bool HitTest( const EDA_RECT& aRect, bool aContained = false,
int aAccuracy = 0 ) const;
- virtual void Plot( PLOTTER* aPlotter );
+ virtual void Plot( PLOTTER* aPlotter ) override;
- virtual EDA_ITEM* Clone() const;
+ virtual EDA_ITEM* Clone() const override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
#if defined(DEBUG)
void Show( int nestLevel, std::ostream& os ) const; // override
@@ -236,29 +236,29 @@ public:
return wxT( "SCH_LABEL" );
}
- void SetOrientation( int aSchematicOrientation );
+ void SetOrientation( int aSchematicOrientation ) override;
- wxPoint GetSchematicTextOffset() const;
+ wxPoint GetSchematicTextOffset() const override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
const EDA_RECT GetBoundingBox() const; // Virtual
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
bool IsConnectable() const { return true; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_line_label_xpm; }
bool IsReplaceable() const { return true; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
bool doIsConnected( const wxPoint& aPosition ) const { return m_Pos == aPosition; }
@@ -282,31 +282,31 @@ public:
return wxT( "SCH_GLOBALLABEL" );
}
- void SetOrientation( int aSchematicOrientation );
+ void SetOrientation( int aSchematicOrientation ) override;
- wxPoint GetSchematicTextOffset() const;
+ wxPoint GetSchematicTextOffset() const override;
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
const EDA_RECT GetBoundingBox() const; // Virtual
- void CreateGraphicShape( std::vector & aPoints, const wxPoint& aPos );
+ void CreateGraphicShape( std::vector & aPoints, const wxPoint& aPos ) override;
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
bool IsConnectable() const { return true; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_glabel_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
bool doIsConnected( const wxPoint& aPosition ) const { return m_Pos == aPosition; }
@@ -332,31 +332,31 @@ public:
return wxT( "SCH_HIERLABEL" );
}
- void SetOrientation( int aSchematicOrientation );
+ void SetOrientation( int aSchematicOrientation ) override;
- wxPoint GetSchematicTextOffset() const;
+ wxPoint GetSchematicTextOffset() const override;
- void CreateGraphicShape( std::vector & aPoints, const wxPoint& Pos );
+ void CreateGraphicShape( std::vector & aPoints, const wxPoint& Pos ) override;
- bool Save( FILE* aFile ) const;
+ bool Save( FILE* aFile ) const override;
- bool Load( LINE_READER& aLine, wxString& aErrorMsg );
+ bool Load( LINE_READER& aLine, wxString& aErrorMsg ) override;
const EDA_RECT GetBoundingBox() const; // Virtual
- void MirrorY( int aYaxis_position );
+ void MirrorY( int aYaxis_position ) override;
- void MirrorX( int aXaxis_position );
+ void MirrorX( int aXaxis_position ) override;
- void Rotate( wxPoint aPosition );
+ void Rotate( wxPoint aPosition ) override;
bool IsConnectable() const { return true; }
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return add_hierarchical_label_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
private:
bool doIsConnected( const wxPoint& aPosition ) const { return m_Pos == aPosition; }
diff --git a/eeschema/sch_validators.h b/eeschema/sch_validators.h
index 6c34060c50..32583e7369 100644
--- a/eeschema/sch_validators.h
+++ b/eeschema/sch_validators.h
@@ -65,7 +65,7 @@ public:
* @param aParent - a pointer to the parent window of the error message dialog.
* @return true if the text in the control is valid otherwise false.
*/
- virtual bool Validate( wxWindow *aParent );
+ virtual bool Validate( wxWindow *aParent ) override;
};
diff --git a/eeschema/schframe.h b/eeschema/schframe.h
index db284640e6..a5e31ded22 100644
--- a/eeschema/schframe.h
+++ b/eeschema/schframe.h
@@ -192,13 +192,13 @@ protected:
*
* @return true if the auto save was successful otherwise false.
*/
- virtual bool doAutoSave();
+ virtual bool doAutoSave() override;
/**
* Function autoSaveRequired
* returns true if the schematic has been modified.
*/
- virtual bool isAutoSaveRequired() const;
+ virtual bool isAutoSaveRequired() const override;
/**
* Function addCurrentItemToList
@@ -266,7 +266,7 @@ public:
void Process_Config( wxCommandEvent& event );
void OnSelectTool( wxCommandEvent& aEvent );
- bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 );
+ bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
/**
* Function GetProjectFileParametersList
@@ -284,7 +284,7 @@ public:
* saves changes to the project settings to the project (.pro) file.
* @param aAskForSave = true to open a dialog before saving the settings
*/
- void SaveProjectSettings( bool aAskForSave );
+ void SaveProjectSettings( bool aAskForSave ) override;
/**
* Function LoadProjectFile
@@ -361,21 +361,21 @@ public:
*/
PARAM_CFG_ARRAY& GetConfigurationSettings();
- void LoadSettings( wxConfigBase* aCfg );
- void SaveSettings( wxConfigBase* aCfg );
+ void LoadSettings( wxConfigBase* aCfg ) override;
+ void SaveSettings( wxConfigBase* aCfg ) override;
- void RedrawActiveWindow( wxDC* DC, bool EraseBg );
+ void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
void CreateScreens();
- void ReCreateHToolbar();
- void ReCreateVToolbar();
+ void ReCreateHToolbar() override;
+ void ReCreateVToolbar() override;
void ReCreateOptToolbar();
- void ReCreateMenuBar();
+ void ReCreateMenuBar() override;
///> @copydoc EDA_DRAW_FRAME::GetHotKeyDescription()
- EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const;
+ EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
- bool OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, EDA_ITEM* aItem = NULL );
+ bool OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
/**
* Function OnModify
@@ -385,7 +385,7 @@ public:
*/
void OnModify();
- virtual wxString GetScreenDesc() const;
+ virtual wxString GetScreenDesc() const override;
void InstallConfigFrame( wxCommandEvent& event );
@@ -395,15 +395,15 @@ public:
* this is a virtual function called by EDA_DRAW_FRAME::OnSockRequest().
* @param cmdline = received command from socket
*/
- virtual void ExecuteRemoteCommand( const char* cmdline );
+ virtual void ExecuteRemoteCommand( const char* cmdline ) override;
void KiwayMailIn( KIWAY_EXPRESS& aEvent ); // override virtual from KIWAY_PLAYER
- void OnLeftClick( wxDC* aDC, const wxPoint& aPosition );
- void OnLeftDClick( wxDC* aDC, const wxPoint& aPosition );
- bool OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu );
+ void OnLeftClick( wxDC* aDC, const wxPoint& aPosition ) override;
+ void OnLeftDClick( wxDC* aDC, const wxPoint& aPosition ) override;
+ bool OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ) override;
void OnSelectOptionToolbar( wxCommandEvent& event );
- double BestZoom();
+ double BestZoom() override;
/**
* Function LocateAndShowItem
@@ -1216,7 +1216,7 @@ public:
* Function InitBlockPasteInfos
* initializes the parameters used by the block paste command.
*/
- void InitBlockPasteInfos();
+ void InitBlockPasteInfos() override;
/**
* Function BlockCommand
@@ -1226,7 +1226,7 @@ public:
* @param aKey = the key modifiers (Alt, Shift ...)
* @return the block command id (BLOCK_MOVE, BLOCK_COPY...)
*/
- virtual int BlockCommand( EDA_KEY aKey );
+ virtual int BlockCommand( EDA_KEY aKey ) override;
/**
* Function HandleBlockPlace
@@ -1235,7 +1235,7 @@ public:
* (bloc move, drag, copy .. )
* Parameters must be initialized in GetScreen()->m_BlockLocate
*/
- virtual void HandleBlockPlace( wxDC* DC );
+ virtual void HandleBlockPlace( wxDC* DC ) override;
/**
* Function HandleBlockEnd
@@ -1249,7 +1249,7 @@ public:
* @return false if no item selected, or command finished,
* true if some items found and HandleBlockPlace must be called later
*/
- virtual bool HandleBlockEnd( wxDC* aDC );
+ virtual bool HandleBlockEnd( wxDC* aDC ) override;
/**
* Function RepeatDrawItem
diff --git a/eeschema/viewlib_frame.h b/eeschema/viewlib_frame.h
index 4aed86232b..b03c2b6ec8 100644
--- a/eeschema/viewlib_frame.h
+++ b/eeschema/viewlib_frame.h
@@ -61,7 +61,7 @@ public:
~LIB_VIEW_FRAME();
- void OnSize( wxSizeEvent& event );
+ void OnSize( wxSizeEvent& event ) override;
/**
* Function ReCreateListLib
@@ -74,23 +74,23 @@ public:
void ReCreateListCmp();
void Process_Special_Functions( wxCommandEvent& event );
void DisplayLibInfos();
- void RedrawActiveWindow( wxDC* DC, bool EraseBg );
+ void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
void OnCloseWindow( wxCloseEvent& Event );
void CloseLibraryViewer( wxCommandEvent& event );
- void ReCreateHToolbar();
- void ReCreateVToolbar();
- void ReCreateMenuBar();
+ void ReCreateHToolbar() override;
+ void ReCreateVToolbar() override;
+ void ReCreateMenuBar() override;
- void OnLeftClick( wxDC* DC, const wxPoint& MousePos );
- double BestZoom();
+ void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) override;
+ double BestZoom() override;
void ClickOnLibList( wxCommandEvent& event );
void ClickOnCmpList( wxCommandEvent& event );
void OnSetRelativeOffset( wxCommandEvent& event );
- bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 );
+ bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
///> @copydoc EDA_DRAW_FRAME::GetHotKeyDescription()
- EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const;
+ EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
/**
* Function OnHotKey
@@ -100,10 +100,10 @@ public:
* case insensitive
*
*/
- bool OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, EDA_ITEM* aItem = NULL );
+ bool OnHotKey( wxDC* aDC, int aHotKey, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
- void LoadSettings( wxConfigBase* aCfg );
- void SaveSettings( wxConfigBase* aCfg );
+ void LoadSettings( wxConfigBase* aCfg ) override;
+ void SaveSettings( wxConfigBase* aCfg ) override;
/**
* set a filter to display only libraries and/or components
@@ -143,7 +143,7 @@ private:
* is called when the frame frame is activate to reload the libraries and component lists
* that can be changed by the schematic editor or the library editor.
*/
- virtual void OnActivate( wxActivateEvent& event );
+ virtual void OnActivate( wxActivateEvent& event ) override;
void SelectCurrentLibrary();
void SelectAndViewLibraryPart( int option );
@@ -154,7 +154,7 @@ private:
*/
void ExportToSchematicLibraryPart( wxCommandEvent& event );
void ViewOneLibraryContent( PART_LIB* Lib, int Flag );
- bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu );
+ bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu ) override;
void DClickOnCmpList( wxCommandEvent& event );
// Private members:
diff --git a/gerbview/class_gbr_layer_box_selector.h b/gerbview/class_gbr_layer_box_selector.h
index 6128bcef8b..382379e685 100644
--- a/gerbview/class_gbr_layer_box_selector.h
+++ b/gerbview/class_gbr_layer_box_selector.h
@@ -42,18 +42,18 @@ public:
// Reload the Layers names and bitmaps
// Virtual function
- void Resync();
+ void Resync() override;
// Returns a color index from the layer id
// Virtual function
- EDA_COLOR_T GetLayerColor( int aLayer ) const;
+ EDA_COLOR_T GetLayerColor( int aLayer ) const override;
// Returns true if the layer id is enabled (i.e. is it should be displayed)
// Virtual function
- bool IsLayerEnabled( int aLayer ) const { return true; };
+ bool IsLayerEnabled( int aLayer ) const override { return true; }
// Returns the name of the layer id
- wxString GetLayerName( int aLayer ) const;
+ wxString GetLayerName( int aLayer ) const override;
};
#endif //CLASS_GBR_LAYER_BOX_SELECTOR_H
diff --git a/gerbview/class_gbr_screen.h b/gerbview/class_gbr_screen.h
index 920b9931dc..97e7786330 100644
--- a/gerbview/class_gbr_screen.h
+++ b/gerbview/class_gbr_screen.h
@@ -50,13 +50,13 @@ public:
GBR_SCREEN* Next() const { return static_cast( Pnext ); }
- virtual int MilsToIuScalar();
+ virtual int MilsToIuScalar() override;
/**
* Function ClearUndoORRedoList
* virtual pure in BASE_SCREEN, so it must be defined here
*/
- void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 );
+ void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 ) override;
};
diff --git a/gerbview/class_gerber_draw_item.h b/gerbview/class_gerber_draw_item.h
index 5a628b8328..d27d5f46ec 100644
--- a/gerbview/class_gerber_draw_item.h
+++ b/gerbview/class_gerber_draw_item.h
@@ -227,7 +227,7 @@ public:
/* divers */
int Shape() const { return m_Shape; }
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
wxString ShowGBRShape();
@@ -237,7 +237,7 @@ public:
* @param aRefPos a wxPoint to test
* @return bool - true if a hit, else false
*/
- bool HitTest( const wxPoint& aRefPos ) const;
+ bool HitTest( const wxPoint& aRefPos ) const override;
/**
* Function HitTest (overloaded)
diff --git a/gerbview/class_gerbview_layer_widget.h b/gerbview/class_gerbview_layer_widget.h
index 3c05367651..f59de186d0 100644
--- a/gerbview/class_gerbview_layer_widget.h
+++ b/gerbview/class_gerbview_layer_widget.h
@@ -75,7 +75,7 @@ class GERBER_LAYER_WIDGET : public LAYER_WIDGET
* @return true if bitmaps shown in Render layer list
* are alternate bitmaps, or false if they are "normal" bitmaps
*/
- virtual bool useAlternateBitmap(int aRow);
+ virtual bool useAlternateBitmap(int aRow) override;
GERBER_FILE_IMAGE_LIST* GetImagesList();
@@ -100,11 +100,11 @@ public:
void ReFillRender();
//----------------
- void OnLayerColorChange( int aLayer, EDA_COLOR_T aColor );
- bool OnLayerSelect( int aLayer );
- void OnLayerVisible( int aLayer, bool isVisible, bool isFinal );
- void OnRenderColorChange( int aId, EDA_COLOR_T aColor );
- void OnRenderEnable( int aId, bool isEnabled );
+ void OnLayerColorChange( int aLayer, EDA_COLOR_T aColor ) override;
+ bool OnLayerSelect( int aLayer ) override;
+ void OnLayerVisible( int aLayer, bool isVisible, bool isFinal ) override;
+ void OnRenderColorChange( int aId, EDA_COLOR_T aColor ) override;
+ void OnRenderEnable( int aId, bool isEnabled ) override;
/**
* Function SetLayersManagerTabsText
diff --git a/gerbview/dialogs/dialog_print_using_printer.cpp b/gerbview/dialogs/dialog_print_using_printer.cpp
index 75b16c0abe..26713b0748 100644
--- a/gerbview/dialogs/dialog_print_using_printer.cpp
+++ b/gerbview/dialogs/dialog_print_using_printer.cpp
@@ -79,12 +79,12 @@ public:
~DIALOG_PRINT_USING_PRINTER() {};
private:
- void OnCloseWindow( wxCloseEvent& event );
+ void OnCloseWindow( wxCloseEvent& event ) override;
void OnInitDialog( wxInitDialogEvent& event );
- void OnPageSetup( wxCommandEvent& event );
- void OnPrintPreview( wxCommandEvent& event );
- void OnPrintButtonClick( wxCommandEvent& event );
- void OnScaleSelectionClick( wxCommandEvent& event );
+ void OnPageSetup( wxCommandEvent& event ) override;
+ void OnPrintPreview( wxCommandEvent& event ) override;
+ void OnPrintButtonClick( wxCommandEvent& event ) override;
+ void OnScaleSelectionClick( wxCommandEvent& event ) override;
void OnButtonCloseClick( wxCommandEvent& event ) { Close(); }
void SetPrintParameters();
diff --git a/gerbview/dialogs/dialog_show_page_borders.h b/gerbview/dialogs/dialog_show_page_borders.h
index 1c866867b6..6c341f4464 100644
--- a/gerbview/dialogs/dialog_show_page_borders.h
+++ b/gerbview/dialogs/dialog_show_page_borders.h
@@ -41,7 +41,7 @@ public:
~DIALOG_PAGE_SHOW_PAGE_BORDERS() {};
private:
- void OnOKBUttonClick( wxCommandEvent& event );
- void OnCancelButtonClick( wxCommandEvent& event );
+ void OnOKBUttonClick( wxCommandEvent& event ) override;
+ void OnCancelButtonClick( wxCommandEvent& event ) override;
};
diff --git a/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp b/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp
index 19c433fc19..41ace4a1f1 100644
--- a/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp
+++ b/gerbview/dialogs/gerbview_dialog_display_options_frame.cpp
@@ -52,8 +52,8 @@ public:
~DIALOG_DISPLAY_OPTIONS() {};
private:
- void OnOKBUttonClick( wxCommandEvent& event );
- void OnCancelButtonClick( wxCommandEvent& event );
+ void OnOKBUttonClick( wxCommandEvent& event ) override;
+ void OnCancelButtonClick( wxCommandEvent& event ) override;
void initOptDialog( );
};
diff --git a/gerbview/gerbview.cpp b/gerbview/gerbview.cpp
index eb2c3eee55..c2acfe5c7b 100644
--- a/gerbview/gerbview.cpp
+++ b/gerbview/gerbview.cpp
@@ -61,9 +61,9 @@ static struct IFACE : public KIFACE_I
KIFACE_I( aName, aType )
{}
- bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits );
+ bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override;
- void OnKifaceEnd();
+ void OnKifaceEnd() override;
wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 )
{
diff --git a/gerbview/gerbview_frame.h b/gerbview/gerbview_frame.h
index 45561bd22c..0db70eb71b 100644
--- a/gerbview/gerbview_frame.h
+++ b/gerbview/gerbview_frame.h
@@ -206,9 +206,9 @@ public:
bool OpenProjectFiles( const std::vector& aFileSet, int aCtl ); // overload KIWAY_PLAYER
// Virtual basic functions:
- void RedrawActiveWindow( wxDC* DC, bool EraseBg );
- void ReCreateHToolbar();
- void ReCreateAuxiliaryToolbar();
+ void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
+ void ReCreateHToolbar() override;
+ void ReCreateAuxiliaryToolbar() override;
/**
* Function ReCreateVToolbar
@@ -216,20 +216,20 @@ public:
*
* @note This is currently not used.
*/
- void ReCreateVToolbar();
+ void ReCreateVToolbar() override;
/**
* Create or update the left vertical toolbar (option toolbar
*/
void ReCreateOptToolbar();
- void ReCreateMenuBar();
- void OnLeftClick( wxDC* aDC, const wxPoint& aMousePos );
- void OnLeftDClick( wxDC* aDC, const wxPoint& aMousePos );
- bool OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu );
+ void ReCreateMenuBar() override;
+ void OnLeftClick( wxDC* aDC, const wxPoint& aMousePos ) override;
+ void OnLeftDClick( wxDC* aDC, const wxPoint& aMousePos ) override;
+ bool OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu ) override;
void OnUpdateSelectTool( wxUpdateUIEvent& aEvent );
- double BestZoom();
- void UpdateStatusBar();
+ double BestZoom() override;
+ void UpdateStatusBar() override;
/**
* Function GetZoomLevelIndicator
@@ -237,7 +237,7 @@ public:
* level indicator in dialogs.
* Virtual from the base class
*/
- const wxString GetZoomLevelIndicator() const;
+ const wxString GetZoomLevelIndicator() const override;
/**
* Function ReportMessage
@@ -299,7 +299,7 @@ public:
* It may be overloaded by derived classes
* @param aVisible = true if the grid must be shown
*/
- void SetGridVisibility( bool aVisible );
+ void SetGridVisibility( bool aVisible ) override;
/**
* Function GetVisibleLayers
@@ -505,7 +505,7 @@ public:
void OnQuit( wxCommandEvent& event );
///> @copydoc EDA_DRAW_FRAME::GetHotKeyDescription()
- EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const;
+ EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
/**
* Function OnHotKey.
@@ -516,7 +516,7 @@ public:
* @param aPosition The cursor position in logical (drawing) units.
* @param aItem = NULL or pointer on a EDA_ITEM under the mouse cursor
*/
- bool OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosition, EDA_ITEM* aItem = NULL );
+ bool OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
GERBER_DRAW_ITEM* Locate( const wxPoint& aPosition, int typeloc );
@@ -539,13 +539,13 @@ public:
* returns the block command (BLOCK_MOVE, BLOCK_COPY...) corresponding to
* the \a aKey (ALT, SHIFT ALT ..)
*/
- virtual int BlockCommand( EDA_KEY key );
+ virtual int BlockCommand( EDA_KEY key ) override;
/**
* Function HandleBlockPlace
* handles the block place command.
*/
- virtual void HandleBlockPlace( wxDC* DC );
+ virtual void HandleBlockPlace( wxDC* DC ) override;
/**
* Function HandleBlockEnd( )
@@ -558,7 +558,7 @@ public:
* @return false if no item selected, or command finished,
* true if some items found and HandleBlockPlace must be called later.
*/
- virtual bool HandleBlockEnd( wxDC* DC );
+ virtual bool HandleBlockEnd( wxDC* DC ) override;
/**
* Function Block_Move
@@ -612,7 +612,7 @@ public:
bool LoadExcellonFiles( const wxString& aFileName );
bool Read_EXCELLON_File( const wxString& aFullFileName );
- bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 );
+ bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
/**
* Set Size Items (Lines, Flashes) from DCodes List
diff --git a/gerbview/select_layers_to_pcb.h b/gerbview/select_layers_to_pcb.h
index e27ee592bf..91b51fd964 100644
--- a/gerbview/select_layers_to_pcb.h
+++ b/gerbview/select_layers_to_pcb.h
@@ -57,13 +57,13 @@ public: LAYERS_MAP_DIALOG( GERBVIEW_FRAME* parent );
private:
void initDialog();
void normalizeBrdLayersCount();
- void OnBrdLayersCountSelection( wxCommandEvent& event );
+ void OnBrdLayersCountSelection( wxCommandEvent& event ) override;
void OnSelectLayer( wxCommandEvent& event );
- void OnOkClick( wxCommandEvent& event );
+ void OnOkClick( wxCommandEvent& event ) override;
- void OnStoreSetup( wxCommandEvent& event );
- void OnGetSetup( wxCommandEvent& event );
- void OnResetClick( wxCommandEvent& event );
+ void OnStoreSetup( wxCommandEvent& event ) override;
+ void OnGetSetup( wxCommandEvent& event ) override;
+ void OnResetClick( wxCommandEvent& event ) override;
DECLARE_EVENT_TABLE()
};
diff --git a/include/base_struct.h b/include/base_struct.h
index 2990b14f8f..35312ad63e 100644
--- a/include/base_struct.h
+++ b/include/base_struct.h
@@ -484,10 +484,10 @@ public:
EDA_ITEM& operator=( const EDA_ITEM& aItem );
/// @copydoc VIEW_ITEM::ViewBBox()
- virtual const BOX2I ViewBBox() const;
+ virtual const BOX2I ViewBBox() const override;
/// @copydoc VIEW_ITEM::ViewGetLayers()
- virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
+ virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
#if defined(DEBUG)
diff --git a/include/basic_gal.h b/include/basic_gal.h
index 2ca3e34c3b..e10d0ca124 100644
--- a/include/basic_gal.h
+++ b/include/basic_gal.h
@@ -94,12 +94,12 @@ public:
}
/// @brief Save the context.
- virtual void Save()
+ virtual void Save() override
{
m_transformHistory.push( m_transform );
}
- virtual void Restore()
+ virtual void Restore() override
{
m_transform = m_transformHistory.top();
m_transformHistory.pop();
@@ -110,20 +110,20 @@ public:
* @brief Draw a polyline
* @param aPointList is a list of 2D-Vectors containing the polyline points.
*/
- virtual void DrawPolyline( const std::deque& aPointList );
+ virtual void DrawPolyline( const std::deque& aPointList ) override;
/** Start and end points are defined as 2D-Vectors.
* @param aStartPoint is the start point of the line.
* @param aEndPoint is the end point of the line.
*/
- virtual void DrawLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
+ virtual void DrawLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ) override;
/**
* @brief Translate the context.
*
* @param aTranslation is the translation vector.
*/
- virtual void Translate( const VECTOR2D& aTranslation )
+ virtual void Translate( const VECTOR2D& aTranslation ) override
{
m_transform.m_moveOffset += aTranslation;
}
@@ -133,7 +133,7 @@ public:
*
* @param aAngle is the rotation angle in radians.
*/
- virtual void Rotate( double aAngle )
+ virtual void Rotate( double aAngle ) override
{
m_transform.m_rotAngle = aAngle;
m_transform.m_rotCenter = m_transform.m_moveOffset;
diff --git a/include/class_base_screen.h b/include/class_base_screen.h
index fe77668c67..a509b6efd3 100644
--- a/include/class_base_screen.h
+++ b/include/class_base_screen.h
@@ -491,7 +491,7 @@ public:
* returns the class name.
* @return wxString
*/
- virtual wxString GetClass() const
+ virtual wxString GetClass() const override
{
return wxT( "BASE_SCREEN" );
}
@@ -501,7 +501,7 @@ public:
void ClearBlockCommand() { m_BlockLocate.Clear(); }
#if defined(DEBUG)
- void Show( int nestLevel, std::ostream& os ) const; // overload
+ void Show( int nestLevel, std::ostream& os ) const override;
#endif
};
diff --git a/include/class_board_item.h b/include/class_board_item.h
index af8491ce26..e492b11b89 100644
--- a/include/class_board_item.h
+++ b/include/class_board_item.h
@@ -284,7 +284,7 @@ public:
*/
wxString GetLayerName() const;
- virtual bool HitTest( const wxPoint& aPosition ) const
+ virtual bool HitTest( const wxPoint& aPosition ) const override
{
return EDA_ITEM::HitTest( aPosition );
}
@@ -332,7 +332,7 @@ public:
static std::string FormatInternalUnits( const wxSize& aSize );
/// @copydoc VIEW_ITEM::ViewGetLayers()
- virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
+ virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
};
#endif /* BOARD_ITEM_STRUCT_H */
diff --git a/include/class_draw_panel_gal.h b/include/class_draw_panel_gal.h
index 684f85887a..77133d9fcf 100644
--- a/include/class_draw_panel_gal.h
+++ b/include/class_draw_panel_gal.h
@@ -65,7 +65,7 @@ public:
const wxSize& aSize, GAL_TYPE aGalType = GAL_TYPE_OPENGL );
~EDA_DRAW_PANEL_GAL();
- virtual void SetFocus();
+ virtual void SetFocus() override;
/**
* Function SwitchBackend
@@ -114,7 +114,7 @@ public:
}
/// @copydoc wxWindow::Refresh()
- void Refresh( bool aEraseBackground = true, const wxRect* aRect = NULL );
+ void Refresh( bool aEraseBackground = true, const wxRect* aRect = NULL ) override;
/**
* Function ForceRefresh()
diff --git a/include/class_drawpanel.h b/include/class_drawpanel.h
index eb2620eef2..4aa5affe96 100644
--- a/include/class_drawpanel.h
+++ b/include/class_drawpanel.h
@@ -230,7 +230,7 @@ public:
*
* @param aDC The device context to prepare.
*/
- virtual void DoPrepareDC( wxDC& aDC );
+ virtual void DoPrepareDC( wxDC& aDC ) override;
/**
* Function DeviceToLogical
@@ -322,7 +322,7 @@ public:
void RefreshDrawingRect( const EDA_RECT& aRect, bool aEraseBackground = true );
/// @copydoc wxWindow::Refresh()
- virtual void Refresh( bool eraseBackground = true, const wxRect* rect = NULL );
+ virtual void Refresh( bool eraseBackground = true, const wxRect* rect = NULL ) override;
/**
* Function GetScreenCenterLogicalPosition
diff --git a/include/class_pcb_screen.h b/include/class_pcb_screen.h
index dc65b3d9de..348add1fc8 100644
--- a/include/class_pcb_screen.h
+++ b/include/class_pcb_screen.h
@@ -61,7 +61,7 @@ public:
void SetPreviousZoom();
void SetLastZoom();
- virtual int MilsToIuScalar();
+ virtual int MilsToIuScalar() override;
/**
* Function GetCurItem
@@ -99,7 +99,7 @@ public:
* items are removed from the beginning of the list.
* So this function can be called to remove old commands
*/
- void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 );
+ void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 ) override;
};
#endif // CLASS_PCB_SCREEN_H_
diff --git a/include/class_worksheet_dataitem.h b/include/class_worksheet_dataitem.h
index 47f72cb3c0..bbd289c2c0 100644
--- a/include/class_worksheet_dataitem.h
+++ b/include/class_worksheet_dataitem.h
@@ -306,7 +306,7 @@ private:
public:
WORKSHEET_DATAITEM_POLYPOLYGON( );
- virtual int GetPenSizeUi()
+ virtual int GetPenSizeUi() override
{
return KiROUND( m_LineWidth * m_WSunits2Iu );
}
@@ -314,7 +314,7 @@ public:
/**
* @return false (no end point)
*/
- virtual bool HasEndPoint() { return false; };
+ virtual bool HasEndPoint() override { return false; }
/**
* add a corner in corner list
@@ -377,7 +377,7 @@ public:
*/
void SetBoundingBox();
- bool IsInsidePage( int ii ) const;
+ bool IsInsidePage( int ii ) const override;
};
@@ -405,9 +405,9 @@ public:
/**
* @return false (no end point)
*/
- virtual bool HasEndPoint() { return false; };
+ virtual bool HasEndPoint() override { return false; }
- virtual int GetPenSizeUi()
+ virtual int GetPenSizeUi() override
{
if( m_LineWidth )
return KiROUND( m_LineWidth * m_WSunits2Iu );
@@ -510,7 +510,7 @@ public:
/**
* @return false (no end point)
*/
- virtual bool HasEndPoint() { return false; }
+ virtual bool HasEndPoint() override { return false; }
/**
* @return the PPI of the bitmap
diff --git a/include/config_params.h b/include/config_params.h
index 0425e94f5b..9d4dad147c 100644
--- a/include/config_params.h
+++ b/include/config_params.h
@@ -141,8 +141,8 @@ public:
int max = std::numeric_limits::max(),
const wxChar* group = NULL );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
/**
@@ -171,8 +171,8 @@ public:
const wxChar* group = NULL,
double aBiu2cfgunit = 1.0 );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
@@ -192,8 +192,8 @@ public:
PARAM_CFG_SETCOLOR( bool Insetup, const wxString& ident, EDA_COLOR_T* ptparam,
EDA_COLOR_T default_val, const wxChar* group = NULL );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
@@ -216,8 +216,8 @@ public:
double default_val = 0.0, double min = 0.0, double max = 10000.0,
const wxChar* group = NULL );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
@@ -237,8 +237,8 @@ public:
PARAM_CFG_BOOL( bool Insetup, const wxString& ident, bool* ptparam,
int default_val = false, const wxChar* group = NULL );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
@@ -261,8 +261,8 @@ public:
const wxString& default_val = wxEmptyString,
const wxChar* group = NULL );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
@@ -280,8 +280,8 @@ public:
public:
PARAM_CFG_FILENAME( const wxString& ident, wxString* ptparam,
const wxChar* group = NULL );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
@@ -295,8 +295,8 @@ public:
wxArrayString* ptparam,
const wxChar* group = NULL );
- virtual void ReadParam( wxConfigBase* aConfig ) const;
- virtual void SaveParam( wxConfigBase* aConfig ) const;
+ virtual void ReadParam( wxConfigBase* aConfig ) const override;
+ virtual void SaveParam( wxConfigBase* aConfig ) const override;
};
diff --git a/include/dialog_env_var_config.h b/include/dialog_env_var_config.h
index 7705e54108..4e3f6a4e41 100644
--- a/include/dialog_env_var_config.h
+++ b/include/dialog_env_var_config.h
@@ -43,15 +43,15 @@ private:
bool m_extDefsChanged;
protected:
- virtual void OnAddRow( wxCommandEvent& aEvent );
- virtual void OnDeleteSelectedRows( wxCommandEvent& aEvent );
- virtual void OnHelpRequest( wxCommandEvent& aEvent );
+ virtual void OnAddRow( wxCommandEvent& aEvent ) override;
+ virtual void OnDeleteSelectedRows( wxCommandEvent& aEvent ) override;
+ virtual void OnHelpRequest( wxCommandEvent& aEvent ) override;
public:
DIALOG_ENV_VAR_CONFIG( wxWindow* parent, const ENV_VAR_MAP& aEnvVarMap );
- bool TransferDataToWindow();
- bool TransferDataFromWindow();
+ bool TransferDataToWindow() override;
+ bool TransferDataFromWindow() override;
bool ExternalDefsChanged() const { return m_extDefsChanged; }
diff --git a/include/dialog_get_component.h b/include/dialog_get_component.h
index 583f10bd43..fbc3d505ef 100644
--- a/include/dialog_get_component.h
+++ b/include/dialog_get_component.h
@@ -72,9 +72,9 @@ public:
private:
void initDialog( wxArrayString& aHistoryList );
- void OnCancel( wxCommandEvent& event );
- void Accept( wxCommandEvent& event );
- void GetExtraSelection( wxCommandEvent& event );
+ void OnCancel( wxCommandEvent& event ) override;
+ void Accept( wxCommandEvent& event ) override;
+ void GetExtraSelection( wxCommandEvent& event ) override;
};
diff --git a/include/dialog_helpers.h b/include/dialog_helpers.h
index 657470a466..df056ea84f 100644
--- a/include/dialog_helpers.h
+++ b/include/dialog_helpers.h
@@ -88,12 +88,12 @@ public:
wxString GetTextSelection( int aColumn = 0 );
private:
- void onClose( wxCloseEvent& event );
- void onCancelClick( wxCommandEvent& event );
- void onOkClick( wxCommandEvent& event );
- void onListItemSelected( wxListEvent& event );
- void onListItemActivated( wxListEvent& event );
- void textChangeInFilterBox(wxCommandEvent& event);
+ void onClose( wxCloseEvent& event ) override;
+ void onCancelClick( wxCommandEvent& event ) override;
+ void onOkClick( wxCommandEvent& event ) override;
+ void onListItemSelected( wxListEvent& event ) override;
+ void onListItemActivated( wxListEvent& event ) override;
+ void textChangeInFilterBox(wxCommandEvent& event) override;
void initDialog( const wxArrayString& aItemHeaders,
const wxString& aSelection);
diff --git a/include/dialog_hotkeys_editor.h b/include/dialog_hotkeys_editor.h
index 3107b6113f..a944aaec87 100644
--- a/include/dialog_hotkeys_editor.h
+++ b/include/dialog_hotkeys_editor.h
@@ -44,8 +44,8 @@ protected:
WIDGET_HOTKEY_LIST* m_hotkeyListCtrl;
- bool TransferDataToWindow();
- bool TransferDataFromWindow();
+ bool TransferDataToWindow() override;
+ bool TransferDataFromWindow() override;
virtual EDA_BASE_FRAME* GetParent()
{
@@ -65,7 +65,7 @@ private:
*
* @param aEvent is the button press event, unused
*/
- void ResetClicked( wxCommandEvent& aEvent );
+ void ResetClicked( wxCommandEvent& aEvent ) override;
/**
* Function DefaultsClicked
@@ -73,7 +73,7 @@ private:
*
* @param aEvent is the button press event, unused
*/
- void DefaultsClicked( wxCommandEvent& aEvent );
+ void DefaultsClicked( wxCommandEvent& aEvent ) override;
};
/**
diff --git a/include/dialog_shim.h b/include/dialog_shim.h
index dafe7e8c13..eec2094601 100644
--- a/include/dialog_shim.h
+++ b/include/dialog_shim.h
@@ -85,9 +85,9 @@ public:
bool IsQuasiModal() { return m_qmodal_showing; }
- bool Show( bool show ); // override wxDialog::Show
+ bool Show( bool show ) override;
- bool Enable( bool enable ); // override wxDialog::Enable virtual
+ bool Enable( bool enable ) override;
protected:
diff --git a/include/draw_frame.h b/include/draw_frame.h
index 2a65c7dd60..a52f7ad490 100644
--- a/include/draw_frame.h
+++ b/include/draw_frame.h
@@ -332,7 +332,7 @@ public:
void SkipNextLeftButtonReleaseEvent();
///> @copydoc EDA_BASE_FRAME::WriteHotkeyConfig
- int WriteHotkeyConfig( struct EDA_HOTKEY_CONFIG* aDescList, wxString* aFullFileName = NULL );
+ int WriteHotkeyConfig( struct EDA_HOTKEY_CONFIG* aDescList, wxString* aFullFileName = NULL ) override;
/**
* Function GetHotkeyConfig()
@@ -382,7 +382,7 @@ public:
virtual void ReCreateHToolbar() = 0;
virtual void ReCreateVToolbar() = 0;
- virtual void ReCreateMenuBar();
+ virtual void ReCreateMenuBar() override;
virtual void ReCreateAuxiliaryToolbar();
/**
@@ -692,9 +692,9 @@ public:
void OnSockRequest( wxSocketEvent& evt );
void OnSockRequestServer( wxSocketEvent& evt );
- void LoadSettings( wxConfigBase* aCfg ); // override virtual
+ void LoadSettings( wxConfigBase* aCfg ) override;
- void SaveSettings( wxConfigBase* aCfg ); // override virtual
+ void SaveSettings( wxConfigBase* aCfg ) override;
/**
* Append a message to the message panel.
diff --git a/include/eda_pattern_match.h b/include/eda_pattern_match.h
index fb23a1428a..c5fd7c13ba 100644
--- a/include/eda_pattern_match.h
+++ b/include/eda_pattern_match.h
@@ -65,8 +65,8 @@ public:
class EDA_PATTERN_MATCH_SUBSTR : public EDA_PATTERN_MATCH
{
public:
- virtual bool SetPattern( const wxString& aPattern );
- virtual int Find( const wxString& aCandidate ) const;
+ virtual bool SetPattern( const wxString& aPattern ) override;
+ virtual int Find( const wxString& aCandidate ) const override;
protected:
wxString m_pattern;
@@ -79,8 +79,8 @@ protected:
class EDA_PATTERN_MATCH_REGEX : public EDA_PATTERN_MATCH
{
public:
- virtual bool SetPattern( const wxString& aPattern );
- virtual int Find( const wxString& aCandidate ) const;
+ virtual bool SetPattern( const wxString& aPattern ) override;
+ virtual int Find( const wxString& aCandidate ) const override;
protected:
wxString m_pattern;
@@ -91,8 +91,8 @@ protected:
class EDA_PATTERN_MATCH_WILDCARD : public EDA_PATTERN_MATCH_REGEX
{
public:
- virtual bool SetPattern( const wxString& aPattern );
- virtual int Find( const wxString& aCandidate ) const;
+ virtual bool SetPattern( const wxString& aPattern ) override;
+ virtual int Find( const wxString& aCandidate ) const override;
};
#endif // EDA_PATTERN_MATCH_H
diff --git a/include/filter_reader.h b/include/filter_reader.h
index ca21c7db1a..8d94969509 100644
--- a/include/filter_reader.h
+++ b/include/filter_reader.h
@@ -48,14 +48,14 @@ public:
~FILTER_READER();
- char* ReadLine() throw( IO_ERROR );
+ char* ReadLine() throw( IO_ERROR ) override;
- const wxString& GetSource() const
+ const wxString& GetSource() const override
{
return reader.GetSource();
}
- unsigned LineNumber() const
+ unsigned LineNumber() const override
{
return reader.LineNumber();
}
@@ -82,14 +82,14 @@ public:
~WHITESPACE_FILTER_READER();
- char* ReadLine() throw( IO_ERROR );
+ char* ReadLine() throw( IO_ERROR ) override;
- const wxString& GetSource() const
+ const wxString& GetSource() const override
{
return reader.GetSource();
}
- unsigned LineNumber() const
+ unsigned LineNumber() const override
{
return reader.LineNumber();
}
diff --git a/include/gal/cairo/cairo_compositor.h b/include/gal/cairo/cairo_compositor.h
index 6d5d74a451..906458f5ef 100644
--- a/include/gal/cairo/cairo_compositor.h
+++ b/include/gal/cairo/cairo_compositor.h
@@ -45,28 +45,28 @@ public:
virtual ~CAIRO_COMPOSITOR();
/// @copydoc COMPOSITOR::Initialize()
- virtual void Initialize();
+ virtual void Initialize() override;
/// @copydoc COMPOSITOR::Resize()
- virtual void Resize( unsigned int aWidth, unsigned int aHeight );
+ virtual void Resize( unsigned int aWidth, unsigned int aHeight ) override;
/// @copydoc COMPOSITOR::CreateBuffer()
- virtual unsigned int CreateBuffer();
+ virtual unsigned int CreateBuffer() override;
/// @copydoc COMPOSITOR::GetBuffer()
- inline virtual unsigned int GetBuffer() const
+ inline virtual unsigned int GetBuffer() const override
{
return m_current + 1;
}
/// @copydoc COMPOSITOR::SetBuffer()
- virtual void SetBuffer( unsigned int aBufferHandle );
+ virtual void SetBuffer( unsigned int aBufferHandle ) override;
/// @copydoc COMPOSITOR::ClearBuffer()
- virtual void ClearBuffer();
+ virtual void ClearBuffer() override;
/// @copydoc COMPOSITOR::DrawBuffer()
- virtual void DrawBuffer( unsigned int aBufferHandle );
+ virtual void DrawBuffer( unsigned int aBufferHandle ) override;
/**
* Function SetMainContext()
diff --git a/include/gal/cairo/cairo_gal.h b/include/gal/cairo/cairo_gal.h
index c0d42f7cc8..9e5f249f32 100644
--- a/include/gal/cairo/cairo_gal.h
+++ b/include/gal/cairo/cairo_gal.h
@@ -96,152 +96,152 @@ public:
// ---------------
/// @copydoc GAL::BeginDrawing()
- virtual void BeginDrawing();
+ virtual void BeginDrawing() override;
/// @copydoc GAL::EndDrawing()
- virtual void EndDrawing();
+ virtual void EndDrawing() override;
/// @copydoc GAL::DrawLine()
- virtual void DrawLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
+ virtual void DrawLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ) override;
/// @copydoc GAL::DrawSegment()
- virtual void DrawSegment( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint, double aWidth );
+ virtual void DrawSegment( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint, double aWidth ) override;
/// @copydoc GAL::DrawCircle()
- virtual void DrawCircle( const VECTOR2D& aCenterPoint, double aRadius );
+ virtual void DrawCircle( const VECTOR2D& aCenterPoint, double aRadius ) override;
/// @copydoc GAL::DrawArc()
virtual void DrawArc( const VECTOR2D& aCenterPoint, double aRadius,
- double aStartAngle, double aEndAngle );
+ double aStartAngle, double aEndAngle ) override;
/// @copydoc GAL::DrawRectangle()
- virtual void DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
+ virtual void DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ) override;
/// @copydoc GAL::DrawPolyline()
- virtual void DrawPolyline( const std::deque& aPointList ) { drawPoly( aPointList ); }
- virtual void DrawPolyline( const VECTOR2D aPointList[], int aListSize ) { drawPoly( aPointList, aListSize ); }
+ virtual void DrawPolyline( const std::deque& aPointList ) override { drawPoly( aPointList ); }
+ virtual void DrawPolyline( const VECTOR2D aPointList[], int aListSize ) override { drawPoly( aPointList, aListSize ); }
/// @copydoc GAL::DrawPolygon()
- virtual void DrawPolygon( const std::deque& aPointList ) { drawPoly( aPointList ); }
- virtual void DrawPolygon( const VECTOR2D aPointList[], int aListSize ) { drawPoly( aPointList, aListSize ); }
+ virtual void DrawPolygon( const std::deque& aPointList ) override { drawPoly( aPointList ); }
+ virtual void DrawPolygon( const VECTOR2D aPointList[], int aListSize ) override { drawPoly( aPointList, aListSize ); }
/// @copydoc GAL::DrawCurve()
virtual void DrawCurve( const VECTOR2D& startPoint, const VECTOR2D& controlPointA,
- const VECTOR2D& controlPointB, const VECTOR2D& endPoint );
+ const VECTOR2D& controlPointB, const VECTOR2D& endPoint ) override;
// --------------
// Screen methods
// --------------
/// @brief Resizes the canvas.
- virtual void ResizeScreen( int aWidth, int aHeight );
+ virtual void ResizeScreen( int aWidth, int aHeight ) override;
/// @brief Shows/hides the GAL canvas
- virtual bool Show( bool aShow );
+ virtual bool Show( bool aShow ) override;
/// @copydoc GAL::Flush()
- virtual void Flush();
+ virtual void Flush() override;
/// @copydoc GAL::ClearScreen()
- virtual void ClearScreen( const COLOR4D& aColor );
+ virtual void ClearScreen( const COLOR4D& aColor ) override;
// -----------------
// Attribute setting
// -----------------
/// @copydoc GAL::SetIsFill()
- virtual void SetIsFill( bool aIsFillEnabled );
+ virtual void SetIsFill( bool aIsFillEnabled ) override;
/// @copydoc GAL::SetIsStroke()
- virtual void SetIsStroke( bool aIsStrokeEnabled );
+ virtual void SetIsStroke( bool aIsStrokeEnabled ) override;
/// @copydoc GAL::SetStrokeColor()
- virtual void SetStrokeColor( const COLOR4D& aColor );
+ virtual void SetStrokeColor( const COLOR4D& aColor ) override;
/// @copydoc GAL::SetFillColor()
- virtual void SetFillColor( const COLOR4D& aColor );
+ virtual void SetFillColor( const COLOR4D& aColor ) override;
/// @copydoc GAL::SetLineWidth()
- virtual void SetLineWidth( double aLineWidth );
+ virtual void SetLineWidth( double aLineWidth ) override;
/// @copydoc GAL::SetLayerDepth()
- virtual void SetLayerDepth( double aLayerDepth );
+ virtual void SetLayerDepth( double aLayerDepth ) override;
// --------------
// Transformation
// --------------
/// @copydoc GAL::Transform()
- virtual void Transform( const MATRIX3x3D& aTransformation );
+ virtual void Transform( const MATRIX3x3D& aTransformation ) override;
/// @copydoc GAL::Rotate()
- virtual void Rotate( double aAngle );
+ virtual void Rotate( double aAngle ) override;
/// @copydoc GAL::Translate()
- virtual void Translate( const VECTOR2D& aTranslation );
+ virtual void Translate( const VECTOR2D& aTranslation ) override;
/// @copydoc GAL::Scale()
- virtual void Scale( const VECTOR2D& aScale );
+ virtual void Scale( const VECTOR2D& aScale ) override;
/// @copydoc GAL::Save()
- virtual void Save();
+ virtual void Save() override;
/// @copydoc GAL::Restore()
- virtual void Restore();
+ virtual void Restore() override;
// --------------------------------------------
// Group methods
// ---------------------------------------------
/// @copydoc GAL::BeginGroup()
- virtual int BeginGroup();
+ virtual int BeginGroup() override;
/// @copydoc GAL::EndGroup()
- virtual void EndGroup();
+ virtual void EndGroup() override;
/// @copydoc GAL::DrawGroup()
- virtual void DrawGroup( int aGroupNumber );
+ virtual void DrawGroup( int aGroupNumber ) override;
/// @copydoc GAL::ChangeGroupColor()
- virtual void ChangeGroupColor( int aGroupNumber, const COLOR4D& aNewColor );
+ virtual void ChangeGroupColor( int aGroupNumber, const COLOR4D& aNewColor ) override;
/// @copydoc GAL::ChangeGroupDepth()
- virtual void ChangeGroupDepth( int aGroupNumber, int aDepth );
+ virtual void ChangeGroupDepth( int aGroupNumber, int aDepth ) override;
/// @copydoc GAL::DeleteGroup()
- virtual void DeleteGroup( int aGroupNumber );
+ virtual void DeleteGroup( int aGroupNumber ) override;
/// @copydoc GAL::ClearCache()
- virtual void ClearCache();
+ virtual void ClearCache() override;
// --------------------------------------------------------
// Handling the world <-> screen transformation
// --------------------------------------------------------
/// @copydoc GAL::SaveScreen()
- virtual void SaveScreen();
+ virtual void SaveScreen() override;
/// @copydoc GAL::RestoreScreen()
- virtual void RestoreScreen();
+ virtual void RestoreScreen() override;
/// @copydoc GAL::SetTarget()
- virtual void SetTarget( RENDER_TARGET aTarget );
+ virtual void SetTarget( RENDER_TARGET aTarget ) override;
/// @copydoc GAL::GetTarget()
- virtual RENDER_TARGET GetTarget() const;
+ virtual RENDER_TARGET GetTarget() const override;
/// @copydoc GAL::ClearTarget()
- virtual void ClearTarget( RENDER_TARGET aTarget );
+ virtual void ClearTarget( RENDER_TARGET aTarget ) override;
// -------
// Cursor
// -------
/// @copydoc GAL::SetCursorSize()
- virtual void SetCursorSize( unsigned int aCursorSize );
+ virtual void SetCursorSize( unsigned int aCursorSize ) override;
/// @copydoc GAL::DrawCursor()
- virtual void DrawCursor( const VECTOR2D& aCursorPosition );
+ virtual void DrawCursor( const VECTOR2D& aCursorPosition ) override;
/**
* Function PostPaint
@@ -268,7 +268,7 @@ public:
}
protected:
- virtual void drawGridLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
+ virtual void drawGridLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ) override;
private:
/// Super class definition
diff --git a/include/gal/opengl/cached_container.h b/include/gal/opengl/cached_container.h
index 75fb014fb0..21c3578bbd 100644
--- a/include/gal/opengl/cached_container.h
+++ b/include/gal/opengl/cached_container.h
@@ -48,19 +48,19 @@ public:
~CACHED_CONTAINER();
///> @copydoc VERTEX_CONTAINER::SetItem()
- virtual void SetItem( VERTEX_ITEM* aItem );
+ virtual void SetItem( VERTEX_ITEM* aItem ) override;
///> @copydoc VERTEX_CONTAINER::FinishItem()
- virtual void FinishItem();
+ virtual void FinishItem() override;
///> @copydoc VERTEX_CONTAINER::Allocate()
- virtual VERTEX* Allocate( unsigned int aSize );
+ virtual VERTEX* Allocate( unsigned int aSize ) override;
///> @copydoc VERTEX_CONTAINER::Delete()
- virtual void Delete( VERTEX_ITEM* aItem );
+ virtual void Delete( VERTEX_ITEM* aItem ) override;
///> @copydoc VERTEX_CONTAINER::Clear()
- virtual void Clear();
+ virtual void Clear() override;
/**
* Function GetBufferHandle()
@@ -81,10 +81,10 @@ public:
}
///> @copydoc VERTEX_CONTAINER::Map()
- void Map();
+ void Map() override;
///> @copydoc VERTEX_CONTAINER::Unmap()
- void Unmap();
+ void Unmap() override;
protected:
///> Maps size of free memory chunks to their offsets
diff --git a/include/gal/opengl/gpu_manager.h b/include/gal/opengl/gpu_manager.h
index 555f07df86..e3b32a8973 100644
--- a/include/gal/opengl/gpu_manager.h
+++ b/include/gal/opengl/gpu_manager.h
@@ -104,16 +104,16 @@ public:
~GPU_CACHED_MANAGER();
///> @copydoc GPU_MANAGER::BeginDrawing()
- virtual void BeginDrawing();
+ virtual void BeginDrawing() override;
///> @copydoc GPU_MANAGER::DrawIndices()
- virtual void DrawIndices( unsigned int aOffset, unsigned int aSize );
+ virtual void DrawIndices( unsigned int aOffset, unsigned int aSize ) override;
///> @copydoc GPU_MANAGER::DrawAll()
- virtual void DrawAll();
+ virtual void DrawAll() override;
///> @copydoc GPU_MANAGER::EndDrawing()
- virtual void EndDrawing();
+ virtual void EndDrawing() override;
///> Maps vertex buffer stored in GPU memory.
void Map();
@@ -151,16 +151,16 @@ public:
GPU_NONCACHED_MANAGER( VERTEX_CONTAINER* aContainer );
///> @copydoc GPU_MANAGER::BeginDrawing()
- virtual void BeginDrawing();
+ virtual void BeginDrawing() override;
///> @copydoc GPU_MANAGER::DrawIndices()
- virtual void DrawIndices( unsigned int aOffset, unsigned int aSize );
+ virtual void DrawIndices( unsigned int aOffset, unsigned int aSize ) override;
///> @copydoc GPU_MANAGER::DrawAll()
- virtual void DrawAll();
+ virtual void DrawAll() override;
///> @copydoc GPU_MANAGER::EndDrawing()
- virtual void EndDrawing();
+ virtual void EndDrawing() override;
};
} // namespace KIGFX
#endif /* GPU_MANAGER_H_ */
diff --git a/include/gal/opengl/noncached_container.h b/include/gal/opengl/noncached_container.h
index 3a51e6d6b7..dd45d6d917 100644
--- a/include/gal/opengl/noncached_container.h
+++ b/include/gal/opengl/noncached_container.h
@@ -45,19 +45,19 @@ public:
virtual ~NONCACHED_CONTAINER();
///< @copydoc VERTEX_CONTAINER::SetItem( VERTEX_ITEM* aItem )
- virtual void SetItem( VERTEX_ITEM* aItem );
+ virtual void SetItem( VERTEX_ITEM* aItem ) override;
///< @copydoc VERTEX_CONTAINER::Allocate( unsigned int aSize )
- virtual VERTEX* Allocate( unsigned int aSize );
+ virtual VERTEX* Allocate( unsigned int aSize ) override;
///< @copydoc VERTEX_CONTAINER::Delete( VERTEX_ITEM* aItem )
- void Delete( VERTEX_ITEM* aItem ) {};
+ void Delete( VERTEX_ITEM* aItem ) override {}
///< @copydoc VERTEX_CONTAINER::Clear()
- virtual void Clear();
+ virtual void Clear() override;
///< @copydoc VERTEX_CONTAINER::GetSize()
- virtual inline unsigned int GetSize() const
+ virtual inline unsigned int GetSize() const override
{
// As the m_freePtr points to the first free space, we can safely assume
// that this is the number of vertices stored inside
diff --git a/include/gal/opengl/opengl_compositor.h b/include/gal/opengl/opengl_compositor.h
index d754afab0d..e1fe0e52bf 100644
--- a/include/gal/opengl/opengl_compositor.h
+++ b/include/gal/opengl/opengl_compositor.h
@@ -44,19 +44,19 @@ public:
virtual ~OPENGL_COMPOSITOR();
/// @copydoc COMPOSITOR::Initialize()
- virtual void Initialize();
+ virtual void Initialize() override;
/// @copydoc COMPOSITOR::Resize()
- virtual void Resize( unsigned int aWidth, unsigned int aHeight );
+ virtual void Resize( unsigned int aWidth, unsigned int aHeight ) override;
/// @copydoc COMPOSITOR::CreateBuffer()
- virtual unsigned int CreateBuffer();
+ virtual unsigned int CreateBuffer() override;
/// @copydoc COMPOSITOR::SetBuffer()
- virtual void SetBuffer( unsigned int aBufferHandle );
+ virtual void SetBuffer( unsigned int aBufferHandle ) override;
/// @copydoc COMPOSITOR::GetBuffer()
- inline virtual unsigned int GetBuffer() const
+ inline virtual unsigned int GetBuffer() const override
{
if( m_curFbo == DIRECT_RENDERING )
return DIRECT_RENDERING;
@@ -65,10 +65,10 @@ public:
}
/// @copydoc COMPOSITOR::ClearBuffer()
- virtual void ClearBuffer();
+ virtual void ClearBuffer() override;
/// @copydoc COMPOSITOR::DrawBuffer()
- virtual void DrawBuffer( unsigned int aBufferHandle );
+ virtual void DrawBuffer( unsigned int aBufferHandle ) override;
// Constant used by glBindFramebuffer to turn off rendering to framebuffers
static const unsigned int DIRECT_RENDERING = 0;
diff --git a/include/gal/opengl/opengl_gal.h b/include/gal/opengl/opengl_gal.h
index 2bf1ba114f..fac6921aef 100644
--- a/include/gal/opengl/opengl_gal.h
+++ b/include/gal/opengl/opengl_gal.h
@@ -84,7 +84,7 @@ public:
virtual ~OPENGL_GAL();
/// @copydoc GAL::IsInitialized()
- virtual bool IsInitialized() const { return IsShownOnScreen(); }
+ virtual bool IsInitialized() const override { return IsShownOnScreen(); }
///> @copydoc GAL::IsVisible()
bool IsVisible() const override {
@@ -96,141 +96,141 @@ public:
// ---------------
/// @copydoc GAL::BeginDrawing()
- virtual void BeginDrawing();
+ virtual void BeginDrawing() override;
/// @copydoc GAL::EndDrawing()
- virtual void EndDrawing();
+ virtual void EndDrawing() override;
/// @copydoc GAL::BeginUpdate()
- virtual void BeginUpdate();
+ virtual void BeginUpdate() override;
/// @copydoc GAL::EndUpdate()
- virtual void EndUpdate();
+ virtual void EndUpdate() override;
/// @copydoc GAL::DrawLine()
- virtual void DrawLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
+ virtual void DrawLine( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ) override;
/// @copydoc GAL::DrawSegment()
virtual void DrawSegment( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint,
- double aWidth );
+ double aWidth ) override;
/// @copydoc GAL::DrawCircle()
- virtual void DrawCircle( const VECTOR2D& aCenterPoint, double aRadius );
+ virtual void DrawCircle( const VECTOR2D& aCenterPoint, double aRadius ) override;
/// @copydoc GAL::DrawArc()
virtual void DrawArc( const VECTOR2D& aCenterPoint, double aRadius,
- double aStartAngle, double aEndAngle );
+ double aStartAngle, double aEndAngle ) override;
/// @copydoc GAL::DrawRectangle()
- virtual void DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
+ virtual void DrawRectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint ) override;
/// @copydoc GAL::DrawPolyline()
- virtual void DrawPolyline( const std::deque& aPointList );
- virtual void DrawPolyline( const VECTOR2D aPointList[], int aListSize );
+ virtual void DrawPolyline( const std::deque& aPointList ) override;
+ virtual void DrawPolyline( const VECTOR2D aPointList[], int aListSize ) override;
/// @copydoc GAL::DrawPolygon()
- virtual void DrawPolygon( const std::deque& aPointList );
- virtual void DrawPolygon( const VECTOR2D aPointList[], int aListSize );
+ virtual void DrawPolygon( const std::deque& aPointList ) override;
+ virtual void DrawPolygon( const VECTOR2D aPointList[], int aListSize ) override;
/// @copydoc GAL::DrawCurve()
virtual void DrawCurve( const VECTOR2D& startPoint, const VECTOR2D& controlPointA,
- const VECTOR2D& controlPointB, const VECTOR2D& endPoint );
+ const VECTOR2D& controlPointB, const VECTOR2D& endPoint ) override;
/// @copydoc GAL::BitmapText()
virtual void BitmapText( const wxString& aText, const VECTOR2D& aPosition,
- double aRotationAngle );
+ double aRotationAngle ) override;
/// @copydoc GAL::DrawGrid()
- virtual void DrawGrid();
+ virtual void DrawGrid() override;
// --------------
// Screen methods
// --------------
/// @brief Resizes the canvas.
- virtual void ResizeScreen( int aWidth, int aHeight );
+ virtual void ResizeScreen( int aWidth, int aHeight ) override;
/// @brief Shows/hides the GAL canvas
- virtual bool Show( bool aShow );
+ virtual bool Show( bool aShow ) override;
/// @copydoc GAL::Flush()
- virtual void Flush();
+ virtual void Flush() override;
/// @copydoc GAL::ClearScreen()
- virtual void ClearScreen( const COLOR4D& aColor );
+ virtual void ClearScreen( const COLOR4D& aColor ) override;
// --------------
// Transformation
// --------------
/// @copydoc GAL::Transform()
- virtual void Transform( const MATRIX3x3D& aTransformation );
+ virtual void Transform( const MATRIX3x3D& aTransformation ) override;
/// @copydoc GAL::Rotate()
- virtual void Rotate( double aAngle );
+ virtual void Rotate( double aAngle ) override;
/// @copydoc GAL::Translate()
- virtual void Translate( const VECTOR2D& aTranslation );
+ virtual void Translate( const VECTOR2D& aTranslation ) override;
/// @copydoc GAL::Scale()
- virtual void Scale( const VECTOR2D& aScale );
+ virtual void Scale( const VECTOR2D& aScale ) override;
/// @copydoc GAL::Save()
- virtual void Save();
+ virtual void Save() override;
/// @copydoc GAL::Restore()
- virtual void Restore();
+ virtual void Restore() override;
// --------------------------------------------
// Group methods
// ---------------------------------------------
/// @copydoc GAL::BeginGroup()
- virtual int BeginGroup();
+ virtual int BeginGroup() override;
/// @copydoc GAL::EndGroup()
- virtual void EndGroup();
+ virtual void EndGroup() override;
/// @copydoc GAL::DrawGroup()
- virtual void DrawGroup( int aGroupNumber );
+ virtual void DrawGroup( int aGroupNumber ) override;
/// @copydoc GAL::ChangeGroupColor()
- virtual void ChangeGroupColor( int aGroupNumber, const COLOR4D& aNewColor );
+ virtual void ChangeGroupColor( int aGroupNumber, const COLOR4D& aNewColor ) override;
/// @copydoc GAL::ChangeGroupDepth()
- virtual void ChangeGroupDepth( int aGroupNumber, int aDepth );
+ virtual void ChangeGroupDepth( int aGroupNumber, int aDepth ) override;
/// @copydoc GAL::DeleteGroup()
- virtual void DeleteGroup( int aGroupNumber );
+ virtual void DeleteGroup( int aGroupNumber ) override;
/// @copydoc GAL::ClearCache()
- virtual void ClearCache();
+ virtual void ClearCache() override;
// --------------------------------------------------------
// Handling the world <-> screen transformation
// --------------------------------------------------------
/// @copydoc GAL::SaveScreen()
- virtual void SaveScreen();
+ virtual void SaveScreen() override;
/// @copydoc GAL::RestoreScreen()
- virtual void RestoreScreen();
+ virtual void RestoreScreen() override;
/// @copydoc GAL::SetTarget()
- virtual void SetTarget( RENDER_TARGET aTarget );
+ virtual void SetTarget( RENDER_TARGET aTarget ) override;
/// @copydoc GAL::GetTarget()
- virtual RENDER_TARGET GetTarget() const;
+ virtual RENDER_TARGET GetTarget() const override;
/// @copydoc GAL::ClearTarget()
- virtual void ClearTarget( RENDER_TARGET aTarget );
+ virtual void ClearTarget( RENDER_TARGET aTarget ) override;
// -------
// Cursor
// -------
/// @copydoc GAL::DrawCursor()
- virtual void DrawCursor( const VECTOR2D& aCursorPosition );
+ virtual void DrawCursor( const VECTOR2D& aCursorPosition ) override;
/**
* @brief Function PostPaint
diff --git a/include/geometry/shape_line_chain.h b/include/geometry/shape_line_chain.h
index ae2bf5e0a2..fbe80d5dd2 100644
--- a/include/geometry/shape_line_chain.h
+++ b/include/geometry/shape_line_chain.h
@@ -127,7 +127,7 @@ public:
~SHAPE_LINE_CHAIN()
{}
- SHAPE* Clone() const;
+ SHAPE* Clone() const override;
/**
* Function Clear()
@@ -261,7 +261,7 @@ public:
}
/// @copydoc SHAPE::BBox()
- const BOX2I BBox( int aClearance = 0 ) const
+ const BOX2I BBox( int aClearance = 0 ) const override
{
BOX2I bbox;
bbox.Compute( m_points );
@@ -280,7 +280,7 @@ public:
* @param aClearance minimum distance that does not qualify as a collision.
* @return true, when a collision has been found
*/
- bool Collide( const VECTOR2I& aP, int aClearance = 0 ) const;
+ bool Collide( const VECTOR2I& aP, int aClearance = 0 ) const override;
/**
* Function Collide()
@@ -290,7 +290,7 @@ public:
* @param aClearance minimum distance that does not qualify as a collision.
* @return true, when a collision has been found
*/
- bool Collide( const SEG& aSeg, int aClearance = 0 ) const;
+ bool Collide( const SEG& aSeg, int aClearance = 0 ) const override;
/**
* Function Distance()
@@ -552,10 +552,10 @@ public:
const VECTOR2I NearestPoint( const SEG& aSeg, int& dist ) const;
/// @copydoc SHAPE::Format()
- const std::string Format() const;
+ const std::string Format() const override;
/// @copydoc SHAPE::Parse()
- bool Parse( std::stringstream& aStream );
+ bool Parse( std::stringstream& aStream ) override;
bool operator!=( const SHAPE_LINE_CHAIN& aRhs ) const
{
@@ -573,13 +573,13 @@ public:
bool CompareGeometry( const SHAPE_LINE_CHAIN & aOther ) const;
- void Move( const VECTOR2I& aVector )
+ void Move( const VECTOR2I& aVector ) override
{
for( std::vector::iterator i = m_points.begin(); i != m_points.end(); ++i )
(*i) += aVector;
}
- bool IsSolid() const
+ bool IsSolid() const override
{
return false;
}
diff --git a/include/geometry/shape_poly_set.h b/include/geometry/shape_poly_set.h
index fa61fca107..842f2de720 100644
--- a/include/geometry/shape_poly_set.h
+++ b/include/geometry/shape_poly_set.h
@@ -308,25 +308,25 @@ class SHAPE_POLY_SET : public SHAPE
void Simplify( POLYGON_MODE aFastMode );
/// @copydoc SHAPE::Format()
- const std::string Format() const;
+ const std::string Format() const override;
/// @copydoc SHAPE::Parse()
- bool Parse( std::stringstream& aStream );
+ bool Parse( std::stringstream& aStream ) override;
/// @copydoc SHAPE::Move()
- void Move( const VECTOR2I& aVector );
+ void Move( const VECTOR2I& aVector ) override;
/// @copydoc SHAPE::IsSolid()
- bool IsSolid() const
+ bool IsSolid() const override
{
return true;
}
- const BOX2I BBox( int aClearance = 0 ) const;
+ const BOX2I BBox( int aClearance = 0 ) const override;
// fixme: add collision support
- bool Collide( const VECTOR2I& aP, int aClearance = 0 ) const { return false; }
- bool Collide( const SEG& aSeg, int aClearance = 0 ) const { return false; }
+ bool Collide( const VECTOR2I& aP, int aClearance = 0 ) const override { return false; }
+ bool Collide( const SEG& aSeg, int aClearance = 0 ) const override { return false; }
///> Returns true is a given subpolygon contains the point aP. If aSubpolyIndex < 0 (default value),
diff --git a/include/geometry/shape_rect.h b/include/geometry/shape_rect.h
index a1a13dd61e..09673b54ed 100644
--- a/include/geometry/shape_rect.h
+++ b/include/geometry/shape_rect.h
@@ -90,7 +90,7 @@ public:
}
/// @copydoc SHAPE::Collide()
- bool Collide( const SEG& aSeg, int aClearance = 0 ) const;
+ bool Collide( const SEG& aSeg, int aClearance = 0 ) const override;
/**
* Function GetPosition()
diff --git a/include/html_messagebox.h b/include/html_messagebox.h
index 8527630cdf..3e5a0edb30 100644
--- a/include/html_messagebox.h
+++ b/include/html_messagebox.h
@@ -41,7 +41,7 @@ class HTML_MESSAGE_BOX : public DIALOG_DISPLAY_HTML_TEXT_BASE
{
protected:
// Handlers for HTML_MESSAGE_BOX_BASE events.
- void OnCloseButtonClick( wxCommandEvent& event );
+ void OnCloseButtonClick( wxCommandEvent& event ) override;
public:
/**
diff --git a/include/kiface_i.h b/include/kiface_i.h
index 5cb41b85e5..6a4134f7a7 100644
--- a/include/kiface_i.h
+++ b/include/kiface_i.h
@@ -42,7 +42,7 @@ public:
// see base class KIFACE in kiway.h for doxygen docs
- VTBL_ENTRY bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) = 0;
+ VTBL_ENTRY bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override = 0;
/*
{
typically call start_common() in your overload
@@ -50,16 +50,16 @@ public:
}
*/
- VTBL_ENTRY void OnKifaceEnd()
+ VTBL_ENTRY void OnKifaceEnd() override
{
// overload this if you want, end_common() may be handy.
end_common();
}
VTBL_ENTRY wxWindow* CreateWindow( wxWindow* aParent,
- int aClassId, KIWAY* aKIWAY, int aCtlBits = 0 ) = 0;
+ int aClassId, KIWAY* aKIWAY, int aCtlBits = 0 ) override = 0;
- VTBL_ENTRY void* IfaceOrAddress( int aDataId ) = 0;
+ VTBL_ENTRY void* IfaceOrAddress( int aDataId ) override = 0;
//--------------------------------------------------------------
diff --git a/include/kiway.h b/include/kiway.h
index 300d6db123..3536bd723c 100644
--- a/include/kiway.h
+++ b/include/kiway.h
@@ -371,7 +371,7 @@ public:
void OnKiwayEnd();
- bool ProcessEvent( wxEvent& aEvent ); // overload virtual
+ bool ProcessEvent( wxEvent& aEvent ) override;
private:
diff --git a/include/kiway_express.h b/include/kiway_express.h
index 23a1ef9799..2b49742d3c 100644
--- a/include/kiway_express.h
+++ b/include/kiway_express.h
@@ -62,7 +62,7 @@ public:
const std::string& GetPayload() { return m_payload; }
void SetPayload( const std::string& aPayload ) { m_payload = aPayload; }
- KIWAY_EXPRESS* Clone() const { return new KIWAY_EXPRESS( *this ); }
+ KIWAY_EXPRESS* Clone() const override { return new KIWAY_EXPRESS( *this ); }
//KIWAY_EXPRESS() {}
diff --git a/include/kiway_player.h b/include/kiway_player.h
index 9738fd5d5d..6aa6b0c73a 100644
--- a/include/kiway_player.h
+++ b/include/kiway_player.h
@@ -209,7 +209,7 @@ public:
/**
* Our version of Destroy() which is virtual from wxWidgets
*/
- bool Destroy();
+ bool Destroy() override;
protected:
diff --git a/include/origin_viewitem.h b/include/origin_viewitem.h
index 7735641903..a00fd44d4f 100644
--- a/include/origin_viewitem.h
+++ b/include/origin_viewitem.h
@@ -48,18 +48,18 @@ public:
MARKER_STYLE aStyle = CIRCLE_X, int aSize = 16,
const VECTOR2D& aPosition = VECTOR2D( 0, 0 ) );
- const BOX2I ViewBBox() const;
+ const BOX2I ViewBBox() const override;
- void ViewDraw( int aLayer, KIGFX::GAL* aGal ) const;
+ void ViewDraw( int aLayer, KIGFX::GAL* aGal ) const override;
- void ViewGetLayers( int aLayers[], int& aCount ) const
+ void ViewGetLayers( int aLayers[], int& aCount ) const override
{
aLayers[0] = ITEM_GAL_LAYER( GP_OVERLAY );
aCount = 1;
}
#if defined(DEBUG)
- void Show( int x, std::ostream& st ) const
+ void Show( int x, std::ostream& st ) const override
{
}
#endif
@@ -67,7 +67,7 @@ public:
/** Get class name
* @return string "ORIGIN_VIEWITEM"
*/
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "ORIGIN_VIEWITEM" );
}
diff --git a/include/plot_common.h b/include/plot_common.h
index 9914aae4ab..f4a5559a6a 100644
--- a/include/plot_common.h
+++ b/include/plot_common.h
@@ -552,7 +552,7 @@ class HPGL_PLOTTER : public PLOTTER
public:
HPGL_PLOTTER();
- virtual PlotFormat GetPlotterType() const
+ virtual PlotFormat GetPlotterType() const override
{
return PLOT_FORMAT_HPGL;
}
@@ -562,8 +562,8 @@ public:
return wxString( wxT( "plt" ) );
}
- virtual bool StartPlot();
- virtual bool EndPlot();
+ virtual bool StartPlot() override;
+ virtual bool EndPlot() override;
/// HPGL doesn't handle line thickness or color
virtual void SetCurrentLineWidth( int width, void* aData = NULL ) override
@@ -572,10 +572,10 @@ public:
currentPenWidth = userToDeviceSize( penDiameter );
}
- virtual void SetDefaultLineWidth( int width ) {};
- virtual void SetDash( bool dashed );
+ virtual void SetDefaultLineWidth( int width ) override {}
+ virtual void SetDash( bool dashed ) override;
- virtual void SetColor( EDA_COLOR_T color ) {};
+ virtual void SetColor( EDA_COLOR_T color ) override {}
virtual void SetPenSpeed( int speed )
{
@@ -590,11 +590,11 @@ public:
virtual void SetPenDiameter( double diameter );
virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
- double aScale, bool aMirror );
+ double aScale, bool aMirror ) override;
virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Circle( const wxPoint& pos, int diametre, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void PlotPoly( const std::vector< wxPoint >& aCornerList,
FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH,
void * aData = NULL) override;
@@ -602,8 +602,8 @@ public:
virtual void ThickSegment( const wxPoint& start, const wxPoint& end, int width,
EDA_DRAW_MODE_T tracemode, void* aData ) override;
virtual void Arc( const wxPoint& centre, double StAngle, double EndAngle,
- int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH );
- virtual void PenTo( const wxPoint& pos, char plume );
+ int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH ) override;
+ virtual void PenTo( const wxPoint& pos, char plume ) override;
virtual void FlashPadCircle( const wxPoint& pos, int diametre,
EDA_DRAW_MODE_T trace_mode, void* aData ) override;
virtual void FlashPadOval( const wxPoint& pos, const wxSize& size, double orient,
@@ -643,13 +643,13 @@ public:
/**
* PS and PDF fully implement native text (for the Latin-1 subset)
*/
- virtual void SetTextMode( PlotTextMode mode )
+ virtual void SetTextMode( PlotTextMode mode ) override
{
if( mode != PLOTTEXTMODE_DEFAULT )
m_textMode = mode;
}
- virtual void SetDefaultLineWidth( int width );
+ virtual void SetDefaultLineWidth( int width ) override;
/**
* Set the 'fine' scaling for the postscript engine
@@ -680,7 +680,7 @@ public:
* The PSLIKE computes the rgb values, the subclass emits the
* operator to actually do it
*/
- virtual void SetColor( EDA_COLOR_T color );
+ virtual void SetColor( EDA_COLOR_T color ) override;
protected:
void computeTextParameters( const wxPoint& aPos,
@@ -737,33 +737,33 @@ public:
return wxString( wxT( "ps" ) );
}
- virtual PlotFormat GetPlotterType() const
+ virtual PlotFormat GetPlotterType() const override
{
return PLOT_FORMAT_POST;
}
- virtual bool StartPlot();
- virtual bool EndPlot();
+ virtual bool StartPlot() override;
+ virtual bool EndPlot() override;
virtual void SetCurrentLineWidth( int width, void* aData = NULL ) override;
- virtual void SetDash( bool dashed );
+ virtual void SetDash( bool dashed ) override;
virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
- double aScale, bool aMirror );
+ double aScale, bool aMirror ) override;
virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Circle( const wxPoint& pos, int diametre, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Arc( const wxPoint& centre, double StAngle, double EndAngle,
- int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH );
+ int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void PlotPoly( const std::vector< wxPoint >& aCornerList,
FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH,
void * aData = NULL ) override;
virtual void PlotImage( const wxImage& aImage, const wxPoint& aPos,
- double aScaleFactor );
+ double aScaleFactor ) override;
- virtual void PenTo( const wxPoint& pos, char plume );
+ virtual void PenTo( const wxPoint& pos, char plume ) override;
virtual void Text( const wxPoint& aPos,
enum EDA_COLOR_T aColor,
const wxString& aText,
@@ -777,7 +777,7 @@ public:
bool aMultilineAllowed = false,
void* aData = NULL ) override;
protected:
- virtual void emitSetRGBColor( double r, double g, double b );
+ virtual void emitSetRGBColor( double r, double g, double b ) override;
};
class PDF_PLOTTER : public PSLIKE_PLOTTER
@@ -790,7 +790,7 @@ public:
pageTreeHandle = 0;
}
- virtual PlotFormat GetPlotterType() const
+ virtual PlotFormat GetPlotterType() const override
{
return PLOT_FORMAT_PDF;
}
@@ -808,32 +808,32 @@ public:
* The base class open the file in text mode, so we should have this
* function overlaid for PDF files, which are binary files
*/
- virtual bool OpenFile( const wxString& aFullFilename );
+ virtual bool OpenFile( const wxString& aFullFilename ) override;
- virtual bool StartPlot();
- virtual bool EndPlot();
+ virtual bool StartPlot() override;
+ virtual bool EndPlot() override;
virtual void StartPage();
virtual void ClosePage();
virtual void SetCurrentLineWidth( int width, void* aData = NULL ) override;
- virtual void SetDash( bool dashed );
+ virtual void SetDash( bool dashed ) override;
/** PDF can have multiple pages, so SetPageSettings can be called
* with the outputFile open (but not inside a page stream!) */
- virtual void SetPageSettings( const PAGE_INFO& aPageSettings );
+ virtual void SetPageSettings( const PAGE_INFO& aPageSettings ) override;
virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
- double aScale, bool aMirror );
+ double aScale, bool aMirror ) override;
virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Circle( const wxPoint& pos, int diametre, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Arc( const wxPoint& centre, double StAngle, double EndAngle,
- int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH );
+ int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void PlotPoly( const std::vector< wxPoint >& aCornerList,
FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH,
void * aData = NULL ) override;
- virtual void PenTo( const wxPoint& pos, char plume );
+ virtual void PenTo( const wxPoint& pos, char plume ) override;
virtual void Text( const wxPoint& aPos,
enum EDA_COLOR_T aColor,
@@ -849,11 +849,11 @@ public:
void* aData = NULL ) override;
virtual void PlotImage( const wxImage& aImage, const wxPoint& aPos,
- double aScaleFactor );
+ double aScaleFactor ) override;
protected:
- virtual void emitSetRGBColor( double r, double g, double b );
+ virtual void emitSetRGBColor( double r, double g, double b ) override;
int allocPdfObject();
int startPdfObject(int handle = -1);
void closePdfObject();
@@ -879,34 +879,34 @@ public:
return wxString( wxT( "svg" ) );
}
- virtual PlotFormat GetPlotterType() const
+ virtual PlotFormat GetPlotterType() const override
{
return PLOT_FORMAT_SVG;
}
- virtual void SetColor( EDA_COLOR_T color );
- virtual bool StartPlot();
- virtual bool EndPlot();
+ virtual void SetColor( EDA_COLOR_T color ) override;
+ virtual bool StartPlot() override;
+ virtual bool EndPlot() override;
virtual void SetCurrentLineWidth( int width, void* aData = NULL ) override;
- virtual void SetDash( bool dashed );
+ virtual void SetDash( bool dashed ) override;
virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
- double aScale, bool aMirror );
+ double aScale, bool aMirror ) override;
virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Circle( const wxPoint& pos, int diametre, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Arc( const wxPoint& centre, double StAngle, double EndAngle,
- int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH );
+ int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void PlotPoly( const std::vector< wxPoint >& aCornerList,
FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH,
void * aData = NULL ) override;
virtual void PlotImage( const wxImage& aImage, const wxPoint& aPos,
- double aScaleFactor );
+ double aScaleFactor ) override;
- virtual void PenTo( const wxPoint& pos, char plume );
+ virtual void PenTo( const wxPoint& pos, char plume ) override;
virtual void Text( const wxPoint& aPos,
enum EDA_COLOR_T aColor,
const wxString& aText,
@@ -939,7 +939,7 @@ protected:
* initialize m_pen_rgb_color from reduced values r, g ,b
* ( reduced values are 0.0 to 1.0 )
*/
- virtual void emitSetRGBColor( double r, double g, double b );
+ virtual void emitSetRGBColor( double r, double g, double b ) override;
/**
* function setSVGPlotStyle()
@@ -981,7 +981,7 @@ class GERBER_PLOTTER : public PLOTTER
public:
GERBER_PLOTTER();
- virtual PlotFormat GetPlotterType() const
+ virtual PlotFormat GetPlotterType() const override
{
return PLOT_FORMAT_GERBER;
}
@@ -996,23 +996,23 @@ public:
* Write GERBER header to file
* initialize global variable g_Plot_PlotOutputFile
*/
- virtual bool StartPlot();
- virtual bool EndPlot();
+ virtual bool StartPlot() override;
+ virtual bool EndPlot() override;
virtual void SetCurrentLineWidth( int width, void* aData = NULL ) override;
- virtual void SetDefaultLineWidth( int width );
+ virtual void SetDefaultLineWidth( int width ) override;
// RS274X has no dashing, nor colours
- virtual void SetDash( bool dashed ) {};
- virtual void SetColor( EDA_COLOR_T color ) {};
+ virtual void SetDash( bool dashed ) override {}
+ virtual void SetColor( EDA_COLOR_T color ) override {}
// Currently, aScale and aMirror are not used in gerber plotter
virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
- double aScale, bool aMirror );
+ double aScale, bool aMirror ) override;
virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Circle( const wxPoint& pos, int diametre, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Arc( const wxPoint& aCenter, double aStAngle, double aEndAngle,
- int aRadius, FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH );
+ int aRadius, FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH ) override;
virtual void ThickSegment( const wxPoint& start, const wxPoint& end, int width,
EDA_DRAW_MODE_T tracemode, void* aData ) override;
@@ -1031,7 +1031,7 @@ public:
FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH,
void * aData = NULL ) override;
- virtual void PenTo( const wxPoint& pos, char plume );
+ virtual void PenTo( const wxPoint& pos, char plume ) override;
virtual void Text( const wxPoint& aPos,
enum EDA_COLOR_T aColor,
@@ -1088,7 +1088,7 @@ public:
* Change the plot polarity and begin a new layer
* Used to 'scratch off' silk screen away from solder mask
*/
- virtual void SetLayerPolarity( bool aPositive );
+ virtual void SetLayerPolarity( bool aPositive ) override;
/**
* Function SetGerberCoordinatesFormat
@@ -1100,7 +1100,7 @@ public:
*
* Should be called only after SetViewport() is called
*/
- virtual void SetGerberCoordinatesFormat( int aResolution, bool aUseInches = false );
+ virtual void SetGerberCoordinatesFormat( int aResolution, bool aUseInches = false ) override;
void UseX2Attributes( bool aEnable ) { m_useX2Attributes = aEnable; }
void UseX2NetAttributes( bool aEnable ) { m_useNetAttributes = aEnable; }
@@ -1206,7 +1206,7 @@ public:
m_currentColor = BLACK;
}
- virtual PlotFormat GetPlotterType() const
+ virtual PlotFormat GetPlotterType() const override
{
return PLOT_FORMAT_DXF;
}
@@ -1219,14 +1219,14 @@ public:
/**
* DXF handles NATIVE text emitting TEXT entities
*/
- virtual void SetTextMode( PlotTextMode mode )
+ virtual void SetTextMode( PlotTextMode mode ) override
{
if( mode != PLOTTEXTMODE_DEFAULT )
textAsLines = ( mode != PLOTTEXTMODE_NATIVE );
}
- virtual bool StartPlot();
- virtual bool EndPlot();
+ virtual bool StartPlot() override;
+ virtual bool EndPlot() override;
// For now we don't use 'thick' primitives, so no line width
virtual void SetCurrentLineWidth( int width, void* aData = NULL ) override
@@ -1234,29 +1234,29 @@ public:
currentPenWidth = 0;
}
- virtual void SetDefaultLineWidth( int width )
+ virtual void SetDefaultLineWidth( int width ) override
{
// DXF lines are infinitesimal
defaultPenWidth = 0;
}
- virtual void SetDash( bool dashed );
+ virtual void SetDash( bool dashed ) override;
- virtual void SetColor( EDA_COLOR_T color );
+ virtual void SetColor( EDA_COLOR_T color ) override;
virtual void SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
- double aScale, bool aMirror );
+ double aScale, bool aMirror ) override;
virtual void Rect( const wxPoint& p1, const wxPoint& p2, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void Circle( const wxPoint& pos, int diametre, FILL_T fill,
- int width = USE_DEFAULT_LINE_WIDTH );
+ int width = USE_DEFAULT_LINE_WIDTH ) override;
virtual void PlotPoly( const std::vector< wxPoint >& aCornerList,
FILL_T aFill, int aWidth = USE_DEFAULT_LINE_WIDTH, void * aData = NULL ) override;
virtual void ThickSegment( const wxPoint& start, const wxPoint& end, int width,
EDA_DRAW_MODE_T tracemode, void* aData ) override;
virtual void Arc( const wxPoint& centre, double StAngle, double EndAngle,
- int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH );
- virtual void PenTo( const wxPoint& pos, char plume );
+ int rayon, FILL_T fill, int width = USE_DEFAULT_LINE_WIDTH ) override;
+ virtual void PenTo( const wxPoint& pos, char plume ) override;
virtual void FlashPadCircle( const wxPoint& pos, int diametre,
EDA_DRAW_MODE_T trace_mode, void* aData ) override;
diff --git a/include/plugins/3dapi/ifsg_appearance.h b/include/plugins/3dapi/ifsg_appearance.h
index e1ff43ac6c..0530f70cc3 100644
--- a/include/plugins/3dapi/ifsg_appearance.h
+++ b/include/plugins/3dapi/ifsg_appearance.h
@@ -38,9 +38,9 @@ public:
IFSG_APPEARANCE( SGNODE* aParent );
IFSG_APPEARANCE( IFSG_NODE& aParent );
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
bool SetEmissive( float aRVal, float aGVal, float aBVal );
bool SetEmissive( const SGCOLOR* aRGBColor );
diff --git a/include/plugins/3dapi/ifsg_colors.h b/include/plugins/3dapi/ifsg_colors.h
index e93b3cb627..05aa299a49 100644
--- a/include/plugins/3dapi/ifsg_colors.h
+++ b/include/plugins/3dapi/ifsg_colors.h
@@ -45,9 +45,9 @@ public:
IFSG_COLORS( SGNODE* aParent );
IFSG_COLORS( IFSG_NODE& aParent );
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
bool GetColorList( size_t& aListSize, SGCOLOR*& aColorList );
bool SetColorList( size_t aListSize, const SGCOLOR* aColorList );
diff --git a/include/plugins/3dapi/ifsg_coordindex.h b/include/plugins/3dapi/ifsg_coordindex.h
index ab6ca86fef..2606943808 100644
--- a/include/plugins/3dapi/ifsg_coordindex.h
+++ b/include/plugins/3dapi/ifsg_coordindex.h
@@ -44,9 +44,9 @@ public:
IFSG_COORDINDEX( SGNODE* aParent );
IFSG_COORDINDEX( IFSG_NODE& aParent );
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
};
#endif // IFSG_COORDINDEX_H
diff --git a/include/plugins/3dapi/ifsg_coords.h b/include/plugins/3dapi/ifsg_coords.h
index 428681f82a..9e01125c3e 100644
--- a/include/plugins/3dapi/ifsg_coords.h
+++ b/include/plugins/3dapi/ifsg_coords.h
@@ -44,9 +44,9 @@ public:
IFSG_COORDS( SGNODE* aParent );
IFSG_COORDS( IFSG_NODE& aParent );
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
bool GetCoordsList( size_t& aListSize, SGPOINT*& aCoordsList );
bool SetCoordsList( size_t aListSize, const SGPOINT* aCoordsList );
diff --git a/include/plugins/3dapi/ifsg_faceset.h b/include/plugins/3dapi/ifsg_faceset.h
index 1abd4d7119..57ece8cf16 100644
--- a/include/plugins/3dapi/ifsg_faceset.h
+++ b/include/plugins/3dapi/ifsg_faceset.h
@@ -44,9 +44,9 @@ public:
IFSG_FACESET( SGNODE* aParent );
IFSG_FACESET( IFSG_NODE& aParent );
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
bool CalcNormals( SGNODE** aPtr );
};
diff --git a/include/plugins/3dapi/ifsg_index.h b/include/plugins/3dapi/ifsg_index.h
index a72cbdb5c8..e0cd062870 100644
--- a/include/plugins/3dapi/ifsg_index.h
+++ b/include/plugins/3dapi/ifsg_index.h
@@ -42,9 +42,9 @@ class SGLIB_API IFSG_INDEX : public IFSG_NODE
public:
IFSG_INDEX();
- virtual bool Attach( SGNODE* aNode ) = 0;
- virtual bool NewNode( SGNODE* aParent ) = 0;
- virtual bool NewNode( IFSG_NODE& aParent ) = 0;
+ virtual bool Attach( SGNODE* aNode ) override = 0;
+ virtual bool NewNode( SGNODE* aParent ) override = 0;
+ virtual bool NewNode( IFSG_NODE& aParent ) override = 0;
bool GetIndices( size_t& nIndices, int*& aIndexList );
diff --git a/include/plugins/3dapi/ifsg_normals.h b/include/plugins/3dapi/ifsg_normals.h
index 4befd15f31..7a607d3ecf 100644
--- a/include/plugins/3dapi/ifsg_normals.h
+++ b/include/plugins/3dapi/ifsg_normals.h
@@ -44,9 +44,9 @@ public:
IFSG_NORMALS( SGNODE* aParent );
IFSG_NORMALS( IFSG_NODE& aParent );
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
bool GetNormalList( size_t& aListSize, SGVECTOR*& aNormalList );
bool SetNormalList( size_t aListSize, const SGVECTOR* aNormalList );
diff --git a/include/plugins/3dapi/ifsg_shape.h b/include/plugins/3dapi/ifsg_shape.h
index 0d9ba2f220..570fb2e70c 100644
--- a/include/plugins/3dapi/ifsg_shape.h
+++ b/include/plugins/3dapi/ifsg_shape.h
@@ -44,9 +44,9 @@ public:
IFSG_SHAPE( SGNODE* aParent );
IFSG_SHAPE( IFSG_NODE& aParent );
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
};
#endif // IFSG_SHAPE_H
diff --git a/include/plugins/3dapi/ifsg_transform.h b/include/plugins/3dapi/ifsg_transform.h
index 42bf1e643a..0ede4cba10 100644
--- a/include/plugins/3dapi/ifsg_transform.h
+++ b/include/plugins/3dapi/ifsg_transform.h
@@ -46,9 +46,9 @@ public:
// since a transform may own another transform and that construct
// invites accidental misuse of the copy constructor
- bool Attach( SGNODE* aNode );
- bool NewNode( SGNODE* aParent );
- bool NewNode( IFSG_NODE& aParent );
+ bool Attach( SGNODE* aNode ) override;
+ bool NewNode( SGNODE* aParent ) override;
+ bool NewNode( IFSG_NODE& aParent ) override;
bool SetScaleOrientation( const SGVECTOR& aScaleAxis, double aAngle );
bool SetRotation( const SGVECTOR& aRotationAxis, double aAngle );
diff --git a/include/reporter.h b/include/reporter.h
index e5599ea5cb..865bbfdc96 100644
--- a/include/reporter.h
+++ b/include/reporter.h
@@ -103,7 +103,7 @@ public:
{
}
- REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED );
+ REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED ) override;
};
@@ -122,7 +122,7 @@ public:
{
}
- REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED );
+ REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED ) override;
};
@@ -141,7 +141,7 @@ public:
{
}
- REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED );
+ REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED ) override;
};
/**
@@ -159,7 +159,7 @@ class NULL_REPORTER : public REPORTER
static REPORTER& GetInstance();
- REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED );
+ REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_UNDEFINED ) override;
};
#endif // _REPORTER_H_
diff --git a/include/richio.h b/include/richio.h
index 3af7224938..0e4900c20b 100644
--- a/include/richio.h
+++ b/include/richio.h
@@ -232,7 +232,7 @@ public:
*/
~FILE_LINE_READER();
- char* ReadLine() throw( IO_ERROR ); // see LINE_READER::ReadLine() description
+ char* ReadLine() throw( IO_ERROR ) override;
/**
* Function Rewind
@@ -279,7 +279,7 @@ public:
*/
STRING_LINE_READER( const STRING_LINE_READER& aStartingPoint );
- char* ReadLine() throw( IO_ERROR ); // see LINE_READER::ReadLine() description
+ char* ReadLine() throw( IO_ERROR ) override;
};
@@ -302,7 +302,7 @@ public:
*/
INPUTSTREAM_LINE_READER( wxInputStream* aStream, const wxString& aSource );
- char* ReadLine() throw( IO_ERROR ); // see LINE_READER::ReadLine() description
+ char* ReadLine() throw( IO_ERROR ) override;
};
@@ -479,7 +479,7 @@ public:
protected:
//-----------------------------------------------------
- void write( const char* aOutBuf, int aCount ) throw( IO_ERROR );
+ void write( const char* aOutBuf, int aCount ) throw( IO_ERROR ) override;
//----------------------------------------------------
};
@@ -511,7 +511,7 @@ public:
protected:
//-----------------------------------------------------
- void write( const char* aOutBuf, int aCount ) throw( IO_ERROR );
+ void write( const char* aOutBuf, int aCount ) throw( IO_ERROR ) override;
//----------------------------------------------------
FILE* m_fp; ///< takes ownership
@@ -542,7 +542,7 @@ public:
protected:
//-----------------------------------------------------
- void write( const char* aOutBuf, int aCount ) throw( IO_ERROR );
+ void write( const char* aOutBuf, int aCount ) throw( IO_ERROR ) override;
//----------------------------------------------------
};
diff --git a/include/tool/context_menu.h b/include/tool/context_menu.h
index 60ae7bf347..c61b73b9b2 100644
--- a/include/tool/context_menu.h
+++ b/include/tool/context_menu.h
@@ -60,7 +60,7 @@ public:
* the menu.
* @param aTitle is the new title.
*/
- void SetTitle( const wxString& aTitle );
+ void SetTitle( const wxString& aTitle ) override;
/**
* Function SetIcon()
diff --git a/include/ttl/halfedge/hetriang.h b/include/ttl/halfedge/hetriang.h
index 16e9c28437..fb2742ffac 100644
--- a/include/ttl/halfedge/hetriang.h
+++ b/include/ttl/halfedge/hetriang.h
@@ -363,7 +363,7 @@ public:
}
/// @copydoc Edge::setSourceNode()
- virtual const NODE_PTR& GetTargetNode() const
+ virtual const NODE_PTR& GetTargetNode() const override
{
return m_target;
}
diff --git a/include/view/view_group.h b/include/view/view_group.h
index 056a812f79..57c972ec2f 100644
--- a/include/view/view_group.h
+++ b/include/view/view_group.h
@@ -102,7 +102,7 @@ public:
*
* @return The current bounding box
*/
- virtual const BOX2I ViewBBox() const;
+ virtual const BOX2I ViewBBox() const override;
/**
* Function ViewDraw()
@@ -111,7 +111,7 @@ public:
* @param aLayer is the layer which should be drawn.
* @param aGal is the GAL that should be used for drawing.
*/
- virtual void ViewDraw( int aLayer, GAL* aGal ) const;
+ virtual void ViewDraw( int aLayer, GAL* aGal ) const override;
/**
* Function ViewGetLayers()
@@ -120,7 +120,7 @@ public:
* @param aLayers[] is the output layer index array.
* @param aCount is the number of layer indices in aLayers[].
*/
- virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
+ virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
/**
* Function SetLayer()
@@ -171,23 +171,23 @@ protected:
/// These functions cannot be used with VIEW_GROUP as they are intended only to work with
/// singular VIEW_ITEMs (there is only one-to-one relation between item/layer combination and
/// its group).
- int getGroup( int aLayer ) const
+ int getGroup( int aLayer ) const override
{
return -1;
}
- std::vector getAllGroups() const
+ std::vector getAllGroups() const override
{
return std::vector();
}
- void setGroup( int aLayer, int aGroup )
+ void setGroup( int aLayer, int aGroup ) override
{}
- void deleteGroups()
+ void deleteGroups() override
{}
- bool storesGroups() const
+ bool storesGroups() const override
{
return false;
}
diff --git a/include/view/wx_view_controls.h b/include/view/wx_view_controls.h
index 5a05bddd21..092ae5228c 100644
--- a/include/view/wx_view_controls.h
+++ b/include/view/wx_view_controls.h
@@ -69,7 +69,7 @@ public:
*
* @param aEnabled says whether the option should be enabled or disabled.
*/
- void SetGrabMouse( bool aEnabled );
+ void SetGrabMouse( bool aEnabled ) override;
/**
* Function SetAutoPan()
@@ -77,7 +77,7 @@ public:
*
* @param aEnabled says whether the option should enabled or disabled.
*/
- void SetAutoPan( bool aEnabled )
+ void SetAutoPan( bool aEnabled ) override
{
m_autoPanEnabled = aEnabled;
@@ -86,17 +86,17 @@ public:
}
/// @copydoc VIEW_CONTROLS::GetMousePosition()
- VECTOR2I GetMousePosition() const;
+ VECTOR2I GetMousePosition() const override;
/// @copydoc VIEW_CONTROLS::GetCursorPosition()
- VECTOR2D GetCursorPosition() const;
+ VECTOR2D GetCursorPosition() const override;
/// @copydoc VIEW_CONTROLS::CursorWarp()
void WarpCursor( const VECTOR2D& aPosition, bool aWorldCoordinates = false,
- bool aWarpView = false ) const;
+ bool aWarpView = false ) const override;
/// @copydoc VIEW_CONTROLS::CenterOnCursor()
- void CenterOnCursor() const;
+ void CenterOnCursor() const override;
/// Adjusts the scrollbars position to match the current viewport.
void UpdateScrollbars();
diff --git a/include/widgets/mathplot.h b/include/widgets/mathplot.h
index 8c69a79062..ff5e837750 100644
--- a/include/widgets/mathplot.h
+++ b/include/widgets/mathplot.h
@@ -351,18 +351,18 @@ class WXDLLIMPEXP_MATHPLOT mpInfoLayer : public mpLayer
/** mpInfoLayer has not bounding box. @sa mpLayer::HasBBox
@return always \a FALSE */
- virtual bool HasBBox() { return false; };
+ virtual bool HasBBox() override { return false; }
/** Plot method. Can be overidden by derived classes.
@param dc the device content where to plot
@param w the window to plot
@sa mpLayer::Plot */
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
/** Specifies that this is an Info box layer.
@return always \a TRUE
@sa mpLayer::IsInfo */
- virtual bool IsInfo() { return true; };
+ virtual bool IsInfo() override { return true; }
/** Checks whether a point is inside the info box rectangle.
@param point The point to be checked
@@ -416,13 +416,13 @@ class WXDLLIMPEXP_MATHPLOT mpInfoCoords : public mpInfoLayer
/** Updates the content of the info box. It is used to update coordinates.
@param w parent mpWindow from which to obtain information
@param event The event which called the update. */
- virtual void UpdateInfo(mpWindow& w, wxEvent& event);
+ virtual void UpdateInfo(mpWindow& w, wxEvent& event) override;
/** Plot method.
@param dc the device content where to plot
@param w the window to plot
@sa mpLayer::Plot */
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
protected:
wxString m_content; //!< string holding the coordinates to be drawn.
@@ -449,13 +449,13 @@ class WXDLLIMPEXP_MATHPLOT mpInfoLegend : public mpInfoLayer
/** Updates the content of the info box. Unused in this class.
@param w parent mpWindow from which to obtain information
@param event The event which called the update. */
- virtual void UpdateInfo(mpWindow& w, wxEvent& event);
+ virtual void UpdateInfo(mpWindow& w, wxEvent& event) override;
/** Plot method.
@param dc the device content where to plot
@param w the window to plot
@sa mpLayer::Plot */
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
protected:
@@ -537,7 +537,7 @@ class WXDLLIMPEXP_MATHPLOT mpFX : public mpLayer
This implementation will plot the function in the visible area and
put a label according to the aligment specified.
*/
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
protected:
int m_flags; //!< Holds label alignment
@@ -569,7 +569,7 @@ class WXDLLIMPEXP_MATHPLOT mpFY : public mpLayer
This implementation will plot the function in the visible area and
put a label according to the aligment specified.
*/
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
protected:
int m_flags; //!< Holds label alignment
@@ -608,7 +608,7 @@ class WXDLLIMPEXP_MATHPLOT mpFXY : public mpLayer
This implementation will plot the locus in the visible area and
put a label according to the alignment specified.
*/
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
virtual void SetScale(mpScaleBase *scaleX, mpScaleBase *scaleY);
@@ -662,7 +662,7 @@ class WXDLLIMPEXP_MATHPLOT mpProfile : public mpLayer
This implementation will plot the function in the visible area and
put a label according to the aligment specified.
*/
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
protected:
int m_flags; //!< Holds label alignment
@@ -694,7 +694,7 @@ class WXDLLIMPEXP_MATHPLOT mpScaleBase : public mpLayer
virtual bool IsHorizontal() = 0;
- bool HasBBox() { return FALSE; }
+ bool HasBBox() override { return FALSE; }
/** Set X axis alignment.
@param align alignment (choose between mpALIGN_BORDER_BOTTOM, mpALIGN_BOTTOM, mpALIGN_CENTER, mpALIGN_TOP, mpALIGN_BORDER_TOP */
@@ -843,12 +843,12 @@ class WXDLLIMPEXP_MATHPLOT mpScaleXBase : public mpScaleBase
mpScaleXBase(wxString name = wxT("X"), int flags = mpALIGN_CENTER, bool ticks = true, unsigned int type = mpX_NORMAL);
virtual ~mpScaleXBase () {};
- virtual bool IsHorizontal() { return true; }
+ virtual bool IsHorizontal() override { return true; }
/** Layer plot handler.
This implementation will plot the ruler adjusted to the visible area. */
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
- virtual void getVisibleDataRange ( mpWindow& w, double &minV, double& maxV);
+ virtual void getVisibleDataRange ( mpWindow& w, double &minV, double& maxV) override;
// unsigned int m_labelType; //!< Select labels mode: mpX_NORMAL for normal labels, mpX_TIME for time axis in hours, minutes, seconds
// wxString m_labelFormat; //!< Format string used to print labels
@@ -873,11 +873,11 @@ class WXDLLIMPEXP_MATHPLOT mpScaleX : public mpScaleXBase
//virtual double X2p( mpWindow &w, double x );
//virtual double P2x( mpWindow &w, double x );
- virtual double TransformToPlot ( double x );
- virtual double TransformFromPlot (double xplot );
+ virtual double TransformToPlot ( double x ) override;
+ virtual double TransformFromPlot (double xplot ) override;
protected:
- virtual void recalculateTicks ( wxDC & dc, mpWindow & w );
+ virtual void recalculateTicks ( wxDC & dc, mpWindow & w ) override;
double n0, dig, step, labelStep, end;
@@ -896,15 +896,15 @@ class WXDLLIMPEXP_MATHPLOT mpScaleXLog : public mpScaleXBase
@param type mpX_NORMAL for normal labels, mpX_TIME for time axis in hours, minutes, seconds. */
mpScaleXLog(wxString name = wxT("log(X)"), int flags = mpALIGN_CENTER, bool ticks = true, unsigned int type = mpX_NORMAL);
- virtual double TransformToPlot ( double x );
- virtual double TransformFromPlot (double xplot );
+ virtual double TransformToPlot ( double x ) override;
+ virtual double TransformFromPlot (double xplot ) override;
/** Layer plot handler.
This implementation will plot the ruler adjusted to the visible area. */
//virtual double X2p( mpWindow &w, double x );
//virtual double P2x( mpWindow &w, double x );
protected:
- void recalculateTicks ( wxDC & dc, mpWindow & w );
+ void recalculateTicks ( wxDC & dc, mpWindow & w ) override;
//int tickCount() const;
//int labelCount() const;
//const wxString getLabel( int n );
@@ -935,18 +935,18 @@ class WXDLLIMPEXP_MATHPLOT mpScaleY : public mpScaleBase
@param ticks Select ticks or grid. Give TRUE (default) for drawing axis ticks, FALSE for drawing the grid */
mpScaleY(wxString name = wxT("Y"), int flags = mpALIGN_CENTER, bool ticks = true);
- virtual bool IsHorizontal() { return false; }
+ virtual bool IsHorizontal() override { return false; }
/** Layer plot handler.
This implementation will plot the ruler adjusted to the visible area.
*/
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
/** Check whether this layer has a bounding box.
This implementation returns \a FALSE thus making the ruler invisible
to the plot layer bounding box calculation by mpWindow.
*/
- virtual bool HasBBox() { return FALSE; }
+ virtual bool HasBBox() override { return FALSE; }
/** Set Y axis alignment.
@param align alignment (choose between mpALIGN_BORDER_LEFT, mpALIGN_LEFT, mpALIGN_CENTER, mpALIGN_RIGHT, mpALIGN_BORDER_RIGHT) */
@@ -960,8 +960,8 @@ class WXDLLIMPEXP_MATHPLOT mpScaleY : public mpScaleBase
@return TRUE if plot is drawing axis ticks, FALSE if the grid is active. */
bool GetTicks() { return m_ticks; };
- virtual double TransformToPlot ( double x );
- virtual double TransformFromPlot (double xplot );
+ virtual double TransformToPlot ( double x ) override;
+ virtual double TransformFromPlot (double xplot ) override;
void SetMasterScale( mpScaleY *masterScale )
@@ -970,8 +970,8 @@ class WXDLLIMPEXP_MATHPLOT mpScaleY : public mpScaleBase
}
protected:
- virtual void getVisibleDataRange ( mpWindow& w, double &minV, double& maxV);
- virtual void recalculateTicks ( wxDC & dc, mpWindow & w );
+ virtual void getVisibleDataRange ( mpWindow& w, double &minV, double& maxV) override;
+ virtual void recalculateTicks ( wxDC & dc, mpWindow & w ) override;
//virtual int tickCount() const;
//virtual int labelCount() const;
//virtual const wxString getLabel( int n );
@@ -1213,7 +1213,7 @@ class WXDLLIMPEXP_MATHPLOT mpWindow : public wxWindow
Scale and position will be set to show all attached mpLayers.
The X/Y scale aspect lock is taken into account.
*/
- void Fit();
+ void Fit() override;
/** Set view to fit a given bounding box and refresh display.
The X/Y scale aspect lock is taken into account.
@@ -1546,31 +1546,31 @@ class WXDLLIMPEXP_MATHPLOT mpFXYVector : public mpFXY
/** Rewind value enumeration with mpFXY::GetNextXY.
Overridden in this implementation.
*/
- void Rewind();
+ void Rewind() override;
/** Get locus value for next N.
Overridden in this implementation.
@param x Returns X value
@param y Returns Y value
*/
- bool GetNextXY(double & x, double & y);
+ bool GetNextXY(double & x, double & y) override;
public:
/** Returns the actual minimum X data (loaded in SetData).
*/
- double GetMinX() { return m_minX; }
+ double GetMinX() override { return m_minX; }
/** Returns the actual minimum Y data (loaded in SetData).
*/
- double GetMinY() { return m_minY; }
+ double GetMinY() override { return m_minY; }
/** Returns the actual maximum X data (loaded in SetData).
*/
- double GetMaxX() { return m_maxX; }
+ double GetMaxX() override { return m_maxX; }
/** Returns the actual maximum Y data (loaded in SetData).
*/
- double GetMaxY() { return m_maxY; }
+ double GetMaxY() override { return m_maxY; }
protected:
int m_flags; //!< Holds label alignment
@@ -1620,10 +1620,10 @@ class WXDLLIMPEXP_MATHPLOT mpText : public mpLayer
/** Text Layer plot handler.
This implementation will plot text adjusted to the visible area. */
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
/** mpText should not be used for scaling decisions. */
- virtual bool HasBBox() { return FALSE; }
+ virtual bool HasBBox() override { return FALSE; }
protected:
int m_offsetx; //!< Holds offset for X in percentage
@@ -1648,8 +1648,8 @@ class WXDLLIMPEXP_MATHPLOT mpPrintout : public wxPrintout
virtual ~mpPrintout() {};
void SetDrawState(bool drawState) {drawn = drawState;};
- bool OnPrintPage(int page);
- bool HasPage(int page);
+ bool OnPrintPage(int page) override;
+ bool HasPage(int page) override;
private:
bool drawn;
@@ -1703,25 +1703,25 @@ class WXDLLIMPEXP_MATHPLOT mpMovableObject : public mpLayer
ShapeUpdated();
}
- virtual bool HasBBox() { return m_trans_shape_xs.size()!=0; }
+ virtual bool HasBBox() override { return m_trans_shape_xs.size()!=0; }
/** Get inclusive left border of bounding box.
*/
- virtual double GetMinX() { return m_bbox_min_x; }
+ virtual double GetMinX() override { return m_bbox_min_x; }
/** Get inclusive right border of bounding box.
*/
- virtual double GetMaxX() { return m_bbox_max_x; }
+ virtual double GetMaxX() override { return m_bbox_max_x; }
/** Get inclusive bottom border of bounding box.
*/
- virtual double GetMinY() { return m_bbox_min_y; }
+ virtual double GetMinY() override { return m_bbox_min_y; }
/** Get inclusive top border of bounding box.
*/
- virtual double GetMaxY() { return m_bbox_max_y; }
+ virtual double GetMaxY() override { return m_bbox_max_y; }
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
/** Set label axis alignment.
* @param align alignment (choose between mpALIGN_NE, mpALIGN_NW, mpALIGN_SW, mpALIGN_SE
@@ -1919,25 +1919,25 @@ class WXDLLIMPEXP_MATHPLOT mpBitmapLayer : public mpLayer
*/
void SetBitmap( const wxImage &inBmp, double x, double y, double lx, double ly );
- virtual bool HasBBox() { return true; }
+ virtual bool HasBBox() override { return true; }
/** Get inclusive left border of bounding box.
*/
- virtual double GetMinX() { return m_min_x; }
+ virtual double GetMinX() override { return m_min_x; }
/** Get inclusive right border of bounding box.
*/
- virtual double GetMaxX() { return m_max_x; }
+ virtual double GetMaxX() override { return m_max_x; }
/** Get inclusive bottom border of bounding box.
*/
- virtual double GetMinY() { return m_min_y; }
+ virtual double GetMinY() override { return m_min_y; }
/** Get inclusive top border of bounding box.
*/
- virtual double GetMaxY() { return m_max_y; }
+ virtual double GetMaxY() override { return m_max_y; }
- virtual void Plot(wxDC & dc, mpWindow & w);
+ virtual void Plot(wxDC & dc, mpWindow & w) override;
/** Set label axis alignment.
* @param align alignment (choose between mpALIGN_NE, mpALIGN_NW, mpALIGN_SW, mpALIGN_SE
diff --git a/include/worksheet_shape_builder.h b/include/worksheet_shape_builder.h
index 69b200088a..be609d9ec3 100644
--- a/include/worksheet_shape_builder.h
+++ b/include/worksheet_shape_builder.h
@@ -159,31 +159,31 @@ public:
/** The function to draw a WS_DRAW_ITEM_LINE
*/
virtual void DrawWsItem( EDA_RECT* aClipBox, wxDC* aDC, const wxPoint& aOffset,
- GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
+ GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR ) override;
/**
* Virtual function
* return true if the point aPosition is on the line
*/
- virtual bool HitTest( const wxPoint& aPosition) const;
+ virtual bool HitTest( const wxPoint& aPosition) const override;
/**
* Virtual function
* return true if the rect aRect intersects on the item
*/
- virtual bool HitTest( const EDA_RECT& aRect ) const;
+ virtual bool HitTest( const EDA_RECT& aRect ) const override;
/**
* return true if the point aPosition is on the starting point of this item.
*/
- virtual bool HitTestStartPoint( const wxPoint& aPosition);
+ virtual bool HitTestStartPoint( const wxPoint& aPosition) override;
/**
* return true if the point aPosition is on the ending point of this item
* This is avirtual function which should be overriden for items defien by
* 2 points
*/
- virtual bool HitTestEndPoint( const wxPoint& aPosition);
+ virtual bool HitTestEndPoint( const wxPoint& aPosition) override;
};
// This class draws a polygon
@@ -216,24 +216,24 @@ public:
/** The function to draw a WS_DRAW_ITEM_POLYGON
*/
virtual void DrawWsItem( EDA_RECT* aClipBox, wxDC* aDC, const wxPoint& aOffset,
- GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
+ GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR ) override;
/**
* Virtual function
* return true if the point aPosition is inside one polygon
*/
- virtual bool HitTest( const wxPoint& aPosition) const;
+ virtual bool HitTest( const wxPoint& aPosition) const override;
/**
* Virtual function
* return true if the rect aRect intersects on the item
*/
- virtual bool HitTest( const EDA_RECT& aRect ) const;
+ virtual bool HitTest( const EDA_RECT& aRect ) const override;
/**
* return true if the point aPosition is on the starting point of this item.
*/
- virtual bool HitTestStartPoint( const wxPoint& aPosition);
+ virtual bool HitTestStartPoint( const wxPoint& aPosition) override;
};
// This class draws a not filled rectangle with thick segment
@@ -251,31 +251,31 @@ public:
/** The function to draw a WS_DRAW_ITEM_RECT
*/
virtual void DrawWsItem( EDA_RECT* aClipBox, wxDC* aDC, const wxPoint& aOffset,
- GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
+ GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR ) override;
/**
* Virtual function
* return true if the point aPosition is on one edge of the rectangle
*/
- virtual bool HitTest( const wxPoint& aPosition) const;
+ virtual bool HitTest( const wxPoint& aPosition) const override;
/**
* Virtual function
* return true if the rect aRect intersects on the item
*/
- virtual bool HitTest( const EDA_RECT& aRect ) const;
+ virtual bool HitTest( const EDA_RECT& aRect ) const override;
/**
* return true if the point aPosition is on the starting point of this item.
*/
- virtual bool HitTestStartPoint( const wxPoint& aPosition);
+ virtual bool HitTestStartPoint( const wxPoint& aPosition) override;
/**
* return true if the point aPosition is on the ending point of this item
* This is avirtual function which should be overriden for items defien by
* 2 points
*/
- virtual bool HitTestEndPoint( const wxPoint& aPosition);
+ virtual bool HitTestEndPoint( const wxPoint& aPosition) override;
};
// This class draws a graphic text.
@@ -292,7 +292,7 @@ public:
/** The function to draw a WS_DRAW_ITEM_TEXT
*/
virtual void DrawWsItem( EDA_RECT* aClipBox, wxDC* aDC, const wxPoint& aOffset,
- GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
+ GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR ) override;
// Accessors:
int GetPenWidth() { return GetThickness(); }
@@ -301,18 +301,18 @@ public:
* Virtual function
* return true if the point aPosition is on the text
*/
- virtual bool HitTest( const wxPoint& aPosition) const;
+ virtual bool HitTest( const wxPoint& aPosition) const override;
/**
* Virtual function
* return true if the rect aRect intersects on the item
*/
- virtual bool HitTest( const EDA_RECT& aRect ) const;
+ virtual bool HitTest( const EDA_RECT& aRect ) const override;
/**
* return true if the point aPosition is on the starting point of this item.
*/
- virtual bool HitTestStartPoint( const wxPoint& aPosition);
+ virtual bool HitTestStartPoint( const wxPoint& aPosition) override;
};
// This class draws a bitmap.
@@ -337,24 +337,24 @@ public:
/** The function to draw a WS_DRAW_ITEM_BITMAP
*/
virtual void DrawWsItem( EDA_RECT* aClipBox, wxDC* aDC, const wxPoint& aOffset,
- GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR );
+ GR_DRAWMODE aDrawMode, EDA_COLOR_T aColor = UNSPECIFIED_COLOR ) override;
/**
* Virtual function
* return true if the point aPosition is on bitmap
*/
- virtual bool HitTest( const wxPoint& aPosition) const;
+ virtual bool HitTest( const wxPoint& aPosition) const override;
/**
* Virtual function
* return true if the rect aRect intersects on the item
*/
- virtual bool HitTest( const EDA_RECT& aRect ) const;
+ virtual bool HitTest( const EDA_RECT& aRect ) const override;
/**
* return true if the point aPosition is on the reference point of this item.
*/
- virtual bool HitTestStartPoint( const wxPoint& aPosition);
+ virtual bool HitTestStartPoint( const wxPoint& aPosition) override;
const wxPoint& GetPosition() { return m_pos; }
};
diff --git a/include/worksheet_viewitem.h b/include/worksheet_viewitem.h
index 149f804530..cf193a51c7 100644
--- a/include/worksheet_viewitem.h
+++ b/include/worksheet_viewitem.h
@@ -115,17 +115,17 @@ public:
}
/// @copydoc VIEW_ITEM::ViewBBox()
- const BOX2I ViewBBox() const;
+ const BOX2I ViewBBox() const override;
/// @copydoc VIEW_ITEM::ViewDraw()
- void ViewDraw( int aLayer, GAL* aGal ) const;
+ void ViewDraw( int aLayer, GAL* aGal ) const override;
/// @copydoc VIEW_ITEM::ViewGetLayers()
- void ViewGetLayers( int aLayers[], int& aCount ) const;
+ void ViewGetLayers( int aLayers[], int& aCount ) const override;
#if defined(DEBUG)
/// @copydoc EDA_ITEM::Show()
- void Show( int x, std::ostream& st ) const
+ void Show( int x, std::ostream& st ) const override
{
}
#endif
@@ -133,7 +133,7 @@ public:
/** Get class name
* @return string "WORKSHEET_VIEWITEM"
*/
- virtual wxString GetClass() const
+ virtual wxString GetClass() const override
{
return wxT( "WORKSHEET_VIEWITEM" );
}
diff --git a/include/wxBasePcbFrame.h b/include/wxBasePcbFrame.h
index 84038252a0..a93fb0aa79 100644
--- a/include/wxBasePcbFrame.h
+++ b/include/wxBasePcbFrame.h
@@ -83,7 +83,7 @@ protected:
void updateGridSelectBox();
void updateZoomSelectBox();
- virtual void unitsChangeRefresh();
+ virtual void unitsChangeRefresh() override;
/**
* Function loadFootprint
@@ -128,18 +128,18 @@ public:
*/
EDA_RECT GetBoardBoundingBox( bool aBoardEdgesOnly = false ) const;
- virtual void SetPageSettings( const PAGE_INFO& aPageSettings ); // overload
- const PAGE_INFO& GetPageSettings() const; // overload
- const wxSize GetPageSizeIU() const; // overload
+ virtual void SetPageSettings( const PAGE_INFO& aPageSettings ) override;
+ const PAGE_INFO& GetPageSettings() const override;
+ const wxSize GetPageSizeIU() const override;
- const wxPoint& GetAuxOrigin() const; // overload
- void SetAuxOrigin( const wxPoint& aPoint ); // overload
+ const wxPoint& GetAuxOrigin() const override;
+ void SetAuxOrigin( const wxPoint& aPoint ) override;
- const wxPoint& GetGridOrigin() const; // overload
- void SetGridOrigin( const wxPoint& aPoint ); // overload
+ const wxPoint& GetGridOrigin() const override;
+ void SetGridOrigin( const wxPoint& aPoint ) override;
- const TITLE_BLOCK& GetTitleBlock() const; // overload
- void SetTitleBlock( const TITLE_BLOCK& aTitleBlock ); // overload
+ const TITLE_BLOCK& GetTitleBlock() const override;
+ void SetTitleBlock( const TITLE_BLOCK& aTitleBlock ) override;
/**
* Function GetDesignSettings
@@ -157,7 +157,7 @@ public:
* Must be overloaded in frames which have display options
* (board editor and footprint editor)
*/
- void* GetDisplayOptions() { return &m_DisplayOptions; }
+ void* GetDisplayOptions() override { return &m_DisplayOptions; }
const ZONE_SETTINGS& GetZoneSettings() const;
void SetZoneSettings( const ZONE_SETTINGS& aSettings );
@@ -186,15 +186,15 @@ public:
// General
virtual void OnCloseWindow( wxCloseEvent& Event ) = 0;
- virtual void RedrawActiveWindow( wxDC* DC, bool EraseBg ) { }
- virtual void ReCreateHToolbar() = 0;
- virtual void ReCreateVToolbar() = 0;
- virtual void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) = 0;
- virtual void OnLeftDClick( wxDC* DC, const wxPoint& MousePos ) = 0;
- virtual bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu ) = 0;
- virtual void ReCreateMenuBar();
- virtual void SetToolID( int aId, int aCursor, const wxString& aToolMsg );
- virtual void UpdateStatusBar();
+ virtual void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override { }
+ virtual void ReCreateHToolbar() override = 0;
+ virtual void ReCreateVToolbar() override = 0;
+ virtual void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) override = 0;
+ virtual void OnLeftDClick( wxDC* DC, const wxPoint& MousePos ) override = 0;
+ virtual bool OnRightClick( const wxPoint& MousePos, wxMenu* PopMenu ) override = 0;
+ virtual void ReCreateMenuBar() override;
+ virtual void SetToolID( int aId, int aCursor, const wxString& aToolMsg ) override;
+ virtual void UpdateStatusBar() override;
PCB_SCREEN* GetScreen() const { return (PCB_SCREEN*) EDA_DRAW_FRAME::GetScreen(); }
@@ -202,7 +202,7 @@ public:
* Function BestZoom
* @return the "best" zoom to show the entire board or footprint on the screen.
*/
- virtual double BestZoom();
+ virtual double BestZoom() override;
/**
* Function GetZoomLevelIndicator
@@ -210,7 +210,7 @@ public:
* level indicator in dialogs.
* Virtual from the base class
*/
- const wxString GetZoomLevelIndicator() const;
+ const wxString GetZoomLevelIndicator() const override;
virtual void Show3D_Frame( wxCommandEvent& event );
@@ -259,7 +259,7 @@ public:
BOARD_ITEM* GetCurItem();
///> @copydoc EDA_DRAW_FRAME::UpdateMsgPanel()
- void UpdateMsgPanel();
+ void UpdateMsgPanel() override;
/**
* Function GetCollectorsGuide
@@ -635,8 +635,8 @@ public:
return GetScreen()->m_Active_Layer;
}
- void LoadSettings( wxConfigBase* aCfg ); // override virtual
- void SaveSettings( wxConfigBase* aCfg ); // override virtual
+ void LoadSettings( wxConfigBase* aCfg ) override;
+ void SaveSettings( wxConfigBase* aCfg ) override;
bool InvokeDialogGrid();
@@ -667,18 +667,18 @@ public:
* Virtual function SetNextGrid()
* changes the grid size settings to the next one available.
*/
- void SetNextGrid();
+ void SetNextGrid() override;
/**
* Virtual function SetPrevGrid()
* changes the grid size settings to the previous one available.
*/
- void SetPrevGrid();
+ void SetPrevGrid() override;
void ClearSelection();
///> @copydoc EDA_DRAW_FRAME::UseGalCanvas
- virtual void UseGalCanvas( bool aEnable );
+ virtual void UseGalCanvas( bool aEnable ) override;
/**
* Function SwitchCanvas
diff --git a/include/wxPcbStruct.h b/include/wxPcbStruct.h
index 7ea35fbde2..8ea56db7f9 100644
--- a/include/wxPcbStruct.h
+++ b/include/wxPcbStruct.h
@@ -162,7 +162,7 @@ protected:
*/
void syncLayerVisibilities();
- virtual void unitsChangeRefresh();
+ virtual void unitsChangeRefresh() override;
/**
* Function doAutoSave
@@ -171,13 +171,13 @@ protected:
*
* @return true if the auto save was successful.
*/
- virtual bool doAutoSave();
+ virtual bool doAutoSave() override;
/**
* Function isautoSaveRequired
* returns true if the board has been modified.
*/
- virtual bool isAutoSaveRequired() const;
+ virtual bool isAutoSaveRequired() const override;
/**
* Function duplicateZone
@@ -198,7 +198,7 @@ protected:
* Duplicate selected item if possible and start a move
* @param aIncrement increment the item number if appropriate
*/
- void duplicateItems( bool aIncrement ); //override
+ void duplicateItems( bool aIncrement ) override;
// protected so that PCB::IFACE::CreateWindow() is the only factory.
PCB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent );
@@ -240,9 +240,9 @@ public:
* this is a virtual function called by EDA_DRAW_FRAME::OnSockRequest().
* @param cmdline = received command from socket
*/
- virtual void ExecuteRemoteCommand( const char* cmdline );
+ virtual void ExecuteRemoteCommand( const char* cmdline ) override;
- void KiwayMailIn( KIWAY_EXPRESS& aEvent ); // virtual overload from KIWAY_PLAYER
+ void KiwayMailIn( KIWAY_EXPRESS& aEvent ) override;
/**
* Function ToPlotter
@@ -303,7 +303,7 @@ public:
* @param aData = a pointer on an auxiliary data (NULL if not used)
*/
virtual void PrintPage( wxDC* aDC, LSET aPrintMaskLayer, bool aPrintMirrorMode,
- void* aData = NULL );
+ void* aData = NULL ) override;
void GetKicadAbout( wxCommandEvent& event );
@@ -311,7 +311,7 @@ public:
* Function IsGridVisible() , virtual
* @return true if the grid must be shown
*/
- virtual bool IsGridVisible() const;
+ virtual bool IsGridVisible() const override;
/**
* Function SetGridVisibility() , virtual
@@ -319,22 +319,22 @@ public:
* if you want to store/retrieve the grid visibility in configuration.
* @param aVisible = true if the grid must be shown
*/
- virtual void SetGridVisibility( bool aVisible );
+ virtual void SetGridVisibility( bool aVisible ) override;
/**
* Function GetGridColor() , virtual
* @return the color of the grid
*/
- virtual EDA_COLOR_T GetGridColor() const;
+ virtual EDA_COLOR_T GetGridColor() const override;
/**
* Function SetGridColor() , virtual
* @param aColor = the new color of the grid
*/
- virtual void SetGridColor( EDA_COLOR_T aColor );
+ virtual void SetGridColor( EDA_COLOR_T aColor ) override;
///> @copydoc EDA_DRAW_FRAME::SetCursorShape()
- virtual void SetCursorShape( int aCursorShape );
+ virtual void SetCursorShape( int aCursorShape ) override;
// Configurations:
void Process_Config( wxCommandEvent& event );
@@ -358,7 +358,7 @@ public:
* saves changes to the project settings to the project (.pro) file.
* @param aAskForSave = true to open a dialog before saving the settings
*/
- void SaveProjectSettings( bool aAskForSave );
+ void SaveProjectSettings( bool aAskForSave ) override;
/**
* Load the current project's file configuration settings which are pertinent
@@ -385,9 +385,9 @@ public:
*/
PARAM_CFG_ARRAY& GetConfigurationSettings();
- void LoadSettings( wxConfigBase* aCfg ); // override virtual
+ void LoadSettings( wxConfigBase* aCfg ) override;
- void SaveSettings( wxConfigBase* aCfg ); // override virtual
+ void SaveSettings( wxConfigBase* aCfg ) override;
wxConfigBase* GetSettings() { return config(); };
@@ -412,7 +412,7 @@ public:
void SetLastNetListRead( const wxString& aNetListFile );
///> @copydoc EDA_DRAW_FRAME::GetHotKeyDescription()
- EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const;
+ EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
/**
* Function OnHotKey.
@@ -423,7 +423,7 @@ public:
* @param aPosition The cursor position in logical (drawing) units.
* @param aItem = NULL or pointer on a EDA_ITEM under the mouse cursor
*/
- bool OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosition, EDA_ITEM* aItem = NULL );
+ bool OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
/**
* Function OnHotkeyDeleteItem
@@ -508,7 +508,7 @@ public:
*/
TRACK * OnHotkeyBeginRoute( wxDC* aDC );
- void OnCloseWindow( wxCloseEvent& Event );
+ void OnCloseWindow( wxCloseEvent& Event ) override;
void Process_Special_Functions( wxCommandEvent& event );
void Tracks_and_Vias_Size_Event( wxCommandEvent& event );
void OnSelectTool( wxCommandEvent& aEvent );
@@ -523,13 +523,13 @@ public:
void ProcessMuWaveFunctions( wxCommandEvent& event );
void MuWaveCommand( wxDC* DC, const wxPoint& MousePos );
- void RedrawActiveWindow( wxDC* DC, bool EraseBg );
- void ReCreateHToolbar();
- void ReCreateAuxiliaryToolbar();
- void ReCreateVToolbar();
+ void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
+ void ReCreateHToolbar() override;
+ void ReCreateAuxiliaryToolbar() override;
+ void ReCreateVToolbar() override;
void ReCreateMicrowaveVToolbar();
void ReCreateOptToolbar();
- void ReCreateMenuBar();
+ void ReCreateMenuBar() override;
/**
* Re create the layer Box by clearing the old list, and building
@@ -561,14 +561,14 @@ public:
* to update auxiliary information.
*
*/
- virtual void OnModify();
+ virtual void OnModify() override;
/**
* Function SetActiveLayer
* will change the currently active layer to \a aLayer and also
* update the PCB_LAYER_WIDGET.
*/
- virtual void SetActiveLayer( LAYER_ID aLayer );
+ virtual void SetActiveLayer( LAYER_ID aLayer ) override;
/**
* Function IsElementVisible
@@ -606,12 +606,12 @@ public:
* Function Show3D_Frame
* displays the 3D view of current printed circuit board.
*/
- void Show3D_Frame( wxCommandEvent& event );
+ void Show3D_Frame( wxCommandEvent& event ) override;
///> @copydoc EDA_DRAW_FRAME::UseGalCanvas()
- void UseGalCanvas( bool aEnable );
+ void UseGalCanvas( bool aEnable ) override;
- bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 );
+ bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
/**
* Function ShowDesignRulesEditor
@@ -624,8 +624,8 @@ public:
void PrepareLayerIndicator();
/* mouse functions events: */
- void OnLeftClick( wxDC* DC, const wxPoint& MousePos );
- void OnLeftDClick( wxDC* DC, const wxPoint& MousePos );
+ void OnLeftClick( wxDC* DC, const wxPoint& MousePos ) override;
+ void OnLeftDClick( wxDC* DC, const wxPoint& MousePos ) override;
/**
* Function OnRightClick
@@ -634,10 +634,10 @@ public:
* @param aMousePos The current mouse position
* @param aPopMenu The menu to add to.
*/
- bool OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu );
+ bool OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu ) override;
void OnSelectOptionToolbar( wxCommandEvent& event );
- void ToolOnRightClick( wxCommandEvent& event );
+ void ToolOnRightClick( wxCommandEvent& event ) override;
/* Block operations: */
@@ -649,7 +649,7 @@ public:
* @param aKey = the key modifiers (Alt, Shift ...)
* @return the block command id (BLOCK_MOVE, BLOCK_COPY...)
*/
- virtual int BlockCommand( EDA_KEY aKey );
+ virtual int BlockCommand( EDA_KEY aKey ) override;
/**
* Function HandleBlockPlace()
@@ -658,7 +658,7 @@ public:
* (bloc move, drag, copy .. )
* Parameters must be initialized in GetScreen()->m_BlockLocate
*/
- virtual void HandleBlockPlace( wxDC* DC );
+ virtual void HandleBlockPlace( wxDC* DC ) override;
/**
* Function HandleBlockEnd()
@@ -670,7 +670,7 @@ public:
* @return false if no item selected, or command finished,
* true if some items found and HandleBlockPlace must be called later
*/
- virtual bool HandleBlockEnd( wxDC* DC );
+ virtual bool HandleBlockEnd( wxDC* DC ) override;
/**
* Function Block_SelectItems
@@ -812,7 +812,7 @@ public:
bool LoadOnePcbFile( const wxString& aFileName, bool aAppend = false,
bool aForceFileDialog = false );
*/
- bool OpenProjectFiles( const std::vector& aFileSet, int aCtl = 0 );
+ bool OpenProjectFiles( const std::vector& aFileSet, int aCtl = 0 ) override;
/**
* Function AppendBoardFile
@@ -858,13 +858,13 @@ public:
bool Clear_Pcb( bool aQuery );
///> @copydoc PCB_BASE_FRAME::SetBoard()
- void SetBoard( BOARD* aBoard );
+ void SetBoard( BOARD* aBoard ) override;
///> @copydoc PCB_BASE_EDIT_FRAME::GetModel()
BOARD_ITEM_CONTAINER* GetModel() const override;
///> @copydoc PCB_BASE_FRAME::SetPageSettings()
- void SetPageSettings( const PAGE_INFO& aPageSettings ); // overload
+ void SetPageSettings( const PAGE_INFO& aPageSettings ) override;
// Drc control
@@ -1111,7 +1111,7 @@ public:
* @param aDC = the current device context
* @param aItem = a pointer to the BOARD_ITEM to edit
*/
- void OnEditItemRequest( wxDC* aDC, BOARD_ITEM* aItem );
+ void OnEditItemRequest( wxDC* aDC, BOARD_ITEM* aItem ) override;
/**
* Locate track or pad and highlight the corresponding net.
@@ -1261,7 +1261,7 @@ public:
bool MergeCollinearTracks( TRACK* track, wxDC* DC, int end );
void Start_DragTrackSegmentAndKeepSlope( TRACK* track, wxDC* DC );
- void SwitchLayer( wxDC* DC, LAYER_ID layer );
+ void SwitchLayer( wxDC* DC, LAYER_ID layer ) override;
/**
* Function Add45DegreeSegment
@@ -1642,7 +1642,7 @@ public:
void Begin_Self( wxDC* DC );
- void ShowChangedLanguage(); // override EDA_BASE_FRAME virtual
+ void ShowChangedLanguage() override;
/**
* Function UpdateTitle
diff --git a/include/wxstruct.h b/include/wxstruct.h
index a6eb79ca9d..ac49ab76af 100644
--- a/include/wxstruct.h
+++ b/include/wxstruct.h
@@ -205,9 +205,9 @@ public:
* @warning If you override this function in a derived class, make sure you call
* down to this or the auto save feature will be disabled.
*/
- bool ProcessEvent( wxEvent& aEvent ); // override wxFrame::ProcessEvent()
+ bool ProcessEvent( wxEvent& aEvent ) override;
- bool Enable( bool enable ); // override wxFrame::Enable virtual
+ bool Enable( bool enable ) override;
void SetAutoSaveInterval( int aInterval ) { m_autoSaveInterval = aInterval; }
diff --git a/kicad/class_treeprojectfiles.h b/kicad/class_treeprojectfiles.h
index db1d512078..d6fd49a494 100644
--- a/kicad/class_treeprojectfiles.h
+++ b/kicad/class_treeprojectfiles.h
@@ -57,7 +57,7 @@ public:
~TREEPROJECTFILES();
private:
/* overridden sort function */
- int OnCompareItems( const wxTreeItemId& item1, const wxTreeItemId& item2 );
+ int OnCompareItems( const wxTreeItemId& item1, const wxTreeItemId& item2 ) override;
};
#endif // CLASS_TREEPROJECTFILES_H
diff --git a/kicad/dialogs/dialog_template_selector.h b/kicad/dialogs/dialog_template_selector.h
index 17a7a627bd..74b14e06fb 100644
--- a/kicad/dialogs/dialog_template_selector.h
+++ b/kicad/dialogs/dialog_template_selector.h
@@ -119,10 +119,10 @@ private:
void replaceCurrentPage();
void onNotebookResize( wxSizeEvent& event );
- void OnPageChange( wxNotebookEvent& event );
- void onDirectoryBrowseClicked( wxCommandEvent& event );
- void onValidatePath( wxCommandEvent& event );
- void OnHtmlLinkActivated( wxHtmlLinkEvent& event );
+ void OnPageChange( wxNotebookEvent& event ) override;
+ void onDirectoryBrowseClicked( wxCommandEvent& event ) override;
+ void onValidatePath( wxCommandEvent& event ) override;
+ void OnHtmlLinkActivated( wxHtmlLinkEvent& event ) override;
};
#endif
diff --git a/kicad/kicad.h b/kicad/kicad.h
index 16e18d46b8..ab04f31624 100644
--- a/kicad/kicad.h
+++ b/kicad/kicad.h
@@ -188,7 +188,7 @@ public:
void Process_Config( wxCommandEvent& event );
- void ReCreateMenuBar();
+ void ReCreateMenuBar() override;
void RecreateBaseHToolbar();
/**
@@ -221,9 +221,9 @@ public:
void CreateNewProject( const wxString& aPrjFullFileName, bool aTemplateSelector );
- void LoadSettings( wxConfigBase* aCfg );
+ void LoadSettings( wxConfigBase* aCfg ) override;
- void SaveSettings( wxConfigBase* aCfg );
+ void SaveSettings( wxConfigBase* aCfg ) override;
/**
* Function Execute
@@ -246,7 +246,7 @@ public:
{
}
- void OnTerminate( int pid, int status );
+ void OnTerminate( int pid, int status ) override;
};
/**
diff --git a/kicad/pgm_kicad.h b/kicad/pgm_kicad.h
index b16c9854ef..2ebed91720 100644
--- a/kicad/pgm_kicad.h
+++ b/kicad/pgm_kicad.h
@@ -52,7 +52,7 @@ public:
bool OnPgmInit();
void OnPgmExit();
- void MacOpenFile( const wxString& aFileName );
+ void MacOpenFile( const wxString& aFileName ) override;
wxFileHistory& GetFileHistory() { return m_bm.m_history; }
diff --git a/lib_dxf/drw_entities.h b/lib_dxf/drw_entities.h
index 7f7b0855f4..a8e7f75a95 100644
--- a/lib_dxf/drw_entities.h
+++ b/lib_dxf/drw_entities.h
@@ -159,7 +159,7 @@ public:
thickness = 0;
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
@@ -183,7 +183,7 @@ public:
secPoint.z = 0;
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
public:
@@ -232,7 +232,7 @@ public:
radious = 0.0;
}
- virtual void applyExtrusion();
+ virtual void applyExtrusion() override;
void parseCode( int code, dxfReader* reader );
public:
@@ -255,7 +255,7 @@ public:
endangle = 0.0;
}
- virtual void applyExtrusion();
+ virtual void applyExtrusion() override;
void parseCode( int code, dxfReader* reader );
public:
@@ -284,7 +284,7 @@ public:
void parseCode( int code, dxfReader* reader );
void toPolyline( DRW_Polyline* pol, int parts = 128 );
- virtual void applyExtrusion();
+ virtual void applyExtrusion() override;
void correctAxis();
public:
@@ -309,7 +309,7 @@ public:
fourPoint.z = 0;
}
- virtual void applyExtrusion();
+ virtual void applyExtrusion() override;
void parseCode( int code, dxfReader* reader );
public:
@@ -347,7 +347,7 @@ public:
invisibleflag = 0;
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
public:
@@ -370,7 +370,7 @@ public:
name = "*U0";
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
public:
@@ -400,7 +400,7 @@ public:
rowspace = 0;
}
- virtual void applyExtrusion() { DRW_Point::applyExtrusion(); }
+ virtual void applyExtrusion() override { DRW_Point::applyExtrusion(); }
void parseCode( int code, dxfReader* reader );
public:
@@ -442,7 +442,7 @@ public:
}
}
- virtual void applyExtrusion();
+ virtual void applyExtrusion() override;
void addVertex( DRW_Vertex2D v )
{
@@ -521,7 +521,7 @@ public:
height = 0.0;
}
- virtual void applyExtrusion() {} // RLZ TODO
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
public:
@@ -715,7 +715,7 @@ public:
}
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
@@ -820,7 +820,7 @@ public:
looplist.push_back( v );
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
public:
@@ -988,7 +988,7 @@ public:
void parseCode( int code, dxfReader* reader );
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
DRW_Coord getDefPoint() const { return defPoint; } /*!< Definition point, code 10, 20 & 30 */
void setDefPoint( const DRW_Coord& p ) { defPoint = p; }
@@ -1280,7 +1280,7 @@ public:
}
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
public:
@@ -1324,7 +1324,7 @@ public:
centerPY = 97.5;
}
- virtual void applyExtrusion() {}
+ virtual void applyExtrusion() override {}
void parseCode( int code, dxfReader* reader );
public:
diff --git a/lib_dxf/intern/drw_textcodec.h b/lib_dxf/intern/drw_textcodec.h
index 1a8c56a410..d6a8977f66 100644
--- a/lib_dxf/intern/drw_textcodec.h
+++ b/lib_dxf/intern/drw_textcodec.h
@@ -56,8 +56,8 @@ class DRW_ConvTable : public DRW_Converter
{
public:
DRW_ConvTable( const int* t, int l ) : DRW_Converter( t, l ) {}
- virtual std::string fromUtf8( std::string* s );
- virtual std::string toUtf8( std::string* s );
+ virtual std::string fromUtf8( std::string* s ) override;
+ virtual std::string toUtf8( std::string* s ) override;
};
class DRW_ConvDBCSTable : public DRW_Converter
@@ -70,8 +70,8 @@ public:
doubleTable = dt;
}
- virtual std::string fromUtf8( std::string* s );
- virtual std::string toUtf8( std::string* s );
+ virtual std::string fromUtf8( std::string* s ) override;
+ virtual std::string toUtf8( std::string* s ) override;
private:
const int* leadTable;
@@ -88,8 +88,8 @@ public:
doubleTable = dt;
}
- virtual std::string fromUtf8( std::string* s );
- virtual std::string toUtf8( std::string* s );
+ virtual std::string fromUtf8( std::string* s ) override;
+ virtual std::string toUtf8( std::string* s ) override;
private:
const int* leadTable;
diff --git a/lib_dxf/intern/dxfreader.h b/lib_dxf/intern/dxfreader.h
index 845244955c..00493789e6 100644
--- a/lib_dxf/intern/dxfreader.h
+++ b/lib_dxf/intern/dxfreader.h
@@ -73,14 +73,14 @@ class dxfReaderBinary : public dxfReader
public:
dxfReaderBinary( std::ifstream* stream ) : dxfReader( stream ) {}
virtual ~dxfReaderBinary() {}
- virtual bool readCode( int* code );
- virtual bool readString( std::string* text );
- virtual bool readString();
- virtual bool readInt();
- virtual bool readInt32();
- virtual bool readInt64();
- virtual bool readDouble();
- virtual bool readBool();
+ virtual bool readCode( int* code ) override;
+ virtual bool readString( std::string* text ) override;
+ virtual bool readString() override;
+ virtual bool readInt() override;
+ virtual bool readInt32() override;
+ virtual bool readInt64() override;
+ virtual bool readDouble() override;
+ virtual bool readBool() override;
};
class dxfReaderAscii : public dxfReader
@@ -88,14 +88,14 @@ class dxfReaderAscii : public dxfReader
public:
dxfReaderAscii( std::ifstream* stream ) : dxfReader( stream ) {}
virtual ~dxfReaderAscii() {}
- virtual bool readCode( int* code );
- virtual bool readString( std::string* text );
- virtual bool readString();
- virtual bool readInt();
- virtual bool readDouble();
- virtual bool readInt32();
- virtual bool readInt64();
- virtual bool readBool();
+ virtual bool readCode( int* code ) override;
+ virtual bool readString( std::string* text ) override;
+ virtual bool readString() override;
+ virtual bool readInt() override;
+ virtual bool readDouble() override;
+ virtual bool readInt32() override;
+ virtual bool readInt64() override;
+ virtual bool readBool() override;
};
#endif // DXFREADER_H
diff --git a/lib_dxf/intern/dxfwriter.h b/lib_dxf/intern/dxfwriter.h
index cd9f0bbf3d..50d99a29b4 100644
--- a/lib_dxf/intern/dxfwriter.h
+++ b/lib_dxf/intern/dxfwriter.h
@@ -47,12 +47,12 @@ class dxfWriterBinary : public dxfWriter
public:
dxfWriterBinary( std::ofstream* stream ) : dxfWriter( stream ) {}
virtual ~dxfWriterBinary() {}
- virtual bool writeString( int code, std::string text );
- virtual bool writeInt16( int code, int data );
- virtual bool writeInt32( int code, int data );
- virtual bool writeInt64( int code, unsigned long long int data );
- virtual bool writeDouble( int code, double data );
- virtual bool writeBool( int code, bool data );
+ virtual bool writeString( int code, std::string text ) override;
+ virtual bool writeInt16( int code, int data ) override;
+ virtual bool writeInt32( int code, int data ) override;
+ virtual bool writeInt64( int code, unsigned long long int data ) override;
+ virtual bool writeDouble( int code, double data ) override;
+ virtual bool writeBool( int code, bool data ) override;
};
class dxfWriterAscii : public dxfWriter
@@ -60,12 +60,12 @@ class dxfWriterAscii : public dxfWriter
public:
dxfWriterAscii( std::ofstream* stream ) : dxfWriter( stream ) {}
virtual ~dxfWriterAscii() {}
- virtual bool writeString( int code, std::string text );
- virtual bool writeInt16( int code, int data );
- virtual bool writeInt32( int code, int data );
- virtual bool writeInt64( int code, unsigned long long int data );
- virtual bool writeDouble( int code, double data );
- virtual bool writeBool( int code, bool data );
+ virtual bool writeString( int code, std::string text ) override;
+ virtual bool writeInt16( int code, int data ) override;
+ virtual bool writeInt32( int code, int data ) override;
+ virtual bool writeInt64( int code, unsigned long long int data ) override;
+ virtual bool writeDouble( int code, double data ) override;
+ virtual bool writeBool( int code, bool data ) override;
};
#endif // DXFWRITER_H
diff --git a/pagelayout_editor/class_pl_editor_screen.h b/pagelayout_editor/class_pl_editor_screen.h
index 957180f34a..cc9b744335 100644
--- a/pagelayout_editor/class_pl_editor_screen.h
+++ b/pagelayout_editor/class_pl_editor_screen.h
@@ -48,14 +48,14 @@ public:
~PL_EDITOR_SCREEN();
- virtual int MilsToIuScalar();
+ virtual int MilsToIuScalar() override;
/**
* Function ClearUndoORRedoList
* virtual pure in BASE_SCREEN, so it must be defined here
*/
- void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 );
+ void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 ) override;
/**
* Function GetCurItem
* returns the currently selected WORKSHEET_DATAITEM, overriding
diff --git a/pagelayout_editor/design_tree_frame.h b/pagelayout_editor/design_tree_frame.h
index 1ff901e292..3676695668 100644
--- a/pagelayout_editor/design_tree_frame.h
+++ b/pagelayout_editor/design_tree_frame.h
@@ -82,7 +82,7 @@ public:
~DESIGN_TREE_FRAME();
void ReCreateDesignTree();
- wxSize GetMinSize() const;
+ wxSize GetMinSize() const override;
/** @return the page layout item managed by the cell
*/
diff --git a/pagelayout_editor/dialogs/dialog_new_dataitem.cpp b/pagelayout_editor/dialogs/dialog_new_dataitem.cpp
index 12a6744bf3..7c71cee414 100644
--- a/pagelayout_editor/dialogs/dialog_new_dataitem.cpp
+++ b/pagelayout_editor/dialogs/dialog_new_dataitem.cpp
@@ -43,8 +43,8 @@ public:
DIALOG_NEW_DATAITEM( PL_EDITOR_FRAME* aCaller, WORKSHEET_DATAITEM* aItem );
private:
- void OnCancelClick( wxCommandEvent& event );
- void OnOKClick( wxCommandEvent& event );
+ void OnCancelClick( wxCommandEvent& event ) override;
+ void OnOKClick( wxCommandEvent& event ) override;
void initDlg();
};
diff --git a/pagelayout_editor/dialogs/dialogs_for_printing.cpp b/pagelayout_editor/dialogs/dialogs_for_printing.cpp
index 5ed93f4917..f04a8e11c8 100644
--- a/pagelayout_editor/dialogs/dialogs_for_printing.cpp
+++ b/pagelayout_editor/dialogs/dialogs_for_printing.cpp
@@ -55,9 +55,9 @@ public:
m_parent = aParent;
}
- bool OnPrintPage( int aPageNum );
+ bool OnPrintPage( int aPageNum ) override;
bool HasPage( int aPageNum ) { return ( aPageNum <= 2 ); }
- void GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo );
+ void GetPageInfo( int* minPage, int* maxPage, int* selPageFrom, int* selPageTo ) override;
void DrawPage( int aPageNum );
};
diff --git a/pagelayout_editor/pl_editor.cpp b/pagelayout_editor/pl_editor.cpp
index c55f9aabb6..479b0721b5 100644
--- a/pagelayout_editor/pl_editor.cpp
+++ b/pagelayout_editor/pl_editor.cpp
@@ -51,9 +51,9 @@ static struct IFACE : public KIFACE_I
KIFACE_I( aName, aType )
{}
- bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits );
+ bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override;
- void OnKifaceEnd();
+ void OnKifaceEnd() override;
wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 )
{
diff --git a/pagelayout_editor/pl_editor_frame.h b/pagelayout_editor/pl_editor_frame.h
index 12e44b6da5..bcb4bbd035 100644
--- a/pagelayout_editor/pl_editor_frame.h
+++ b/pagelayout_editor/pl_editor_frame.h
@@ -104,10 +104,10 @@ public:
void OnCloseWindow( wxCloseEvent& Event );
// Virtual basic functions:
- void RedrawActiveWindow( wxDC* DC, bool EraseBg );
- void ReCreateHToolbar();
+ void RedrawActiveWindow( wxDC* DC, bool EraseBg ) override;
+ void ReCreateHToolbar() override;
- void SetPageSettings(const PAGE_INFO&);
+ void SetPageSettings(const PAGE_INFO&) override;
const PAGE_INFO& GetPageSettings () const; // overload EDA_DRAW_FRAME
const wxSize GetPageSizeIU() const; // overload EDA_DRAW_FRAME
@@ -117,7 +117,7 @@ public:
* level indicator in dialogs.
* Virtual from the base class
*/
- const wxString GetZoomLevelIndicator() const;
+ const wxString GetZoomLevelIndicator() const override;
PL_EDITOR_SCREEN* GetScreen() const // overload EDA_DRAW_FRAME
{
@@ -155,7 +155,7 @@ public:
* creates or updates the right vertical toolbar.
* @note This is currently not used.
*/
- void ReCreateVToolbar();
+ void ReCreateVToolbar() override;
/**
* Create or update the left vertical toolbar (option toolbar
@@ -163,11 +163,11 @@ public:
*/
void ReCreateOptToolbar();
- void ReCreateMenuBar();
- void OnLeftClick( wxDC* aDC, const wxPoint& aMousePos );
- void OnLeftDClick( wxDC* aDC, const wxPoint& aMousePos );
- bool OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu );
- double BestZoom();
+ void ReCreateMenuBar() override;
+ void OnLeftClick( wxDC* aDC, const wxPoint& aMousePos ) override;
+ void OnLeftDClick( wxDC* aDC, const wxPoint& aMousePos ) override;
+ bool OnRightClick( const wxPoint& aMousePos, wxMenu* aPopMenu ) override;
+ double BestZoom() override;
// Events created by clicking on the design tree list:
void OnTreeSelection( wxTreeEvent& event );
@@ -237,13 +237,13 @@ public:
* returns the block command (BLOCK_MOVE, BLOCK_COPY...) corresponding to
* the \a aKey (ALT, SHIFT ALT ..)
*/
- virtual int BlockCommand( EDA_KEY key );
+ virtual int BlockCommand( EDA_KEY key ) override;
/**
* Function HandleBlockPlace
* handles the block place command.
*/
- virtual void HandleBlockPlace( wxDC* DC );
+ virtual void HandleBlockPlace( wxDC* DC ) override;
/**
* Function HandleBlockEnd( )
@@ -256,7 +256,7 @@ public:
* @return false if no item selected, or command finished,
* true if some items found and HandleBlockPlace must be called later.
*/
- virtual bool HandleBlockEnd( wxDC* DC );
+ virtual bool HandleBlockEnd( wxDC* DC ) override;
/**
* Function Block_Move
@@ -275,7 +275,7 @@ public:
void OnQuit( wxCommandEvent& event );
///> @copydoc EDA_DRAW_FRAME::GetHotKeyDescription()
- EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const;
+ EDA_HOTKEY* GetHotKeyDescription( int aCommand ) const override;
/**
* Function OnHotKey.
@@ -286,7 +286,7 @@ public:
* @param aPosition The cursor position in logical (drawing) units.
* @param aItem = NULL or pointer on a EDA_ITEM under the mouse cursor
*/
- bool OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosition, EDA_ITEM* aItem = NULL );
+ bool OnHotKey( wxDC* aDC, int aHotkeyCode, const wxPoint& aPosition, EDA_ITEM* aItem = NULL ) override;
void Process_Settings( wxCommandEvent& event );
void Process_Config( wxCommandEvent& event );
@@ -305,7 +305,7 @@ public:
void ToPrinter( wxCommandEvent& event );
void Files_io( wxCommandEvent& event );
- bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 );
+ bool GeneralControl( wxDC* aDC, const wxPoint& aPosition, EDA_KEY aHotKey = 0 ) override;
/** Virtual function PrintPage
* used to print a page
diff --git a/pagelayout_editor/properties_frame.h b/pagelayout_editor/properties_frame.h
index 208bdc1d26..7cb130ba9c 100644
--- a/pagelayout_editor/properties_frame.h
+++ b/pagelayout_editor/properties_frame.h
@@ -48,8 +48,8 @@ public:
~PROPERTIES_FRAME();
// Event functions
- void OnAcceptPrms( wxCommandEvent& event );
- void OnSetDefaultValues( wxCommandEvent& event );
+ void OnAcceptPrms( wxCommandEvent& event ) override;
+ void OnSetDefaultValues( wxCommandEvent& event ) override;
// Data transfert from general properties to widgets
@@ -64,7 +64,7 @@ public:
// Data transfert from widgets in properties frame to item
bool CopyPrmsFromPanelToItem( WORKSHEET_DATAITEM* aItem );
- wxSize GetMinSize() const;
+ wxSize GetMinSize() const override;
};
#endif /* _PROPERTIES_FRAME_H */
diff --git a/pcb_calculator/UnitSelector.h b/pcb_calculator/UnitSelector.h
index d5adea0602..c402624b05 100644
--- a/pcb_calculator/UnitSelector.h
+++ b/pcb_calculator/UnitSelector.h
@@ -70,7 +70,7 @@ public:
* @return the scaling factor to convert users units
* to normalized units (meter)
*/
- virtual double GetUnitScale();
+ virtual double GetUnitScale() override;
};
class UNIT_SELECTOR_THICKNESS: public UNIT_SELECTOR
@@ -85,7 +85,7 @@ public:
* @return the scaling factor to convert users units
* to normalized units (meter) including oz/ft^2
*/
- virtual double GetUnitScale();
+ virtual double GetUnitScale() override;
};
class UNIT_SELECTOR_FREQUENCY: public UNIT_SELECTOR
@@ -100,7 +100,7 @@ public:
* @return the scaling factor to convert users units
* to normalized units (Hz)
*/
- virtual double GetUnitScale();
+ virtual double GetUnitScale() override;
};
class UNIT_SELECTOR_ANGLE: public UNIT_SELECTOR
@@ -115,7 +115,7 @@ public:
* @return the scaling factor to convert users units
* to normalized units (Hz)
*/
- virtual double GetUnitScale();
+ virtual double GetUnitScale() override;
};
class UNIT_SELECTOR_RESISTOR: public UNIT_SELECTOR
@@ -130,7 +130,7 @@ public:
* @return the scaling factor to convert users units
* to normalized units (Hz)
*/
- virtual double GetUnitScale();
+ virtual double GetUnitScale() override;
};
#endif // _UnitSelector_h_
diff --git a/pcb_calculator/attenuators/attenuator_classes.h b/pcb_calculator/attenuators/attenuator_classes.h
index 7e8e895403..34a8517b6b 100644
--- a/pcb_calculator/attenuators/attenuator_classes.h
+++ b/pcb_calculator/attenuators/attenuator_classes.h
@@ -79,7 +79,7 @@ class ATTENUATOR_PI : public ATTENUATOR
public:
ATTENUATOR_PI();
~ATTENUATOR_PI(){};
- virtual bool Calculate();
+ virtual bool Calculate() override;
};
class ATTENUATOR_TEE : public ATTENUATOR
@@ -87,7 +87,7 @@ class ATTENUATOR_TEE : public ATTENUATOR
public:
ATTENUATOR_TEE();
~ATTENUATOR_TEE(){};
- virtual bool Calculate();
+ virtual bool Calculate() override;
};
class ATTENUATOR_BRIDGE : public ATTENUATOR
@@ -95,7 +95,7 @@ class ATTENUATOR_BRIDGE : public ATTENUATOR
public:
ATTENUATOR_BRIDGE();
~ATTENUATOR_BRIDGE(){};
- virtual bool Calculate();
+ virtual bool Calculate() override;
};
class ATTENUATOR_SPLITTER : public ATTENUATOR
@@ -103,7 +103,7 @@ class ATTENUATOR_SPLITTER : public ATTENUATOR
public:
ATTENUATOR_SPLITTER();
~ATTENUATOR_SPLITTER(){};
- virtual bool Calculate();
+ virtual bool Calculate() override;
};
#endif // ATTENUATORFUNC_H
diff --git a/pcb_calculator/pcb_calculator.cpp b/pcb_calculator/pcb_calculator.cpp
index 384bc8ed20..70854bc52c 100644
--- a/pcb_calculator/pcb_calculator.cpp
+++ b/pcb_calculator/pcb_calculator.cpp
@@ -55,9 +55,9 @@ static struct IFACE : public KIFACE_I
KIFACE_I( aName, aType )
{}
- bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits );
+ bool OnKifaceStart( PGM_BASE* aProgram, int aCtlBits ) override;
- void OnKifaceEnd();
+ void OnKifaceEnd() override;
wxWindow* CreateWindow( wxWindow* aParent, int aClassId, KIWAY* aKiway, int aCtlBits = 0 )
{
diff --git a/pcb_calculator/pcb_calculator.h b/pcb_calculator/pcb_calculator.h
index 3c685cbd0a..b4389f101e 100644
--- a/pcb_calculator/pcb_calculator.h
+++ b/pcb_calculator/pcb_calculator.h
@@ -78,16 +78,16 @@ public:
private:
// Event handlers
- void OnClosePcbCalc( wxCloseEvent& event );
+ void OnClosePcbCalc( wxCloseEvent& event ) override;
// These 3 functions are called by the OnPaint event, to draw
// icons that show the current item on the specific panels
- void OnPaintTranslinePanel( wxPaintEvent& event );
- void OnPaintAttenuatorPanel( wxPaintEvent& event );
+ void OnPaintTranslinePanel( wxPaintEvent& event ) override;
+ void OnPaintAttenuatorPanel( wxPaintEvent& event ) override;
// Config read-write, virtual from EDA_BASE_FRAME
- void LoadSettings( wxConfigBase* aCfg );
- void SaveSettings( wxConfigBase* aCfg );
+ void LoadSettings( wxConfigBase* aCfg ) override;
+ void SaveSettings( wxConfigBase* aCfg ) override;
// R/W data files:
bool ReadDataFile();
@@ -124,28 +124,28 @@ private:
* Called when the user changes the general parameters (i.e., anything that
* is not one of the controlling values). This update the calculations.
*/
- void OnTWParametersChanged( wxCommandEvent& event );
+ void OnTWParametersChanged( wxCommandEvent& event ) override;
/**
* Function OnTWCalculateFromCurrent
* Called when the user changes the desired maximum current. This sets the
* current as the controlling value and performs the calculations.
*/
- void OnTWCalculateFromCurrent( wxCommandEvent& event );
+ void OnTWCalculateFromCurrent( wxCommandEvent& event ) override;
/**
* Function OnTWCalculateFromExtWidth
* Called when the user changes the desired external trace width. This sets
* the external width as the controlling value and performs the calculations.
*/
- void OnTWCalculateFromExtWidth( wxCommandEvent& event );
+ void OnTWCalculateFromExtWidth( wxCommandEvent& event ) override;
/**
* Function OnTWCalculateFromIntWidth
* Called when the user changes the desired internal trace width. This sets
* the internal width as the controlling value and performs the calculations.
*/
- void OnTWCalculateFromIntWidth( wxCommandEvent& event );
+ void OnTWCalculateFromIntWidth( wxCommandEvent& event ) override;
/**
* Function TWCalculateWidth
@@ -177,8 +177,8 @@ private:
void TWUpdateModeDisplay();
// Electrical spacing panel:
- void OnElectricalSpacingUnitsSelection( wxCommandEvent& event );
- void OnElectricalSpacingRefresh( wxCommandEvent& event );
+ void OnElectricalSpacingUnitsSelection( wxCommandEvent& event ) override;
+ void OnElectricalSpacingRefresh( wxCommandEvent& event ) override;
void ElectricalSpacingUpdateData( double aUnitScale );
// Transline functions:
@@ -186,42 +186,42 @@ private:
* Function OnTranslineSelection
* Called on new transmission line selection
*/
- void OnTranslineSelection( wxCommandEvent& event );
+ void OnTranslineSelection( wxCommandEvent& event ) override;
/**
* Function OnTranslineAnalyse
* Run a new analyse for the current transline with current parameters
* and displays the electrical parmeters
*/
- void OnTranslineAnalyse( wxCommandEvent& event );
+ void OnTranslineAnalyse( wxCommandEvent& event ) override;
/**
* Function OnTranslineSynthetize
* Run a new synthezis for the current transline with current parameters
* and displays the geometrical parmeters
*/
- void OnTranslineSynthetize( wxCommandEvent& event );
+ void OnTranslineSynthetize( wxCommandEvent& event ) override;
/**
* Function OnTranslineEpsilonR_Button
* Shows a list of current relative dielectric constant(Er)
* and set the selected value in main dialog frame
*/
- void OnTranslineEpsilonR_Button( wxCommandEvent& event );
+ void OnTranslineEpsilonR_Button( wxCommandEvent& event ) override;
/**
* Function OnTranslineTanD_Button
* Shows a list of current dielectric loss factor (tangent delta)
* and set the selected value in main dialog frame
*/
- void OnTranslineTanD_Button( wxCommandEvent& event );
+ void OnTranslineTanD_Button( wxCommandEvent& event ) override;
/**
* Function OnTranslineRho_Button
* Shows a list of current Specific resistance list (rho)
* and set the selected value in main dialog frame
*/
- void OnTranslineRho_Button( wxCommandEvent& event );
+ void OnTranslineRho_Button( wxCommandEvent& event ) override;
/**
* Function TranslineTypeSelection
@@ -241,25 +241,25 @@ private:
void TransfDlgDataToTranslineParams();
// Color Code panel
- void OnToleranceSelection( wxCommandEvent& event );
+ void OnToleranceSelection( wxCommandEvent& event ) override;
void ToleranceSelection( int aSelection );
// Attenuators Panel
- void OnAttenuatorSelection( wxCommandEvent& event );
+ void OnAttenuatorSelection( wxCommandEvent& event ) override;
void SetAttenuator( unsigned aIdx );
- void OnCalculateAttenuator( wxCommandEvent& event );
+ void OnCalculateAttenuator( wxCommandEvent& event ) override;
void TransfPanelDataToAttenuator();
void TransfAttenuatorDataToPanel();
void TransfAttenuatorResultsToPanel();
// Regulators Panel
- void OnRegulatorCalcButtonClick( wxCommandEvent& event );
- void OnRegulTypeSelection( wxCommandEvent& event );
- void OnRegulatorSelection( wxCommandEvent& event );
- void OnDataFileSelection( wxCommandEvent& event );
- void OnAddRegulator( wxCommandEvent& event );
- void OnEditRegulator( wxCommandEvent& event );
- void OnRemoveRegulator( wxCommandEvent& event );
+ void OnRegulatorCalcButtonClick( wxCommandEvent& event ) override;
+ void OnRegulTypeSelection( wxCommandEvent& event ) override;
+ void OnRegulatorSelection( wxCommandEvent& event ) override;
+ void OnDataFileSelection( wxCommandEvent& event ) override;
+ void OnAddRegulator( wxCommandEvent& event ) override;
+ void OnEditRegulator( wxCommandEvent& event ) override;
+ void OnRemoveRegulator( wxCommandEvent& event ) override;
/**
* Function RegulatorPageUpdate:
@@ -315,7 +315,7 @@ public:
bool IsPrmSelected( enum PRMS_ID aPrmId );
// Board classes panel:
- void OnBoardClassesUnitsSelection( wxCommandEvent& event );
+ void OnBoardClassesUnitsSelection( wxCommandEvent& event ) override;
void BoardClassesUpdateData( double aUnitScale );
};
diff --git a/pcb_calculator/regulators_funct.cpp b/pcb_calculator/regulators_funct.cpp
index 0d957031d2..6c28fbcc7c 100644
--- a/pcb_calculator/regulators_funct.cpp
+++ b/pcb_calculator/regulators_funct.cpp
@@ -49,7 +49,7 @@ public:
~DIALOG_EDITOR_DATA() {};
// Event called functions:
- void OnOKClick( wxCommandEvent& event );
+ void OnOKClick( wxCommandEvent& event ) override;
/**
* Function IsOK()
diff --git a/pcb_calculator/transline/c_microstrip.h b/pcb_calculator/transline/c_microstrip.h
index ac348a9835..01ee17c66c 100644
--- a/pcb_calculator/transline/c_microstrip.h
+++ b/pcb_calculator/transline/c_microstrip.h
@@ -59,8 +59,8 @@ private:
double atten_cond_o; // odd-mode conductors losses (dB)
public:
- void analyze();
- void synthesize();
+ void analyze() override;
+ void synthesize() override;
private:
double delta_u_thickness_single( double, double );
diff --git a/pcb_calculator/transline/coax.h b/pcb_calculator/transline/coax.h
index b4c301f74d..07a2d16ad8 100644
--- a/pcb_calculator/transline/coax.h
+++ b/pcb_calculator/transline/coax.h
@@ -41,8 +41,8 @@ private:
double fc; // Cutoff frequency for higher order modes
public:
- void analyze();
- void synthesize();
+ void analyze() override;
+ void synthesize() override;
private:
void get_coax_sub();
diff --git a/pcb_calculator/transline/coplanar.h b/pcb_calculator/transline/coplanar.h
index 0d96f45c5d..d51411ad97 100644
--- a/pcb_calculator/transline/coplanar.h
+++ b/pcb_calculator/transline/coplanar.h
@@ -42,8 +42,8 @@ private:
double atten_cond; // Loss in conductors (dB)
public:
- void analyze();
- void synthesize();
+ void analyze() override;
+ void synthesize() override;
protected:
bool backMetal;
diff --git a/pcb_calculator/transline/microstrip.h b/pcb_calculator/transline/microstrip.h
index 8f2737b3c1..ec06936ff6 100644
--- a/pcb_calculator/transline/microstrip.h
+++ b/pcb_calculator/transline/microstrip.h
@@ -53,8 +53,8 @@ private:
double Z0_h_1; // homogeneous stripline impedance
public:
- void analyze();
- void synthesize();
+ void analyze() override;
+ void synthesize() override;
private:
double er_eff_freq();
diff --git a/pcb_calculator/transline/rectwaveguide.h b/pcb_calculator/transline/rectwaveguide.h
index 58d5ce450e..466accdc8b 100644
--- a/pcb_calculator/transline/rectwaveguide.h
+++ b/pcb_calculator/transline/rectwaveguide.h
@@ -45,8 +45,8 @@ private:
double fc10; // Cutoff frequency for TE10 mode
public:
- void analyze();
- void synthesize();
+ void analyze() override;
+ void synthesize() override;
private:
double kval_square();
diff --git a/pcb_calculator/transline/stripline.h b/pcb_calculator/transline/stripline.h
index 628e1e2be4..300885f420 100644
--- a/pcb_calculator/transline/stripline.h
+++ b/pcb_calculator/transline/stripline.h
@@ -41,8 +41,8 @@ private:
double atten_cond; // loss in conductors (dB)
public:
- void analyze();
- void synthesize();
+ void analyze() override;
+ void synthesize() override;
private:
double lineImpedance( double, double& );
diff --git a/pcb_calculator/transline/twistedpair.h b/pcb_calculator/transline/twistedpair.h
index b38b88fcba..d41361f334 100644
--- a/pcb_calculator/transline/twistedpair.h
+++ b/pcb_calculator/transline/twistedpair.h
@@ -41,8 +41,8 @@ private:
double atten_cond; // Loss in conductors (dB)
public:
- void analyze();
- void synthesize();
+ void analyze() override;
+ void synthesize() override;
private:
void calc();
diff --git a/pcbnew/block.cpp b/pcbnew/block.cpp
index 68c4b0db62..7d8fbb4edf 100644
--- a/pcbnew/block.cpp
+++ b/pcbnew/block.cpp
@@ -102,7 +102,7 @@ public:
private:
- void ExecuteCommand( wxCommandEvent& event );
+ void ExecuteCommand( wxCommandEvent& event ) override;
void OnCancel( wxCommandEvent& event )
{
EndModal( wxID_CANCEL );
diff --git a/pcbnew/board_commit.h b/pcbnew/board_commit.h
index 7f4d09db15..2dbcddf5a0 100644
--- a/pcbnew/board_commit.h
+++ b/pcbnew/board_commit.h
@@ -40,13 +40,13 @@ public:
BOARD_COMMIT( PCB_BASE_FRAME* aFrame );
virtual ~BOARD_COMMIT();
- virtual void Push( const wxString& aMessage );
- virtual void Revert();
+ virtual void Push( const wxString& aMessage ) override;
+ virtual void Revert() override;
private:
TOOL_MANAGER* m_toolMgr;
bool m_editModules;
- virtual EDA_ITEM* parentObject( EDA_ITEM* aItem ) const;
+ virtual EDA_ITEM* parentObject( EDA_ITEM* aItem ) const override;
};
#endif
diff --git a/pcbnew/class_board.h b/pcbnew/class_board.h
index 89bd4d081a..8e1f11f457 100644
--- a/pcbnew/class_board.h
+++ b/pcbnew/class_board.h
@@ -257,9 +257,9 @@ public:
BOARD();
~BOARD();
- virtual const wxPoint& GetPosition() const;
+ virtual const wxPoint& GetPosition() const override;
- virtual void SetPosition( const wxPoint& aPos );
+ virtual void SetPosition( const wxPoint& aPos ) override;
bool IsEmpty() const
{
@@ -267,7 +267,7 @@ public:
m_Track.GetCount() == 0 && m_Zone.GetCount() == 0;
}
- void Move( const wxPoint& aMoveVector ); // overload
+ void Move( const wxPoint& aMoveVector ) override;
void SetFileFormatVersionAtLoad( int aVersion ) { m_fileFormatVersionAtLoad = aVersion; }
int GetFileFormatVersionAtLoad() const { return m_fileFormatVersionAtLoad; }
@@ -833,11 +833,11 @@ public:
* as long as the BOARD has not changed. Remember, ComputeBoundingBox()'s
* aBoardEdgesOnly argument is considered in this return value also.
*/
- const EDA_RECT GetBoundingBox() const { return m_BoundingBox; } // override
+ const EDA_RECT GetBoundingBox() const override { return m_BoundingBox; }
void SetBoundingBox( const EDA_RECT& aBox ) { m_BoundingBox = aBox; }
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
/**
* Function Draw.
@@ -848,7 +848,7 @@ public:
* @param aOffset = an draw offset value (default = 0,0)
*/
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
- GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset );
+ GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset ) override;
/**
* Function DrawHighLight
@@ -951,13 +951,13 @@ public:
/***************************************************************************/
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "BOARD" );
}
#if defined(DEBUG)
- void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
diff --git a/pcbnew/class_board_connected_item.h b/pcbnew/class_board_connected_item.h
index 6687f0ab3a..a4e30425c4 100644
--- a/pcbnew/class_board_connected_item.h
+++ b/pcbnew/class_board_connected_item.h
@@ -78,7 +78,7 @@ public:
}
///> @copydoc BOARD_ITEM::IsConnected()
- bool IsConnected() const
+ bool IsConnected() const override
{
return true;
}
diff --git a/pcbnew/class_dimension.h b/pcbnew/class_dimension.h
index bb444a63ce..62bf204638 100644
--- a/pcbnew/class_dimension.h
+++ b/pcbnew/class_dimension.h
@@ -87,16 +87,16 @@ public:
int GetValue() const { return m_Value; }
- const wxPoint& GetPosition() const;
+ const wxPoint& GetPosition() const override;
- void SetPosition( const wxPoint& aPos ); // override, sets m_Text's position too
+ void SetPosition( const wxPoint& aPos ) override;
void SetTextSize( const wxSize& aTextSize )
{
m_Text.SetSize( aTextSize );
}
- void SetLayer( LAYER_ID aLayer );
+ void SetLayer( LAYER_ID aLayer ) override;
void SetShape( int aShape ) { m_Shape = aShape; }
int GetShape() const { return m_Shape; }
@@ -184,17 +184,17 @@ public:
TEXTE_PCB& Text() const { return *(const_cast (&m_Text)); }
void Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
- GR_DRAWMODE aColorMode, const wxPoint& offset = ZeroOffset );
+ GR_DRAWMODE aColorMode, const wxPoint& offset = ZeroOffset ) override;
/**
* Function Move
* @param offset : moving vector
*/
- void Move( const wxPoint& offset );
+ void Move( const wxPoint& offset ) override;
- void Rotate( const wxPoint& aRotCentre, double aAngle );
+ void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
- void Flip( const wxPoint& aCentre );
+ void Flip( const wxPoint& aCentre ) override;
/**
* Function Mirror
@@ -205,34 +205,34 @@ public:
*/
void Mirror( const wxPoint& axis_pos );
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
/** @copydoc BOARD_ITEM::HitTest(const EDA_RECT& aRect,
* bool aContained = true, int aAccuracy ) const
*/
- bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const override;
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "DIMENSION" );
}
// Virtual function
- const EDA_RECT GetBoundingBox() const;
+ const EDA_RECT GetBoundingBox() const override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const { return add_dimension_xpm; }
+ BITMAP_DEF GetMenuImage() const override { return add_dimension_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
/// @copydoc VIEW_ITEM::ViewBBox()
- virtual const BOX2I ViewBBox() const;
+ virtual const BOX2I ViewBBox() const override;
#if defined(DEBUG)
- virtual void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ virtual void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
};
diff --git a/pcbnew/class_drawsegment.h b/pcbnew/class_drawsegment.h
index db8f3c8b18..989bb891fd 100644
--- a/pcbnew/class_drawsegment.h
+++ b/pcbnew/class_drawsegment.h
@@ -98,8 +98,8 @@ public:
void SetBezControl2( const wxPoint& aPoint ) { m_BezierC2 = aPoint; }
const wxPoint& GetBezControl2() const { return m_BezierC2; }
- void SetPosition( const wxPoint& aPos ) { m_Start = aPos; } // override
- const wxPoint& GetPosition() const { return m_Start; } // override
+ void SetPosition( const wxPoint& aPos ) override { m_Start = aPos; }
+ const wxPoint& GetPosition() const override { return m_Start; }
/**
* Function GetStart
@@ -123,7 +123,7 @@ public:
// m_Start, m_End, and m_Angle.
// No Set...() function for these attributes.
- const wxPoint GetCenter() const; //override
+ const wxPoint GetCenter() const override;
const wxPoint& GetArcStart() const { return m_End; }
const wxPoint GetArcEnd() const;
@@ -180,20 +180,20 @@ public:
}
void Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
- GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset );
+ GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset ) override;
- virtual void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ virtual void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- virtual const EDA_RECT GetBoundingBox() const;
+ virtual const EDA_RECT GetBoundingBox() const override;
- virtual bool HitTest( const wxPoint& aPosition ) const;
+ virtual bool HitTest( const wxPoint& aPosition ) const override;
/** @copydoc BOARD_ITEM::HitTest(const EDA_RECT& aRect,
* bool aContained = true, int aAccuracy ) const
*/
- bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const override;
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "DRAWSEGMENT" );
}
@@ -208,15 +208,15 @@ public:
return GetLineLength( GetStart(), GetEnd() );
}
- virtual void Move( const wxPoint& aMoveVector )
+ virtual void Move( const wxPoint& aMoveVector ) override
{
m_Start += aMoveVector;
m_End += aMoveVector;
}
- virtual void Rotate( const wxPoint& aRotCentre, double aAngle );
+ virtual void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
- virtual void Flip( const wxPoint& aCentre );
+ virtual void Flip( const wxPoint& aCentre ) override;
/**
* Function TransformShapeWithClearanceToPolygon
@@ -235,17 +235,17 @@ public:
int aCircleToSegmentsCount,
double aCorrectionFactor ) const;
- virtual wxString GetSelectMenuText() const;
+ virtual wxString GetSelectMenuText() const override;
- virtual BITMAP_DEF GetMenuImage() const { return add_dashed_line_xpm; }
+ virtual BITMAP_DEF GetMenuImage() const override { return add_dashed_line_xpm; }
- virtual EDA_ITEM* Clone() const;
+ virtual EDA_ITEM* Clone() const override;
/// @copydoc VIEW_ITEM::ViewBBox()
- virtual const BOX2I ViewBBox() const;
+ virtual const BOX2I ViewBBox() const override;
#if defined(DEBUG)
- void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
};
diff --git a/pcbnew/class_edge_mod.h b/pcbnew/class_edge_mod.h
index c89e1c7452..658828609c 100644
--- a/pcbnew/class_edge_mod.h
+++ b/pcbnew/class_edge_mod.h
@@ -61,7 +61,7 @@ public:
* This is a footprint shape modification.
* (should be only called by a footprint editing function)
*/
- void Move( const wxPoint& aMoveVector );
+ void Move( const wxPoint& aMoveVector ) override;
/**
* Mirror an edge of the footprint.
@@ -76,7 +76,7 @@ public:
* This is a footprint shape modification.
* (should be only called by a footprint editing function )
*/
- void Rotate( const wxPoint& aRotCentre, double aAngle );
+ void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
/**
* Flip entity relative to aCentre.
@@ -86,7 +86,7 @@ public:
* not usual to flip an item alone, without flipping the parent footprint.
* (consider Mirror for a mirror transform).
*/
- void Flip( const wxPoint& aCentre );
+ void Flip( const wxPoint& aCentre ) override;
void SetStart0( const wxPoint& aPoint ) { m_Start0 = aPoint; }
const wxPoint& GetStart0() const { return m_Start0; }
@@ -113,18 +113,18 @@ public:
void Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
GR_DRAWMODE aDrawMode, const wxPoint& offset = ZeroOffset );
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
wxString GetClass() const
{
return wxT( "MGRAPHIC" );
}
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
BITMAP_DEF GetMenuImage() const { return show_mod_edge_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
diff --git a/pcbnew/class_marker_pcb.h b/pcbnew/class_marker_pcb.h
index e524ae7a73..187aab640f 100644
--- a/pcbnew/class_marker_pcb.h
+++ b/pcbnew/class_marker_pcb.h
@@ -70,23 +70,23 @@ public:
~MARKER_PCB();
- void Move(const wxPoint& aMoveVector)
+ void Move(const wxPoint& aMoveVector) override
{
m_Pos += aMoveVector;
}
- void Rotate( const wxPoint& aRotCentre, double aAngle );
+ void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
- void Flip( const wxPoint& aCentre );
+ void Flip( const wxPoint& aCentre ) override;
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
- GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset )
+ GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset ) override
{
DrawMarker( aPanel, aDC, aDrawMode, aOffset );
}
- const wxPoint& GetPosition() const { return m_Pos; }
- void SetPosition( const wxPoint& aPos ) { m_Pos = aPos; }
+ const wxPoint& GetPosition() const override { return m_Pos; }
+ void SetPosition( const wxPoint& aPos ) override { m_Pos = aPos; }
void SetItem( const BOARD_ITEM* aItem )
{
@@ -98,36 +98,36 @@ public:
return m_item;
}
- bool HitTest( const wxPoint& aPosition ) const
+ bool HitTest( const wxPoint& aPosition ) const override
{
return HitTestMarker( aPosition );
}
- bool IsOnLayer( LAYER_ID aLayer ) const;
+ bool IsOnLayer( LAYER_ID aLayer ) const override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const { return drc_xpm; }
+ BITMAP_DEF GetMenuImage() const override { return drc_xpm; }
///> @copydoc VIEW_ITEM::ViewBBox()
- virtual const BOX2I ViewBBox() const
+ virtual const BOX2I ViewBBox() const override
{
return GetParent()->ViewBBox();
}
///> @copydoc VIEW_ITEM::ViewGetLayers()
- virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
+ virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
#if defined(DEBUG)
- void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
/** Get class name
* @return string "MARKER_PCB"
*/
- virtual wxString GetClass() const
+ virtual wxString GetClass() const override
{
return wxT( "MARKER_PCB" );
}
diff --git a/pcbnew/class_mire.h b/pcbnew/class_mire.h
index 18523b441d..8396ad8d57 100644
--- a/pcbnew/class_mire.h
+++ b/pcbnew/class_mire.h
@@ -59,8 +59,8 @@ public:
~PCB_TARGET();
- void SetPosition( const wxPoint& aPos ) { m_Pos = aPos; } // override
- const wxPoint& GetPosition() const { return m_Pos; } // override
+ void SetPosition( const wxPoint& aPos ) override { m_Pos = aPos; }
+ const wxPoint& GetPosition() const override { return m_Pos; }
void SetShape( int aShape ) { m_Shape = aShape; }
int GetShape() const { return m_Shape; }
@@ -71,21 +71,21 @@ public:
void SetWidth( int aWidth ) { m_Width = aWidth; }
int GetWidth() const { return m_Width; }
- void Move( const wxPoint& aMoveVector )
+ void Move( const wxPoint& aMoveVector ) override
{
m_Pos += aMoveVector;
}
- void Rotate( const wxPoint& aRotCentre, double aAngle );
+ void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
- void Flip( const wxPoint& aCentre );
+ void Flip( const wxPoint& aCentre ) override;
void Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
- GR_DRAWMODE aDrawMode, const wxPoint& offset = ZeroOffset );
+ GR_DRAWMODE aDrawMode, const wxPoint& offset = ZeroOffset ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "PCB_TARGET" );
}
@@ -93,19 +93,19 @@ public:
/** @copydoc BOARD_ITEM::HitTest(const EDA_RECT& aRect,
* bool aContained = true, int aAccuracy ) const
*/
- bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const override;
// Virtual function
- const EDA_RECT GetBoundingBox() const;
+ const EDA_RECT GetBoundingBox() const override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const { return add_mires_xpm; }
+ BITMAP_DEF GetMenuImage() const override { return add_mires_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
- void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
};
diff --git a/pcbnew/class_module.h b/pcbnew/class_module.h
index 715a8f6c85..66a8afee42 100644
--- a/pcbnew/class_module.h
+++ b/pcbnew/class_module.h
@@ -124,7 +124,7 @@ public:
EDA_RECT GetFootprintRect() const;
// Virtual function
- const EDA_RECT GetBoundingBox() const;
+ const EDA_RECT GetBoundingBox() const override;
DLIST& Pads() { return m_Pads; }
const DLIST& Pads() const { return m_Pads; }
@@ -135,8 +135,8 @@ public:
std::list& Models() { return m_3D_Drawings; }
const std::list& Models() const { return m_3D_Drawings; }
- void SetPosition( const wxPoint& aPos ); // was overload
- const wxPoint& GetPosition() const { return m_Pos; } // was overload
+ void SetPosition( const wxPoint& aPos ) override;
+ const wxPoint& GetPosition() const override { return m_Pos; }
void SetOrientation( double newangle );
void SetOrientationDegrees( double aOrientation ) { SetOrientation( aOrientation*10.0 ); }
@@ -184,11 +184,11 @@ public:
void IncrementFlag() { m_arflag += 1; }
int GetFlag() const { return m_arflag; }
- void Move( const wxPoint& aMoveVector );
+ void Move( const wxPoint& aMoveVector ) override;
- void Rotate( const wxPoint& aRotCentre, double aAngle );
+ void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
- void Flip( const wxPoint& aCentre );
+ void Flip( const wxPoint& aCentre ) override;
/**
* Function MoveAnchorPosition
@@ -216,7 +216,7 @@ public:
#define MODULE_PADS_LOCKED 0x08 ///< In autoplace: module waiting for autoplace
- bool IsLocked() const // override
+ bool IsLocked() const override
{
return ( m_ModuleStatus & MODULE_is_LOCKED ) != 0;
}
@@ -226,7 +226,7 @@ public:
* sets the MODULE_is_LOCKED bit in the m_ModuleStatus
* @param isLocked When true means turn on locked status, else unlock
*/
- void SetLocked( bool isLocked ) // override
+ void SetLocked( bool isLocked ) override
{
if( isLocked )
m_ModuleStatus |= MODULE_is_LOCKED;
@@ -279,7 +279,7 @@ public:
void Draw( EDA_DRAW_PANEL* aPanel,
wxDC* aDC,
GR_DRAWMODE aDrawMode,
- const wxPoint& aOffset = ZeroOffset );
+ const wxPoint& aOffset = ZeroOffset ) override;
/**
* Function DrawOutlinesWhenMoving
@@ -391,14 +391,14 @@ public:
const wxPoint& offset, int dim_ancre, GR_DRAWMODE draw_mode );
///> @copydoc EDA_ITEM::GetMsgPanelInfo
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
/** @copydoc BOARD_ITEM::HitTest(const EDA_RECT& aRect,
* bool aContained = true, int aAccuracy ) const
*/
- bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const;
+ bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const override;
/**
* Function GetReference
@@ -538,16 +538,16 @@ public:
SEARCH_RESULT Visit( INSPECTOR inspector, void* testData, const KICAD_T scanTypes[] ) override;
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "MODULE" );
}
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const { return module_xpm; }
+ BITMAP_DEF GetMenuImage() const override { return module_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
/**
* Function RunOnChildren
@@ -558,16 +558,16 @@ public:
void RunOnChildren( std::function aFunction );
/// @copydoc VIEW_ITEM::ViewUpdate()
- void ViewUpdate( int aUpdateFlags = KIGFX::VIEW_ITEM::ALL );
+ void ViewUpdate( int aUpdateFlags = KIGFX::VIEW_ITEM::ALL ) override;
/// @copydoc VIEW_ITEM::ViewGetLayers()
- virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
+ virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
/// @copydoc VIEW_ITEM::ViewGetLOD()
- virtual unsigned int ViewGetLOD( int aLayer ) const;
+ virtual unsigned int ViewGetLOD( int aLayer ) const override;
/// @copydoc VIEW_ITEM::ViewBBox()
- virtual const BOX2I ViewBBox() const;
+ virtual const BOX2I ViewBBox() const override;
/**
* Function CopyNetlistSettings
@@ -639,7 +639,7 @@ public:
const wxArrayString* GetInitialComments() const { return m_initial_comments; }
#if defined(DEBUG)
- virtual void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ virtual void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
private:
diff --git a/pcbnew/class_netinfo.h b/pcbnew/class_netinfo.h
index 8470eeadf1..3e30c0815b 100644
--- a/pcbnew/class_netinfo.h
+++ b/pcbnew/class_netinfo.h
@@ -169,22 +169,22 @@ public:
return aItem && PCB_T == aItem->Type();
}
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "NETINFO_ITEM" );
}
- void Show( int nestLevel, std::ostream& os ) const
+ void Show( int nestLevel, std::ostream& os ) const override
{
}
- const wxPoint& GetPosition() const
+ const wxPoint& GetPosition() const override
{
static wxPoint dummy(0, 0);
return dummy;
}
- void SetPosition( const wxPoint& aPos )
+ void SetPosition( const wxPoint& aPos ) override
{
}
@@ -301,7 +301,7 @@ public:
* a pads or net name on pad and vias
*/
void Draw( EDA_DRAW_PANEL* panel, wxDC* DC, GR_DRAWMODE aDrawMode,
- const wxPoint& offset );
+ const wxPoint& offset ) override;
/**
* Function GetNet
@@ -330,7 +330,7 @@ public:
*
* @param aList is the list in which to place the status information.
*/
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
/**
* Function Clear
diff --git a/pcbnew/class_pad.h b/pcbnew/class_pad.h
index 0c277b97c6..63798d66d2 100644
--- a/pcbnew/class_pad.h
+++ b/pcbnew/class_pad.h
@@ -154,8 +154,8 @@ public:
PAD_SHAPE_T GetShape() const { return m_padShape; }
void SetShape( PAD_SHAPE_T aShape ) { m_padShape = aShape; m_boundingRadius = -1; }
- void SetPosition( const wxPoint& aPos ) { m_Pos = aPos; } // was overload
- const wxPoint& GetPosition() const { return m_Pos; } // was overload
+ void SetPosition( const wxPoint& aPos ) override { m_Pos = aPos; }
+ const wxPoint& GetPosition() const override { return m_Pos; }
void SetY( int y ) { m_Pos.y = y; }
void SetX( int x ) { m_Pos.x = x; }
@@ -179,7 +179,7 @@ public:
const wxPoint& GetOffset() const { return m_Offset; }
- void Flip( const wxPoint& aCentre ); // Virtual function
+ void Flip( const wxPoint& aCentre ) override;
/**
@@ -220,7 +220,7 @@ public:
void GetOblongDrillGeometry( wxPoint& aStartPoint, wxPoint& aEndPoint, int& aWidth ) const;
void SetLayerSet( LSET aLayerMask ) { m_layerMask = aLayerMask; }
- LSET GetLayerSet() const { return m_layerMask; }
+ LSET GetLayerSet() const override { return m_layerMask; }
void SetAttribute( PAD_ATTR_T aAttribute );
PAD_ATTR_T GetAttribute() const { return m_Attribute; }
@@ -267,7 +267,7 @@ public:
* @param aItem is another BOARD_CONNECTED_ITEM or NULL
* @return int - the clearance in internal units.
*/
- int GetClearance( BOARD_CONNECTED_ITEM* aItem = NULL ) const;
+ int GetClearance( BOARD_CONNECTED_ITEM* aItem = NULL ) const override;
// Mask margins handling:
@@ -305,7 +305,7 @@ public:
/* drawing functions */
void Draw( EDA_DRAW_PANEL* aPanel, wxDC* aDC,
- GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset );
+ GR_DRAWMODE aDrawMode, const wxPoint& aOffset = ZeroOffset ) override;
/**
* Function DrawShape
@@ -462,22 +462,22 @@ public:
int GetSubRatsnest() const { return m_SubRatsnest; }
void SetSubRatsnest( int aSubRatsnest ) { m_SubRatsnest = aSubRatsnest; }
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool IsOnLayer( LAYER_ID aLayer ) const
+ bool IsOnLayer( LAYER_ID aLayer ) const override
{
return m_layerMask[aLayer];
}
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "PAD" );
}
// Virtual function:
- const EDA_RECT GetBoundingBox() const;
+ const EDA_RECT GetBoundingBox() const override;
///> Set absolute coordinates.
void SetDrawCoord();
@@ -492,17 +492,17 @@ public:
*/
static int Compare( const D_PAD* padref, const D_PAD* padcmp );
- void Move( const wxPoint& aMoveVector )
+ void Move( const wxPoint& aMoveVector ) override
{
m_Pos += aMoveVector;
SetLocalCoord();
}
- void Rotate( const wxPoint& aRotCentre, double aAngle );
+ void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const { return pad_xpm; }
+ BITMAP_DEF GetMenuImage() const override { return pad_xpm; }
/**
* Function ShowPadShape
@@ -524,7 +524,7 @@ public:
*/
void AppendConfigs( PARAM_CFG_ARRAY* aResult );
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
/**
* same as Clone, but returns a D_PAD item.
@@ -537,13 +537,13 @@ public:
}
/// @copydoc VIEW_ITEM::ViewGetLayers()
- virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
+ virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
/// @copydoc VIEW_ITEM::ViewGetLOD()
- virtual unsigned int ViewGetLOD( int aLayer ) const;
+ virtual unsigned int ViewGetLOD( int aLayer ) const override;
/// @copydoc VIEW_ITEM::ViewBBox()
- virtual const BOX2I ViewBBox() const;
+ virtual const BOX2I ViewBBox() const override;
/**
* Function CopyNetlistSettings
@@ -563,7 +563,7 @@ public:
void CopyNetlistSettings( D_PAD* aPad, bool aCopyLocalSettings );
#if defined(DEBUG)
- virtual void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ virtual void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
diff --git a/pcbnew/class_pcb_layer_box_selector.h b/pcbnew/class_pcb_layer_box_selector.h
index 196c891efd..fbcd30ada3 100644
--- a/pcbnew/class_pcb_layer_box_selector.h
+++ b/pcbnew/class_pcb_layer_box_selector.h
@@ -76,7 +76,7 @@ public:
// Reload the Layers names and bitmaps
// Virtual function
- void Resync();
+ void Resync() override;
// Allow (or not) the layers not activated for the current board to be shown
// in layer selector. Not actavated layers are flagged
@@ -89,15 +89,15 @@ public:
private:
// Returns a color index from the layer id
// Virtual function
- EDA_COLOR_T GetLayerColor( LAYER_NUM aLayer ) const;
+ EDA_COLOR_T GetLayerColor( LAYER_NUM aLayer ) const override;
// Returns true if the layer id is enabled (i.e. is it should be displayed)
// Virtual function
- bool IsLayerEnabled( LAYER_NUM aLayer ) const;
+ bool IsLayerEnabled( LAYER_NUM aLayer ) const override;
// Returns the name of the layer id
// Virtual function
- wxString GetLayerName( LAYER_NUM aLayer ) const;
+ wxString GetLayerName( LAYER_NUM aLayer ) const override;
LSET getEnabledLayers() const;
};
diff --git a/pcbnew/class_pcb_layer_widget.h b/pcbnew/class_pcb_layer_widget.h
index 7908d80e7b..26c4a0deaf 100644
--- a/pcbnew/class_pcb_layer_widget.h
+++ b/pcbnew/class_pcb_layer_widget.h
@@ -88,11 +88,11 @@ public:
void SetLayersManagerTabsText();
//----------------
- void OnLayerColorChange( int aLayer, EDA_COLOR_T aColor );
- bool OnLayerSelect( int aLayer );
- void OnLayerVisible( int aLayer, bool isVisible, bool isFinal );
- void OnRenderColorChange( int aId, EDA_COLOR_T aColor );
- void OnRenderEnable( int aId, bool isEnabled );
+ void OnLayerColorChange( int aLayer, EDA_COLOR_T aColor ) override;
+ bool OnLayerSelect( int aLayer ) override;
+ void OnLayerVisible( int aLayer, bool isVisible, bool isFinal ) override;
+ void OnRenderColorChange( int aId, EDA_COLOR_T aColor ) override;
+ void OnRenderEnable( int aId, bool isEnabled ) override;
//---------------
/**
diff --git a/pcbnew/class_pcb_text.h b/pcbnew/class_pcb_text.h
index d1120e7ea5..ff5009fe62 100644
--- a/pcbnew/class_pcb_text.h
+++ b/pcbnew/class_pcb_text.h
@@ -55,31 +55,31 @@ public:
return aItem && PCB_TEXT_T == aItem->Type();
}
- virtual const wxPoint& GetPosition() const
+ virtual const wxPoint& GetPosition() const override
{
return m_Pos;
}
- virtual void SetPosition( const wxPoint& aPos )
+ virtual void SetPosition( const wxPoint& aPos ) override
{
m_Pos = aPos;
}
- void Move( const wxPoint& aMoveVector )
+ void Move( const wxPoint& aMoveVector ) override
{
m_Pos += aMoveVector;
}
- void Rotate( const wxPoint& aRotCentre, double aAngle );
+ void Rotate( const wxPoint& aRotCentre, double aAngle ) override;
- void Flip( const wxPoint& aCentre );
+ void Flip( const wxPoint& aCentre ) override;
void Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
- GR_DRAWMODE aDrawMode, const wxPoint& offset = ZeroOffset );
+ GR_DRAWMODE aDrawMode, const wxPoint& offset = ZeroOffset ) override;
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool HitTest( const wxPoint& aPosition ) const
+ bool HitTest( const wxPoint& aPosition ) const override
{
return TextHitTest( aPosition );
}
@@ -87,12 +87,12 @@ public:
/** @copydoc BOARD_ITEM::HitTest(const EDA_RECT& aRect,
* bool aContained = true, int aAccuracy ) const
*/
- bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const
+ bool HitTest( const EDA_RECT& aRect, bool aContained = true, int aAccuracy = 0 ) const override
{
return TextHitTest( aRect, aContained, aAccuracy );
}
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "PTEXT" );
}
@@ -129,17 +129,17 @@ public:
int aCircleToSegmentsCount,
double aCorrectionFactor ) const;
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const { return add_text_xpm; }
+ BITMAP_DEF GetMenuImage() const override { return add_text_xpm; }
// Virtual function
- const EDA_RECT GetBoundingBox() const;
+ const EDA_RECT GetBoundingBox() const override;
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
#if defined(DEBUG)
- virtual void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ virtual void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
};
diff --git a/pcbnew/class_text_mod.h b/pcbnew/class_text_mod.h
index 79edd49c60..42b35030a5 100644
--- a/pcbnew/class_text_mod.h
+++ b/pcbnew/class_text_mod.h
@@ -74,12 +74,12 @@ public:
return aItem && PCB_MODULE_TEXT_T == aItem->Type();
}
- virtual const wxPoint& GetPosition() const
+ virtual const wxPoint& GetPosition() const override
{
return m_Pos;
}
- virtual void SetPosition( const wxPoint& aPos )
+ virtual void SetPosition( const wxPoint& aPos ) override
{
m_Pos = aPos;
SetLocalCoord();
@@ -87,10 +87,10 @@ public:
/// Rotate text, in footprint editor
/// (for instance in footprint rotation transform)
- void Rotate( const wxPoint& aOffset, double aAngle );
+ void Rotate( const wxPoint& aOffset, double aAngle ) override;
/// Flip entity during module flip
- void Flip( const wxPoint& aCentre );
+ void Flip( const wxPoint& aCentre ) override;
/// Mirror text position in footprint edition
/// the text itself is not mirrored, and the layer not modified,
@@ -99,7 +99,7 @@ public:
void Mirror( const wxPoint& aCentre, bool aMirrorAroundXAxis );
/// move text in move transform, in footprint editor
- void Move( const wxPoint& aMoveVector );
+ void Move( const wxPoint& aMoveVector ) override;
/// @deprecated it seems (but the type is used to 'protect'
// reference and value from deletion, and for identification)
@@ -123,7 +123,7 @@ public:
double GetDrawRotationRadians() const { return GetDrawRotation() * M_PI/1800; }
// Virtual function
- const EDA_RECT GetBoundingBox() const;
+ const EDA_RECT GetBoundingBox() const override;
///> Set absolute coordinates.
void SetDrawCoord();
@@ -144,7 +144,7 @@ public:
void Draw( EDA_DRAW_PANEL* aPanel,
wxDC* aDC,
GR_DRAWMODE aDrawMode,
- const wxPoint& aOffset = ZeroOffset );
+ const wxPoint& aOffset = ZeroOffset ) override;
/**
* Function DrawUmbilical
@@ -160,34 +160,34 @@ public:
GR_DRAWMODE aDrawMode,
const wxPoint& aOffset = ZeroOffset );
- void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList );
+ void GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) override;
- bool HitTest( const wxPoint& aPosition ) const;
+ bool HitTest( const wxPoint& aPosition ) const override;
- wxString GetClass() const
+ wxString GetClass() const override
{
return wxT( "MTEXT" );
}
- wxString GetSelectMenuText() const;
+ wxString GetSelectMenuText() const override;
- BITMAP_DEF GetMenuImage() const { return footprint_text_xpm; }
+ BITMAP_DEF GetMenuImage() const override { return footprint_text_xpm; }
- EDA_ITEM* Clone() const;
+ EDA_ITEM* Clone() const override;
- virtual wxString GetShownText() const;
+ virtual wxString GetShownText() const override;
/// @copydoc VIEW_ITEM::ViewBBox()
- virtual const BOX2I ViewBBox() const;
+ virtual const BOX2I ViewBBox() const override;
/// @copydoc VIEW_ITEM::ViewGetLayers()
- virtual void ViewGetLayers( int aLayers[], int& aCount ) const;
+ virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
/// @copydoc VIEW_ITEM::ViewGetLOD()
- virtual unsigned int ViewGetLOD( int aLayer ) const;
+ virtual unsigned int ViewGetLOD( int aLayer ) const override;
#if defined(DEBUG)
- virtual void Show( int nestLevel, std::ostream& os ) const { ShowDummy( os ); } // override
+ virtual void Show( int nestLevel, std::ostream& os ) const override { ShowDummy( os ); }
#endif
private:
diff --git a/pcbnew/class_track.h b/pcbnew/class_track.h
index 7316ecbbbe..e1f782d866 100644
--- a/pcbnew/class_track.h
+++ b/pcbnew/class_track.h
@@ -97,18 +97,18 @@ public:
TRACK* Next() const { return static_cast