Lines Matching defs:field

1010   // Returns the number of lines needed to draw the field. The draw method will
1014 // Returns the scroll context in the local coordinates of the field. By
1015 // default, the scroll context spans the whole field. Bigger fields with
1018 // element then add the offset of the element in the field.
1023 // Draw the field in the given subpad surface. The surface have a height that
1024 // is equal to the height returned by FieldDelegateGetHeight(). If the field
1028 // Handle the key that wasn't handled by the form window or a container field.
1033 // This is executed once the user exists the field, that is, once the user
1034 // navigates to the next or the previous field. This is particularly useful to
1035 // do in-field validation and error setting. Fields with internal navigation
1042 // and instead call the key handing method of the selected field. It should
1043 // only handle the navigation keys when the field contains a single element or
1045 // navigating forward or backward. Additionally, once a field is selected in
1049 // Returns true if the first element in the field is selected or if the field
1053 // Returns true if the last element in the field is selected or if the field
1057 // Select the first element in the field if multiple elements exists.
1060 // Select the last element in the field if multiple elements exists.
1063 // Returns true if the field has an error, false otherwise.
1094 // The text field has a height of 3 lines. 2 lines for borders and 1 line for
1098 // The text field has a full height of 3 or 4 lines. 3 lines for the actual
1099 // field and an optional line for an error if it exists.
1242 // True if the key represents a char that can be inserted in the field
1301 SetError("This field is required!");
1332 // Optional error message. If empty, field is considered to have no error.
1344 // Returns the integer content of the field.
1506 // Returns the boolean content of the field.
1531 // Choices field have two border characters plus the number of visible
1628 // The index of the first visible choice in the field.
1714 // Signify which element is selected. If a field or a remove button is
1715 // selected, then m_selection_index signifies the particular field that
1716 // is selected or the field that the remove button belongs to.
1719 // A List field is drawn as a titled box of a number of other fields of the
1720 // same type. Each field has a Remove button next to it that removes the
1721 // corresponding field. Finally, the last line contains a New button to add a
1722 // new field.
1750 FieldDelegate &field = m_fields[m_selection_index];
1751 ScrollContext context = field.FieldDelegateGetScrollContext();
1839 FieldDelegate &field = m_fields[m_selection_index];
1840 field.FieldDelegateSelectFirstElement();
1850 FieldDelegate &field = m_fields[m_selection_index];
1851 field.FieldDelegateSelectFirstElement();
1872 FieldDelegate &field = m_fields[m_selection_index];
1873 if (!field.FieldDelegateOnLastOrOnlyElement()) {
1874 return field.FieldDelegateHandleChar(key);
1877 field.FieldDelegateExitCallback();
1889 FieldDelegate &field = m_fields[m_selection_index];
1890 field.FieldDelegateSelectLastElement();
1900 FieldDelegate &field = m_fields[m_selection_index];
1901 if (!field.FieldDelegateOnFirstOrOnlyElement()) {
1902 return field.FieldDelegateHandleChar(key);
1905 field.FieldDelegateExitCallback();
1912 // If the last element of the field is selected and it didn't handle the key.
1913 // Select the next field or new button if the selected field is the last one.
1917 FieldDelegate &field = m_fields[m_selection_index];
1918 if (field.FieldDelegateHandleChar(key) == eKeyHandled)
1921 if (!field.FieldDelegateOnLastOrOnlyElement())
1924 field.FieldDelegateExitCallback();
1962 // to that field.
1983 FieldDelegate &field = m_fields[m_selection_index];
1984 return field.FieldDelegateOnFirstOrOnlyElement();
2011 // The default field delegate instance from which new field delegates will be
2037 TextFieldDelegate &field = GetField(GetNumberOfFields() - 1);
2038 field.SetText(arguments.GetArgumentAtIndex(i));
2051 // Signify which element is selected. The key field or its value field.
2054 // A mapping field is drawn as two text fields with a right arrow in between.
2055 // The first field stores the key of the mapping and the second stores the
2063 // The mapping field has a height that is equal to the maximum height between
2125 // If the value field is selected, pass the key to it. If the key field is
2127 // select its corresponding value field.
2157 // If the key wasn't handled, pass the key to the selected field.
2247 EnvironmentVariableFieldDelegate &field =
2249 field.SetName(variable.getKey().str().c_str());
2250 field.SetValue(variable.getValue().c_str());
2477 // Signify which element is selected. If a field or an action is selected,
2478 // then m_selection_index signifies the particular field or action that is
2528 FieldDelegate *field = m_delegate_sp->GetField(m_selection_index);
2529 ScrollContext context = field->FieldDelegateGetScrollContext();
2556 // a field has shrunk in height.
2590 FieldDelegate *field = m_delegate_sp->GetField(i);
2591 if (!field->FieldDelegateIsVisible())
2594 int height = field->FieldDelegateGetHeight();
2597 field->FieldDelegateDraw(field_surface, is_field_selected);
2712 FieldDelegate *field = m_delegate_sp->GetField(m_selection_index);
2713 if (!field->FieldDelegateOnLastOrOnlyElement()) {
2714 return field->FieldDelegateHandleChar(key);
2717 field->FieldDelegateExitCallback();
2768 FieldDelegate *field = m_delegate_sp->GetField(m_selection_index);
2769 if (!field->FieldDelegateOnFirstOrOnlyElement()) {
2770 return field->FieldDelegateHandleChar(key);
2773 field->FieldDelegateExitCallback();
2832 // to that field.
2834 FieldDelegate *field = m_delegate_sp->GetField(m_selection_index);
2835 if (field->FieldDelegateHandleChar(key) == eKeyHandled)
2839 // If the key wasn't handled by the possibly selected field, handle some
3659 // field handles an event.
3676 // A completion window is padded by one character from all sides. A text field