2024-12-01

5.2

# Widgets

&kmymoney; has some specific widgets not found in other applications. The usage of these widgets is explained in this chapter.

## Date entry and Date picker

Whenever &kmymoney; needs information about a specific date, ⪚, the posting date of a transaction or the opening date of an account, it offers the user the date entry widget. This widget consists of three fields, which present the day, the month, and the year, separated by the date separator characters specified by your locale settings. If you push the down arrow next to the date, the program will open the date picker widget.

Date widget Date widget

Within the date entry widget, the &Left;/&Right; cursor keys can be used to switch between the day, the month, and the year fields. Using the &Up;/&Down; cursor keys, the value of the selected field can be incremented/decremented. The + or = and - keys can be used to increment/decrement a single day. The ] or } and [ or { keys can be used to increment/decrement a single month. The ' or " and ; or : keys can be used to increment/decrement a single year. Month and year boundaries are considered and incremented/decremented if necessary, e.g. using + to increment the date of January 31th will change it to February 1st.

The following additional shortcuts can also be used:

- M to set the date to the first day of the current month

- H to set the date to the last day of the current month

- Y to set the date to the first day of the current year

- R to set the date to the last day of the current year

- T to set the date to today's date

The date can also be changed using the mouse. Clicking on the day, month, or year field selects the field. The value can then be incremented/decremented using the &Up;/&Down; cursor keys. In addition, if you use the &Right;/&Left; cursor keys, when you move to a different field, the entire field is selected, and you can just type the new value for that field.

The date picker widget shows the currently selected month, name, and year. Above that are four arrow buttons, two on each side of the displayed month and year. The leftmost buttons are used to decrement the year and the month; the buttons to the right of the year are used to increment the month and the year. The button to the very right closes the date picker.

Beneath the buttons, the widget presents a calendar page for the selected month. Clicking a day on the calendar selects that date, closes the date picker, and transfers the selected date into the day, month, and year fields.

At the bottom of the date picker widget, there are a button, a text edit field, and a combo box. Pressing the button selects today's date in the date picker. The text field can be used to enter a specific date. Pressing the &Enter; key shows that date in the date picker widget. The combo box allows the user to select a specific week, and continue to pick a date from there.

In case an invalid date is entered, the date picker will show a red frame, and a tooltip will show details about the error.

## Value entry

The value entry widget consists of a text field (that accepts digits, thousands separators, and decimal symbols) as well as a button to the right. Use the digits to enter the value. Separate the fractional part by entering the decimal separator for your locale. If you click on the button to the right or press a key representing a numeric operation (⪚, +, -, /, * or %) a little calculator will pop up and allow you to calculate the final value.

Negative values can be entered by preceding the value with a minus sign. In case your locale is set to display negative numbers with parentheses around the value, the value can also be enclosed in parenthesis in the value entry widget.

Value widget Value widget

Use the calculator widget just like a normal calculator and once done leave it by clicking on the = button or press the = key on your keyboard.

## Payee/Payer entry

The widget for entering a Payee/Payer is very similar to a typical combo-box, but has some additional features.

Payee widget Payee widget

When you are requested to enter a payee/payer for a transaction, you can start entering the name by pressing keys on your keyboard. As long as there are entries in the list of payees/payers maintained by &kmymoney; which match the characters entered, they will be presented in a box beneath or above the text entry area. Using the mouse or the &Up;/&Down; keys, one can select a name from that list. Using the keyboard additionally requires you to select the entry by pressing the &Enter; key. Clicking the X to the right of the entry area clears the field. Clicking the down arrow to the right of the X displays the complete list of possible payees/payers.

If a name is entered that is not yet known to &kmymoney; you will be asked if you want to create a new payee/payer record. If you do not wish to do so, then the field will be blanked. Otherwise, the record will be created and added to the list.

## Category/Account entry

The field for entering a Category or Account is very similar to the one described above for Payees/Payers.

Category widget Category widget

To the right of the entry field, between the X for clearing it and the down arrow for displaying the complete list, there is a split icon, which opens the Split Editor