Browse Source

Fix selection of table cells in groups.

(Selecting a cell should select the whole group.)
pull/18/head
Jeff Young 8 months ago
parent
commit
aa5863cb40
  1. 5
      eeschema/sch_tablecell.h
  2. 2
      include/eda_item.h
  3. 6
      pcbnew/pcb_tablecell.h

5
eeschema/sch_tablecell.h

@ -50,6 +50,11 @@ public:
return new SCH_TABLECELL( *this );
}
EDA_GROUP* GetParentGroup() const override
{
return GetParent()->GetParentGroup();
}
int GetRow() const;
int GetColumn() const;

2
include/eda_item.h

@ -111,7 +111,7 @@ public:
virtual void SetParent( EDA_ITEM* aParent ) { m_parent = aParent; }
virtual void SetParentGroup( EDA_GROUP* aGroup ) { m_group = aGroup; }
EDA_GROUP* GetParentGroup() const { return m_group; }
virtual EDA_GROUP* GetParentGroup() const { return m_group; }
virtual bool IsLocked() const { return false; }
virtual void SetLocked( bool aLocked ) {}

6
pcbnew/pcb_tablecell.h

@ -26,6 +26,7 @@
#include <pcb_textbox.h>
#include <board_item_container.h>
class PCB_TABLECELL : public PCB_TEXTBOX
@ -53,6 +54,11 @@ public:
return new PCB_TABLECELL( *this );
}
EDA_GROUP* GetParentGroup() const override
{
return GetParent()->GetParentGroup();
}
int GetRow() const;
int GetColumn() const;

Loading…
Cancel
Save