Window for adding a new field definition or editing an existing one.
More...
#include <fielddefinitionwindow.h>
|
|
void | accept () |
| | Validates all data and closes this window if successful.
|
| |
|
| void | showEvent (QShowEvent *event) |
| | Sets up this window, e.g. by setting the focus on the first widget. More...
|
| |
Window for adding a new field definition or editing an existing one.
◆ FieldDefinitionWindow()
Constructs a new window for adding a new field definition or editing an existing one.
- Parameters
-
| fieldDefinitionsController | Controller for adding, updating and removing field definitions. |
| componentsController | Controller for adding and removing components. |
| facetsController | Controller for validating type facets. |
| projectController | Controller for creating, loading and saving projects. |
| recordsController | Controller for adding, updating and removing records. |
| typesController | Controller for adding, updating and removing custom types. |
| parent | Optional owner widget. |
◆ getDefaultValue()
| QVariant FieldDefinitionWindow::getDefaultValue |
( |
| ) |
const |
Gets the default value of the field.
- Returns
- Default value of the field.
◆ getFieldComponent()
| Component FieldDefinitionWindow::getFieldComponent |
( |
| ) |
const |
Gets the component the field should belong to.
- Returns
- Component the field should belong to.
◆ getFieldDefinitionSetName()
| QString FieldDefinitionWindow::getFieldDefinitionSetName |
( |
| ) |
const |
Gets the name of the set the field should belong to.
- Returns
- Name of the set the field should belong to.
◆ getFieldDescription()
| QString FieldDefinitionWindow::getFieldDescription |
( |
| ) |
const |
Gets the textual description of the field.
- Returns
- Textual description of the field.
◆ getFieldDisplayName()
| QString FieldDefinitionWindow::getFieldDisplayName |
( |
| ) |
const |
Gets the display name of the field.
- Returns
- Display name of the field.
◆ getFieldId()
| QString FieldDefinitionWindow::getFieldId |
( |
| ) |
const |
Gets the unique id of the field.
- Returns
- Unique id of the field.
◆ getFieldType()
| QString FieldDefinitionWindow::getFieldType |
( |
| ) |
const |
Gets the type of the values of the field.
- Returns
- Type of the values of the field.
◆ setDefaultValue()
| void FieldDefinitionWindow::setDefaultValue |
( |
const QVariant & |
defaultValue | ) |
|
Sets the default value of the field.
- Parameters
-
| defaultValue | Default value of the field. |
◆ setFieldComponent()
| void FieldDefinitionWindow::setFieldComponent |
( |
const QString & |
component | ) |
const |
Sets the component the field should belong to.
- Parameters
-
| component | Component the field should belong to. |
◆ setFieldDefinitionSetName()
| void FieldDefinitionWindow::setFieldDefinitionSetName |
( |
const QString & |
fieldDefinitionSetName | ) |
|
Sets the name of the set the field should belong to.
- Parameters
-
| fieldDefinitionSetName | Name of the set the field should belong to. |
◆ setFieldDefinitionSetNames()
| void FieldDefinitionWindow::setFieldDefinitionSetNames |
( |
const QStringList & |
fieldDefinitionSetNames | ) |
|
Sets the list of names of available field definition sets.
- Parameters
-
| fieldDefinitionSetNames | List of names of available field definition sets. |
◆ setFieldDescription()
| void FieldDefinitionWindow::setFieldDescription |
( |
const QString & |
description | ) |
|
Sets the textual description of the field.
- Parameters
-
| description | Textual description of the field. |
◆ setFieldDisplayName()
| void FieldDefinitionWindow::setFieldDisplayName |
( |
const QString & |
displayName | ) |
|
Sets the display name of the field.
- Parameters
-
| displayName | Display name of the field. |
◆ setFieldId()
| void FieldDefinitionWindow::setFieldId |
( |
const QString & |
fieldId | ) |
|
Sets the unique id of the field.
- Parameters
-
| fieldId | Unique id of the field. |
◆ setFieldType()
| void FieldDefinitionWindow::setFieldType |
( |
const QString & |
fieldType | ) |
const |
Sets the type of the values of the field.
- Parameters
-
| fieldType | Type of the values of the field. |
◆ showEvent()
| void FieldDefinitionWindow::showEvent |
( |
QShowEvent * |
event | ) |
|
|
protected |
Sets up this window, e.g. by setting the focus on the first widget.
- Parameters
-
| event | Event for showing this window. |
The documentation for this class was generated from the following files:
- Source/Tome/Features/Fields/View/fielddefinitionwindow.h
- Source/Tome/Features/Fields/View/fielddefinitionwindow.cpp