Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions src/gui/qml/nodeGraph/SpeciesDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,20 @@ Dialog {
onClicked: sp.atoms.addAtom(elementField.currentText, xField.text, yField.text, zField.text, chargeField.text)
}
}
HorizontalHeaderView {
id: atomTableHeader

Layout.fillWidth: true
Layout.preferredHeight: contentHeight
Layout.preferredWidth: contentWidth
clip: true
enabled: !sp.atoms
model: getHeaderStringArray(sp.atoms)
syncView: atomTable
}
TableView {
id: atomTable

Layout.fillHeight: true
Layout.fillWidth: true
clip: true
Expand Down Expand Up @@ -142,7 +155,20 @@ Dialog {
onClicked: sp.addBond(bondI.text, bondJ.text)
}
}
HorizontalHeaderView {
id: bondTableHeader

Layout.fillWidth: true
Layout.preferredHeight: contentHeight
Layout.preferredWidth: contentWidth
clip: true
enabled: !sp.bonds
model: getHeaderStringArray(sp.bonds)
syncView: bondTable
}
TableView {
id: bondTable

Layout.fillHeight: true
Layout.fillWidth: true
implicitHeight: 200
Expand Down Expand Up @@ -197,7 +223,20 @@ Dialog {
onClicked: sp.addAngle(angleI.text, angleJ.text, angleK.text)
}
}
HorizontalHeaderView {
id: angleTableHeader

Layout.fillWidth: true
Layout.preferredHeight: contentHeight
Layout.preferredWidth: contentWidth
clip: true
enabled: !sp.angles
model: getHeaderStringArray(sp.angles)
syncView: angleTable
}
TableView {
id: angleTable

Layout.fillHeight: true
Layout.fillWidth: true
implicitHeight: 200
Expand Down Expand Up @@ -261,7 +300,20 @@ Dialog {
onClicked: sp.addTorsion(torsionI.text, torsionJ.text, torsionK.text, torsionL.text)
}
}
HorizontalHeaderView {
id: torsionTableHeader

Layout.fillWidth: true
Layout.preferredHeight: contentHeight
Layout.preferredWidth: contentWidth
clip: true
enabled: !sp.torsions
model: getHeaderStringArray(sp.torsions)
syncView: torsionTable
}
TableView {
id: torsionTable

Layout.fillHeight: true
Layout.fillWidth: true
implicitHeight: 200
Expand Down Expand Up @@ -325,7 +377,20 @@ Dialog {
onClicked: sp.addImproper(improperI.text, improperJ.text, improperK.text, improperL.text)
}
}
HorizontalHeaderView {
id: improperTableHeader

Layout.fillWidth: true
Layout.preferredHeight: contentHeight
Layout.preferredWidth: contentWidth
clip: true
enabled: !sp.impropers
model: getHeaderStringArray(sp.impropers)
syncView: improperTable
}
TableView {
id: improperTable

Layout.fillHeight: true
Layout.fillWidth: true
implicitHeight: 200
Expand Down