Update Form Designer - Properties Window - Add Column to be use for buttons that will open Font/Color dialogs.
@@ -48,7 +48,7 @@ Class FormDesignerController from WindowsControllerParent
nRow = oView.oPropertiesTable.Currentrow()
nCol = oView.oPropertiesTable.Currentcolumn()
cValue = oView.oPropertiesTable.item(nRow,nCol).text()
- oActiveObject.UpdateProperties(nRow,cValue)
+ oActiveObject.UpdateProperties(nRow,nCol,cValue)
func ResizeWindowAction
oView.oForm.DisplayProperties(oView.oPropertiesTable)
@@ -310,10 +310,11 @@ Class FormDesignerView from WindowsViewParent
}
this.oPropertiesTable = new qTableWidget(oProperties) {
setrowcount(0)
- setcolumncount(2)
+ setcolumncount(3)
setselectionbehavior(QAbstractItemView_SelectRows)
setHorizontalHeaderItem(0, new QTableWidgetItem("Property"))
setHorizontalHeaderItem(1, new QTableWidgetItem("Value"))
+ setHorizontalHeaderItem(2, new QTableWidgetItem(""))
setAlternatingRowColors(true)
horizontalHeader().setStyleSheet("color: blue")
verticalHeader().setStyleSheet("color: red")
@@ -340,6 +341,9 @@ Class FormDesignerView from WindowsViewParent
oPropertiesTable.setItem(nRow,0,item)
item = new qTableWidgetItem("")
oPropertiesTable.setItem(nRow,1,item)
+ item = new qTableWidgetItem("")
+ item.setFlags(False) # Can't Edit the Item
+ oPropertiesTable.setItem(nRow,2,item)
oPropertiesTable.blocksignals(false)
Class FormDesignerModel
@@ -376,7 +380,8 @@ class FormDesigner_QWidget from QWidget
oDesigner.oView.AddProperty(Item)
}
- func UpdateProperties nRow,cValue
+ func UpdateProperties nRow,nCol,cValue
+ if nCol = 1 {
switch nRow {
case 0 # x
oSubWindow.move(0+cValue,oSubWindow.y())
@@ -391,6 +396,7 @@ class FormDesigner_QWidget from QWidget
case 5 # back color
setBackColor(cValue)
}
+ }
func DisplayProperties oPropertiesTable
oPropertiesTable.Blocksignals(True)
