Class SettingsPage
settings page - item of settings tree, can edit several settings
class SettingsPage;
Constructors
| Name | Description |
|---|---|
this
(id, label)
|
Fields
| Name | Type | Description |
|---|---|---|
_children
|
ObjectList!(dcanvas.dialogs.settingsdialog.SettingsPage) | |
_id
|
string | |
_items
|
ObjectList!(dcanvas.dialogs.settingsdialog.SettingsItem) | |
_label
|
UIString | |
_parent
|
SettingsPage |
Properties
| Name | Type | Description |
|---|---|---|
childCount[get]
|
int | |
id[get]
|
string | |
isRoot[get]
|
bool | returns true if this page is root page |
itemCount[get]
|
int | |
label[get]
|
UIString |
Methods
| Name | Description |
|---|---|
addCheckbox
(id, label, inverse)
|
add checkbox (boolean value) for setting |
addChild
(item)
|
|
addChild
(id, label)
|
|
addDirNameEdit
(id, label, defaultValue)
|
add EditLine to edit filename |
addExecutableFileNameEdit
(id, label, defaultValue)
|
add EditLine to edit executable file name |
addFileNameEdit
(id, label, defaultValue)
|
add EditLine to edit filename |
addFloatComboBox
(id, label, items, divider)
|
|
addIntComboBox
(id, label, items)
|
|
addItem
(item)
|
|
addNumberEdit
(id, label, minValue, maxValue, defaultValue)
|
add EditLine to edit number |
addStringComboBox
(id, label, items)
|
|
addStringEdit
(id, label, defaultValue)
|
add EditLine to edit string |
child
(index)
|
returns child page by index |
createTreeItem
()
|
|
createWidget
(settings)
|
create page widget (default implementation creates empty page) |
item
(index)
|
returns page item by index |
Aliases
| Name | Description |
|---|---|
~this
|