diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-02-07 21:48:40 +0000 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-04-08 18:46:46 +0100 |
commit | 5ac0166388ac9a493491a30fbc3570f23950dc51 (patch) | |
tree | 8fe2019a8d3376042d1f92b7a2127bd73d3c97e3 /utils/regtools/qeditor/regedit.h | |
parent | cc4c9b70bcac048fc388d0f553b7621f52449526 (diff) | |
download | rockbox-5ac0166388ac9a493491a30fbc3570f23950dc51.tar.gz rockbox-5ac0166388ac9a493491a30fbc3570f23950dc51.zip |
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
Diffstat (limited to 'utils/regtools/qeditor/regedit.h')
-rw-r--r-- | utils/regtools/qeditor/regedit.h | 5 |
1 files changed, 5 insertions, 0 deletions
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: | |||
165 | RegFieldEditPanel(const soc_desc::field_ref_t& ref, QWidget *parent = 0); | 165 | RegFieldEditPanel(const soc_desc::field_ref_t& ref, QWidget *parent = 0); |
166 | soc_desc::field_ref_t GetField(); | 166 | soc_desc::field_ref_t GetField(); |
167 | void UpdateWidth(); | 167 | void UpdateWidth(); |
168 | void UpdateRange(); | ||
168 | 169 | ||
169 | signals: | 170 | signals: |
170 | void OnModified(); | 171 | void OnModified(); |
@@ -203,12 +204,14 @@ protected slots: | |||
203 | void OnRegFieldDelete(); | 204 | void OnRegFieldDelete(); |
204 | void OnRegFieldNew(); | 205 | void OnRegFieldNew(); |
205 | void OnWidthChanged(int size); | 206 | void OnWidthChanged(int size); |
207 | void OnAccessChanged(int access); | ||
206 | void OnFieldModified(); | 208 | void OnFieldModified(); |
207 | void OnDescEdited(); | 209 | void OnDescEdited(); |
208 | void OnVariantActivated(QTableWidgetItem *item); | 210 | void OnVariantActivated(QTableWidgetItem *item); |
209 | void OnVariantValueChanged(QTableWidgetItem *item); | 211 | void OnVariantValueChanged(QTableWidgetItem *item); |
210 | void OnFieldRemove(int index); | 212 | void OnFieldRemove(int index); |
211 | void OnFieldCreate(); | 213 | void OnFieldCreate(); |
214 | void OnBitrangeModified(int index); | ||
212 | 215 | ||
213 | protected: | 216 | protected: |
214 | void DoModify(); | 217 | void DoModify(); |
@@ -228,8 +231,10 @@ protected: | |||
228 | QAction *m_delete_action; | 231 | QAction *m_delete_action; |
229 | QPoint m_menu_point; | 232 | QPoint m_menu_point; |
230 | SocFieldItemDelegate *m_variant_delegate; | 233 | SocFieldItemDelegate *m_variant_delegate; |
234 | SocAccessItemDelegate *m_access_delegate; | ||
231 | SocFieldEditorCreator *m_variant_editor; | 235 | SocFieldEditorCreator *m_variant_editor; |
232 | QButtonGroup *m_reg_size_group; | 236 | QButtonGroup *m_reg_size_group; |
237 | QButtonGroup *m_reg_access_group; | ||
233 | }; | 238 | }; |
234 | 239 | ||
235 | class RegEdit : public QWidget, public DocumentTab | 240 | class RegEdit : public QWidget, public DocumentTab |