From 5ac0166388ac9a493491a30fbc3570f23950dc51 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 7 Feb 2016 21:48:40 +0000 Subject: qeditor: port to the new hwstub library and add features This commit adds support for the version of the hwstub library, which requires a lot of changes. It also adds some editing features, such as register access and much better editing of fields using the mouse (double click on a field to be able to resize and move it). Change-Id: I3c4e4cc855cb44911c72bc8127bad841b68efe52 --- utils/regtools/qeditor/regedit.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/regtools/qeditor/regedit.h') diff --git a/utils/regtools/qeditor/regedit.h b/utils/regtools/qeditor/regedit.h index 2540500f29..893ec73421 100644 --- a/utils/regtools/qeditor/regedit.h +++ b/utils/regtools/qeditor/regedit.h @@ -165,6 +165,7 @@ public: RegFieldEditPanel(const soc_desc::field_ref_t& ref, QWidget *parent = 0); soc_desc::field_ref_t GetField(); void UpdateWidth(); + void UpdateRange(); signals: void OnModified(); @@ -203,12 +204,14 @@ protected slots: void OnRegFieldDelete(); void OnRegFieldNew(); void OnWidthChanged(int size); + void OnAccessChanged(int access); void OnFieldModified(); void OnDescEdited(); void OnVariantActivated(QTableWidgetItem *item); void OnVariantValueChanged(QTableWidgetItem *item); void OnFieldRemove(int index); void OnFieldCreate(); + void OnBitrangeModified(int index); protected: void DoModify(); @@ -228,8 +231,10 @@ protected: QAction *m_delete_action; QPoint m_menu_point; SocFieldItemDelegate *m_variant_delegate; + SocAccessItemDelegate *m_access_delegate; SocFieldEditorCreator *m_variant_editor; QButtonGroup *m_reg_size_group; + QButtonGroup *m_reg_access_group; }; class RegEdit : public QWidget, public DocumentTab -- cgit v1.2.3