path: root/utils/regtools/qeditor/regtab.h
diff options
authorAmaury Pouly <>2016-02-06 15:08:43 +0000
committerAmaury Pouly <>2016-02-06 15:20:48 +0000
commit6b9610fb908b27d1e0383c8d9bde3a88f35ed30c (patch)
tree1b0f5e2821b44d20f3704c584e309f5911357040 /utils/regtools/qeditor/regtab.h
parent0f701a64bee43e79f95970ae9c0ec43ea7fcdf17 (diff)
regtoosl/qeditor: port to the new description format
This big commit port qeditor from v1 to v2 register file format. Although the display code was much simplified, the edit code had to be rewritten. The new code also brings many improvement to the register display widget. The new code also compiles with both Qt4 and Qt5, although it is recommended to use Qt5 to get some improvements, especially in the layout of editor. Change-Id: I24633ac37a144f25d9e705b565654269ec9cfbd3
Diffstat (limited to 'utils/regtools/qeditor/regtab.h')
1 files changed, 6 insertions, 7 deletions
diff --git a/utils/regtools/qeditor/regtab.h b/utils/regtools/qeditor/regtab.h
index a0fd5f305a..b56747f4d1 100644
--- a/utils/regtools/qeditor/regtab.h
+++ b/utils/regtools/qeditor/regtab.h
@@ -66,14 +66,13 @@ public:
virtual QWidget *GetWidget();
- void FillDevSubTree(QTreeWidgetItem *item);
- void FillSocSubTree(QTreeWidgetItem *item);
+ QTreeWidgetItem *MakeNode(const soc_desc::node_inst_t& inst, const QString& s);
+ soc_desc::node_inst_t NodeInst(QTreeWidgetItem *item);
+ void FillSubTree(QTreeWidgetItem *item);
void FillRegTree();
void FillAnalyserList();
void UpdateSocList();
- void DisplayRegister(const SocRegRef& ref);
- void DisplayDevice(const SocDevRef& ref);
- void DisplaySoc(const SocRef& ref);
+ void DisplayNode(const soc_desc::node_inst_t& ref);
void SetDataSocName(const QString& socname);
void SetPanel(RegTabPanel *panel);
void UpdateSocFilename();
@@ -85,7 +84,7 @@ protected:
BackendSelector *m_backend_selector;
Backend *m_backend;
QTreeWidget *m_reg_tree;
- SocRef m_cur_soc;
+ soc_desc::soc_ref_t m_cur_soc;
QVBoxLayout *m_right_panel;
RegTabPanel *m_right_content;
QCheckBox *m_readonly_check;
@@ -102,7 +101,7 @@ protected:
private slots:
void SetReadOnlyIndicator();
void OnSocChanged(int index);
- void OnSocListChanged();
+ void OnSocAdded(const SocFileRef& ref);
void OnRegItemClicked(QTreeWidgetItem *clicked, int col);
void OnBackendSelect(IoBackend *backend);
void OnDataChanged();