forked from len0rd/rockbox
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
This commit is contained in:
parent
0f701a64be
commit
6b9610fb90
18 changed files with 2968 additions and 1964 deletions
|
|
@ -66,14 +66,13 @@ public:
|
|||
virtual QWidget *GetWidget();
|
||||
|
||||
protected:
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue