Skip to content

UniDeskComBasicOptions Type ​

Component basic options panel control, displays basic property editing UI (name, parent, position, size, rotation, Z-order, opacity) for the selected component in the visual editor.

ProjectDescription
Control TypeVisual Control
Source FileUniDesk/Controls/UniDeskComBasicOptions.qml
InheritsQtQuick Item
QML Importimport UniDesk.Controls 1.0

Editor Only

This control is mainly used internally by the Uniquenium visual editor.

Custom Properties ​

PropertyTypeDescription
comManagervarComponent manager reference
editingComponentItemComponent currently being edited

Sub-controls ​

ControlDescription
idField (UniDeskTextField)Component name editing
parentComboBox (UniDeskComBox)Parent component selection
posSelector (UniDeskPosSelector)Position editing
sizeSelector (UniDeskSizeSelector)Size editing
rotationSpinBox (UniDeskSpinBox)Rotation angle (0-359)
zSpinBox (UniDeskSpinBox)Z-order (-99999 to 99999)
opacitySpinBox (UniDeskSpinBox)Opacity (0-100)

Behavior ​

  • All property modifications auto-call editingComponent.saveComToFile()
  • Z-order modification additionally calls comManager.updateComTreeZ()
  • Component name change triggers editingComponent.name = text

Methods ​

function refreshPosition() ​

Refresh the position selector display.

Example ​

qml
import UniDesk.Controls 1.0

UniDeskComBasicOptions {
    comManager: comManager
    editingComponent: someComponent
}

Released under the CC BY-SA 4.0 open documentation license.