From a99d0c44e11182972d30c0644c0875c778776d87 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 24 Jan 2018 15:09:08 +0100 Subject: [PATCH] Code comments --- eeschema/class_libentry.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eeschema/class_libentry.h b/eeschema/class_libentry.h index af546123e6..2bee7de9c1 100644 --- a/eeschema/class_libentry.h +++ b/eeschema/class_libentry.h @@ -367,7 +367,16 @@ public: void SetPower() { m_options = ENTRY_POWER; } void SetNormal() { m_options = ENTRY_NORMAL; } + /** + * Set interchangeable the property for part units. + * @param aLockUnits when true then units are set as not interchangeable. + */ void LockUnits( bool aLockUnits ) { m_unitsLocked = aLockUnits; } + + /** + * Check whether part units are interchangeable. + * @return False when interchangeable, true otherwise. + */ bool UnitsLocked() const { return m_unitsLocked; } /** @@ -676,7 +685,7 @@ public: /** * @return true if the part has multiple units per part. - * When happens, the reference has a sub reference ti identify part + * When true, the reference has a sub reference to identify part. */ bool IsMulti() const { return m_unitCount > 1; }