|
|
(6 intermediate revisions by one other user not shown) |
Line 1: |
Line 1: |
| __NOTOC__
| | {{ Moved To Community | KDE_Visual_Design_Group/HIG/Date Time Pickers }} |
| | |
| == Purpose ==
| |
| The ''date/time picker'' is a control that provides a convenient way to select a certain day or time. The time picker works just like a [[Projects/Usability/HIG/Spin_Box| spin box]] with an adopted mask. The date picker shows all days of a month in weekly columns, has small navigation buttons to access previous and next month or years as well as interactive controls to chose month and year directly. The user 'picks' the date per single click on a particular day. An additional 'today' button can be used to navigate back.
| |
| | |
| [[file:Date_Time_Pickers.png]]
| |
| | |
| == Guidelines ==
| |
| * Use a date/time picker as a convenient way to select a certain day or time.
| |
| * When selecting a date use a KDatePicker. If space is limited, use a KDateComboBox or a KDateWidget.
| |
| * Allow direct input at the input field (e.g. to copy/paste values).
| |
| * When user must select both start and end date/times, make the default end date/time aware of the start date/time: when the user sets a start date, switch the end date at least to the same date.
| |
| * Avoid wrong input by restricting the period to a reasonable range (for instance when a range is being selected).
| |
| * Do not modify localization settings (i.e. first day of week, date label etc.)
| |
| * Use controls consistently; either all date input should be done by date picker or none.
| |
| * Consider to replace the time picker by a drop down list with fixed periods.
| |
| * Insert current time or date into into input field on user reset.
| |
| * If picker is used as popup close it on selection.
| |
| | |
| == Implementation ==
| |
| === Time-only controls ===
| |
| * [http://api.kde.org/4.10-api/kdelibs-apidocs/kdeui/html/classKTimeComboBox.html KTimeComboBox]
| |
| | |
| === Date-only controls ===
| |
| * [http://api.kde.org/4.10-api/kdelibs-apidocs/kdeui/html/classKDateComboBox.html KDateComboBox]
| |
| * [http://api.kde.org/4.10-api/kdelibs-apidocs/kdeui/html/classKDatePicker.html KDatePicker]
| |
| * [http://api.kde.org/4.10-api/kdelibs-apidocs/kdeui/html/classKDateTable.html KDateTable]
| |
| * [http://api.kde.org/4.10-api/kdelibs-apidocs/kdeui/html/classKDateWidget.html KDateWidget]
| |
| | |
| === Date-time controls ===
| |
| * [http://api.kde.org/4.10-api/kdelibs-apidocs/kdeui/html/classKDateTimeEdit.html KDateTimeEdit]
| |
| * [http://api.kde.org/4.10-api/kdelibs-apidocs/kdeui/html/classKDateTimeWidget.html KDateTimeWidget]
| |