index.docbook 178 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
  <!ENTITY % addindex "IGNORE">
  <!ENTITY % English "INCLUDE"><!-- change language only here -->
]>

<!-- The language must NOT be changed here. -->

<book id="kalarm" lang="&language;">

<bookinfo id="kalarminfo">
<title>The &kalarm; Handbook</title>

<authorgroup>
<author>
<firstname>David</firstname>
<surname>Jarvie</surname>
<affiliation>
<address>&David.Jarvie.mail;</address>
</affiliation>
</author>

<othercredit role="developer">
<firstname>David</firstname>
<surname>Jarvie</surname>
<affiliation><address>&David.Jarvie.mail;</address></affiliation>
<contrib>Developer</contrib>
</othercredit>

<!-- TRANS:ROLES_OF_TRANSLATORS -->
</authorgroup>

<copyright>
David Jarvie's avatar
David Jarvie committed
34
<year>2001</year><year>2002</year><year>2003</year><year>2004</year><year>2005</year><year>2006</year><year>2007</year><year>2008</year><year>2009</year><year>2010</year><year>2011</year><year>2012</year><year>2013</year><year>2016</year><year>2018</year><year>2019</year><year>2020</year>
35 36 37 38 39 40 41
<holder>&David.Jarvie;</holder>
</copyright>

<legalnotice>&FDLNotice;</legalnotice>

<!-- Don't change format of date and version of the documentation -->

42 43
<date>2020-09-24</date>
<releaseinfo>3.1.0 (Applications 20.12)</releaseinfo>
44 45

<abstract>
46
<para>&kalarm; is a personal alarm message, command and email scheduler by &kde;.</para>
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
</abstract>


<keywordset>
<keyword>KDE</keyword>
<keyword>kdepim</keyword>
<keyword>kalarm</keyword>
<keyword>alarm</keyword>
<keyword>reminder</keyword>
<keyword>scheduler</keyword>
</keywordset>

</bookinfo>


<chapter id="introduction">
<title>Introduction</title>

<para>&kalarm; lets you schedule the display of personal alarm
messages, the playing of sound files, the execution of commands and
the sending of emails.</para>

<para>In its default graphical mode, &kalarm; displays the list of
pending alarms, showing their times and details.  You can create new
alarms, or you can select existing alarms for modification or
deletion. You can also optionally view expired alarms.</para>

<para>When configuring an alarm, you can choose whether it should
repeat, and whether the alarm should be canceled if it cannot be
triggered at its scheduled time. For display alarms, you can type in
a message text, specify a text or image file to display, or specify a
command whose output should be displayed. You can also choose the
color of the alarm message, and whether to play a sound or speak the
message.</para>

<para>Alarms may also be scheduled from the command line, or via &DBus;
calls from programs.</para>

85
<para>When an alarm message is due, it is displayed on each
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
desktop to ensure that you don't miss it. The message window shows the
time for which the alarm was scheduled. It usually has a defer option
to ask for the alarm to be displayed again later. An example of an
alarm message:</para>

<screenshot>
<screeninfo>Screenshot of the &kalarm; message window</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="alarmmessage.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Alarm message</phrase>
</textobject>
</mediaobject>
</screenshot>

<para>When the alarm specifies a command to execute or an email to
send, &kalarm; displays nothing.</para>

<para>&kalarm; usually shows an icon in the system tray, although this
can be hidden if desired.</para>

</chapter>

<chapter id="using-kalarm">
<title>Using &kalarm;</title>

<para>When it is run with no command line parameters, &kalarm; starts
in graphical mode, and displays the current list of outstanding
alarms.</para>

<tip><para>All spin boxes in &kalarm; have an acceleration facility.
To make the value change by larger steps, hold down the
&Shift; key while you click on the spin arrow
buttons.</para>

<mediaobject>
<imageobject>
<imagedata fileref="spinbox.png" format="PNG"/>
</imageobject>
</mediaobject>
</tip>

<sect1 id="alarm-types">
<title>Alarm Types</title>

<para>The basic functions available from the different alarm types
which &kalarm; provides are:</para>

<itemizedlist>
<listitem>
<para>Display alarms display either a text message which you type in,
or the contents of a text or image file, or the textual output from a
command which is run when the alarm triggers. In addition to
displaying one of these items, they can also play audio files, have
their text spoken, or emit a simple beep. You can also specify
commands to be executed before and after the alarm message is
displayed.</para>
</listitem>

<listitem>
<para>Command alarms execute either a command or a shell script which
you can type in. Nothing is displayed unless an error occurs.</para>
</listitem>

<listitem>
<para>Email alarms send a email. Nothing is displayed unless an error
occurs.</para>
</listitem>

<listitem>
<para>Audio alarms play an audio file. Nothing is displayed unless an
error occurs.</para>
</listitem>
</itemizedlist>

<sect2 id="errors">
<title>Error Handling</title>

<para>If an error occurs when an alarm triggers, an error message will
be displayed (unless you have previously specified not to show that
type of message again).</para>

<para>If an execution error occurred the last time a command alarm
triggered, a white on red exclamation mark is shown in the message
color column. Details of the error are displayed in a tooltip if you
position the cursor over that line in the alarm list. The same error
indications are shown for display alarms if an execution error
occurred for a pre- or post-alarm command specified in the Special
Actions dialog, except that the color column is not changed to a red
background.</para>

</sect2>
</sect1>

<sect1 id="alarm-list">
<title>Alarm List</title>

<para>The main &kalarm; window displays the current list of pending
alarms, showing their times, repetition intervals, colors, and
message texts, names of files to play or display, commands to execute
or email subjects. (For a recurring alarm, the time shown is its next
scheduled trigger time. For an alarm with a reminder, the time shown
is the time of the alarm proper, not the reminder time.) An icon at
the left of each alarm text/file/command/email subject indicates the
type of alarm.</para>

<screenshot>
<screeninfo>Screenshot of the &kalarm; main window</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="mainwindow.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Main window</phrase>
</textobject>
</mediaobject>
</screenshot>

<para>For a repeated alarm, the list shows its next scheduled trigger
time and its basic repetition interval (&eg; <quote>1 Day</quote> for
a daily recurrence, <quote>3 Weeks</quote> for a recurrence which
triggers on Monday and Wednesday every third week,
<quote>Login</quote> for a repeat-at-login alarm).</para>

<para>If an execution error occurred the last time a command alarm
triggered, or the last time a display alarm's pre- or post-alarm
command was executed, an error indication is shown in the color
column, as described in <link linkend="errors">Error Handling</link>
above.</para>

<sect2 id="listappear">
<title>Changing the Alarm List Appearance</title>

<para>The alarms may be ordered by date/time, repeat interval, color,
type or text by clicking on the titlebar for the appropriate column.
To reverse the sort order, click the column titlebar again.</para>

<para>You can optionally show the remaining time until each alarm is
226 227 228 229 230 231 232 233
due, together with, or instead of, the alarm's scheduled time.</para>

<para>You can select which columns to display or hide by
<mousebutton>Right</mousebutton> clicking on the column headings and
using the context menu to set the columns to show. But note that the
<guilabel>Message, File or Command</guilabel> column, and at least one
of the <guilabel>Time</guilabel> or <guilabel>Time To</guilabel>
columns, are always shown.</para>
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355

<para>If you use multiple alarm calendars, you can color code alarms
according to which calendar they belong to, by selecting a different
background color for each calendar (see
<link linkend="using-calendars">Using Calendars</link>).</para>

</sect2>

<sect2 id="expired">
<title>Archived Alarms</title>

<para>By default, &kalarm; archives alarms for a limited period once
they have expired or been deleted. (But note that alarms which you
delete are stored only if they have already triggered at least once.)
You can control whether &kalarm; archives expired alarms, and for how
long, in the
<link linkend="preferences-storage">Configuration dialog</link>.</para>

<para>Archived alarms may be shown in the alarm list by selecting
<menuchoice><guimenu>View</guimenu><guimenuitem>Show Archived
Alarms</guimenuitem></menuchoice>. To hide them again, deselect
<menuchoice><guimenu>View</guimenu><guimenuitem>Show Archived
Alarms</guimenuitem></menuchoice>.</para>

</sect2>

<sect2 id="search">
<title>Searching the Alarm List</title>

<para>You can search through the alarm list to find alarms containing
a search text. To invoke this, select <menuchoice>
<guimenu>Edit</guimenu><guimenuitem>Find...</guimenuitem></menuchoice>.
In the search dialog, select the alarm types which you wish to search.
To continue searching for more alarms which match, use <menuchoice>
<guimenu>Edit</guimenu><guimenuitem>Find Next</guimenuitem></menuchoice>
or <menuchoice>
<guimenu>Edit</guimenu><guimenuitem>Find Previous</guimenuitem>
</menuchoice>.</para>

<para>Searching is performed as follows:</para>

<itemizedlist>
<listitem>
<para>Text message alarms: the message text is searched.</para>
</listitem>

<listitem>
<para>File display alarms: the file path/&URL; is searched.</para>
</listitem>

<listitem>
<para>Command alarms: the command line or command script is
searched.</para>
</listitem>

<listitem>
<para>Email alarms: in addition to the subject and body of the email,
the recipients and the URLs of attachments are searched.</para>
</listitem>

<listitem>
<para>Audio alarms: the file path/&URL; is searched.</para>
</listitem>
</itemizedlist>

<note><para>Only alarms currently shown in the alarm list can be
selected for searching. So if you want to search archived alarms, you
must first display them as described in the section above.</para></note>
</sect2>
</sect1>

<sect1 id="create-edit">
<title>Creating and Manipulating Alarms</title>

<sect2>
<title>Creating a New Alarm</title>

<para>To create a new alarm, do one of the following, and then select
the type of alarm from the list which appears. This displays the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> through which
you configure the alarm.</para>

<itemizedlist>
<listitem>
<para>Select <menuchoice><guimenu>File</guimenu>
<guimenuitem>New</guimenuitem></menuchoice>.</para>
</listitem>

<listitem>
<para><mousebutton>Right</mousebutton> click on the system tray icon
and choose
<menuchoice><guimenuitem>New Alarm</guimenuitem></menuchoice>
from the context menu.</para>
</listitem>

<listitem>
<para><mousebutton>Right</mousebutton> click in the alarm list and
choose <menuchoice><guimenuitem>New</guimenuitem></menuchoice> from
the context menu.</para>
</listitem>
</itemizedlist>

<para>Alternatively, you can create new alarms preconfigured from
various sources:</para>

<itemizedlist>
<listitem>
<para>To base your new alarm on an alarm template, follow the
instructions in the <link linkend="templates">Alarm Templates</link>
section.</para>
</listitem>

<listitem>
<para>To base your new alarm on an existing one, highlight the existing
alarm in the list and select <menuchoice>
<guimenu>File</guimenu><guimenuitem>Copy</guimenuitem></menuchoice>.
This opens the <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>
already filled in with a copy of the selected alarm's details.</para>
</listitem>

<listitem>
<para>To create a new alarm which displays an existing email message,
356 357 358 359 360
drag the email from &kmail; onto &kalarm;'s main window. Then select
the <guilabel>Display Alarm</guilabel> option. This opens the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with the
entire email message (including sender, recipient, &etc;) as the alarm
text.</para>
361 362 363 364
</listitem>

<listitem>
<para>To create a new email alarm to send a copy of an existing email
365 366 367 368
message, drag the email from &kmail; onto &kalarm;'s main window. Then
select the <guilabel>Email Alarm</guilabel> option. The
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> is preset with
the entire email message except sender.</para>
369 370 371 372 373
</listitem>

<listitem>
<para>To create a new alarm which displays a summary of an existing
to-do, drag the to-do from &korganizer; or other application onto
374
&kalarm;'s main window. This opens the
375 376 377 378 379 380
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with the
to-do contents as the alarm text.</para>
</listitem>

<listitem>
<para>To create a new command alarm, drag the text of a script
381 382 383 384
starting with <quote>#!</quote> onto &kalarm;'s main window. Then
select the <guilabel>Command Alarm</guilabel> option. This opens the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> preset with
the script text.</para>
385 386 387 388
</listitem>

<listitem>
<para>To create a file display alarm, drag a text or image file &URL;
389
onto &kalarm;'s main window. This opens the
390 391 392 393 394 395
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> and sets the
file name.</para>
</listitem>

<listitem>
<para>To create an audio alarm, drag an audio file &URL; onto
396
&kalarm;'s main window. This opens the
397 398 399 400 401 402
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> and sets the
file name.</para>
</listitem>

<listitem>
<para>To create a text message alarm, drag any piece of text onto
403
&kalarm;'s main window. If prompted, select the
404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
<guilabel>Display Alarm</guilabel> option. This opens the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> preset with
the alarm text.</para>
</listitem>

<listitem>
<para>You can automatically create birthday alarms for people in
&kaddressbook; as described in <link linkend="birthdays">Importing
Birthdays from &kaddressbook;</link>.</para>
</listitem>

</itemizedlist>

</sect2>

<sect2 id="edit-alarm">
<title>Modifying an Existing Alarm</title>

<para>To modify an existing pending alarm (expired alarms cannot be
amended), do one of the following:</para>

<itemizedlist>
<listitem>
<para>Double click on its entry in the alarm list.</para>
</listitem>

<listitem>
<para>Select it by clicking on its entry in the alarm list. Then
choose <menuchoice><guimenu>Edit</guimenu>
<guimenuitem>Edit</guimenuitem></menuchoice>.</para>
</listitem>

<listitem>
<para><mousebutton>Right</mousebutton> click on its entry in the alarm
list and choose
<menuchoice><guimenuitem>Edit</guimenuitem></menuchoice> from the
context menu.</para>
</listitem>
</itemizedlist>

<para>This displays the <link linkend="alarm-edit-dlg">Alarm Edit
dialog</link>.</para>

</sect2>

<sect2>
<title>Deleting/Reactivating an Alarm</title>

<para>To delete existing alarms, select one or more by clicking on
their entries in the alarm list. Then do one of the following:</para>

<itemizedlist>
<listitem>
<para>Choose <menuchoice>
<guimenu>Edit</guimenu><guimenuitem>Delete</guimenuitem>
</menuchoice>.</para>
</listitem>
<listitem>
<para><mousebutton>Right</mousebutton> click on the selected entries
and choose
<menuchoice><guimenuitem>Delete</guimenuitem></menuchoice>
from the context menu.</para>
</listitem>
<listitem>
<para>To delete them without a confirmation prompt, type
&Shift;-<keycap>Delete</keycap>.</para>
</listitem>
</itemizedlist>

<para>When you delete an active alarm, it is archived, provided that
it has triggered at least once before being deleted, and provided that
expired alarms are archived at all. (Use the
<link linkend="preferences-storage">Configuration dialog</link> to
control whether and for how long archived alarms are stored.) When you
delete an archived alarm, or an active alarm which has not yet
triggered, it is removed permanently.</para>

<para>You can reactivate a deleted alarm from the archived alarms list,
provided that it has not yet expired. To do this, first display
archived alarms, as described in
<link linkend="expired">Archived Alarms</link>. Then:</para>

<itemizedlist>
<listitem>
<para>Select one or more appropriate archived alarms by clicking on
their entries in the alarm list. Then choose <menuchoice>
<guimenu>Actions</guimenu><guimenuitem>Reactivate</guimenuitem>
</menuchoice>.</para>
</listitem>
<listitem>
<para><mousebutton>Right</mousebutton> click on the desired entries in
the archived alarm list and choose
<menuchoice><guimenuitem>Reactivate</guimenuitem></menuchoice>
from the context menu.</para>
</listitem>
</itemizedlist>

</sect2>

<sect2>
<title>Enabling/Disabling an Alarm</title>

<para>See <link linkend="enable-disable">Enabling and Disabling Alarms</link>
for how to enable and disable alarms, either individually or as a whole.</para>

</sect2>

<sect2>
<title>Setting an Alarm to Wake from Suspend</title>

<para>See <link linkend="wake-suspend">Wake From Suspend</link> for
how to configure an alarm to wake up your system from suspension or
hibernation.</para>

</sect2>

<sect2>
<title>Acknowledging an Alarm</title>

523
<para>See <link linkend="message-display">Alarm Message Display</link>
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730
for how to acknowledge alarms.</para>

</sect2>

<sect2 id="templates">
<title>Alarm Templates</title>

<para>If you frequently want to set up similar alarms, you can create
an alarm template to avoid having to enter all the details from
scratch each time. A template can contain all the details which an
alarm can contain, apart from the start date.</para>

<para>As an example, you may regularly want to set an
alarm to remind you about a television program whose time varies
from week to week. The template would contain all the alarm details
(message text, whether to play a sound, &etc;) except for the time and
date. Now, to create the alarm, all you need to do is open the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> with that
template and then enter the time and date.</para>

<para>To create an alarm based on a template, open the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link> preset with
the template details:</para>

<itemizedlist>
<listitem>
<para>Select the <menuchoice>
<guimenu>File</guimenu><guimenuitem>New</guimenuitem>
<guimenuitem>New Alarm From Template</guimenuitem>
</menuchoice> menu item, and then select the desired template.</para>
</listitem>

<listitem>
<para><mousebutton>Right</mousebutton> click on the system tray icon
and choose
<menuchoice><guimenuitem>New Alarm</guimenuitem>
<guimenuitem>New Alarm From Template</guimenuitem></menuchoice>
from the context menu. Then select the desired template.</para>
</listitem>

<listitem>
<para>Open the <link linkend="alarm-edit-dlg">Alarm Edit dialog</link>
in the usual way, and click the
<guibutton>Load Template...</guibutton> button to select a template to
preset the dialog with.</para>
</listitem>
</itemizedlist>

<sect3>
<title>Configuring Templates</title>

<para>You can create, modify or delete templates using the Alarm
Templates dialog, or you can create a new alarm template based on an
existing alarm.</para>

<para>To create a new alarm template, do one of the following:</para>

<itemizedlist>
<listitem>
<para>Display the Alarm Templates dialog by selecting the <menuchoice>
<guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
</menuchoice> menu item, clicking <guibutton>New</guibutton>, and
choosing the alarm type from the list which appears. This displays a
blank Template Edit dialog.</para>
</listitem>

<listitem>
<para>Display the Alarm Templates dialog by selecting the <menuchoice>
<guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
</menuchoice> menu item, select an existing template from the list and
click <guibutton>Copy</guibutton>. This opens the Template Edit dialog
already filled in with a copy of the existing template's
details.</para>
</listitem>

<listitem>
<para>Highlight an alarm in the alarm list and select <menuchoice>
<guimenu>File</guimenu><guimenuitem>Create Template...</guimenuitem>
</menuchoice>. This opens the Template Edit dialog already filled in
with a copy of the selected alarm's details.</para>
</listitem>
</itemizedlist>

<para>To modify an existing template, display the Alarm Templates
dialog by selecting the <menuchoice>
<guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
</menuchoice> menu item and click <guibutton>Edit</guibutton>. This
displays the Template Edit dialog which is described below.</para>

<para>To delete existing templates, display the Alarm Templates
dialog by selecting the <menuchoice>
<guimenu>File</guimenu><guimenuitem>Templates...</guimenuitem>
</menuchoice> menu item, select one or more templates and click
<guibutton>Delete</guibutton>. A confirmation prompt is issued to
prevent accidental deletions.</para>

</sect3>

<sect3>
<title>Template Edit Dialog</title>

<para>The Template Edit dialog is similar to the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link>. The
following controls are different:</para>

<itemizedlist>
<listitem>
<para>Enter the template's name in <guilabel>Template name</guilabel>.
It is the template's name which is displayed in template selection
lists, so it is best to choose a name which will remind you of its
function. Each template's name must be unique.</para>
</listitem>

<listitem>
<para>In the <guilabel>Time</guilabel> group box, select one of:</para>

<itemizedlist>
<listitem>
<para><guilabel>Default time</guilabel> if you do not wish to specify
any trigger time. Alarms based on this template will initially
use the normal default trigger time for new alarms.</para>
</listitem>

<listitem>
<para>Check <guilabel>Time</guilabel> to enter a time when the alarm
is to be triggered.</para>
</listitem>

<listitem>
<para>Check <guilabel>Date only</guilabel> to specify that the alarm
should only have a date, not a time.</para>
</listitem>

<listitem>
<para>Check <guilabel>Time from now</guilabel> to enter how long (in
hours and minutes) after the alarm is created, that it should be
triggered.</para>
</listitem>
</itemizedlist>
</listitem>

<listitem>
<para>In the <guilabel>Recurrence Rule</guilabel> group box in the
<guilabel>Recurrence</guilabel> tab, no day or month need be selected
for weekly or yearly recurrences, respectively.</para>
</listitem>
</itemizedlist>

</sect3>

</sect2>

<sect2 id="calendars">
<title>Alarm Calendars</title>

<para>If you only use one computer and work independently, it may not
matter to you where &kalarm; stores its alarms. But if you need to
access alarms on more than one computer, or in more than one location
on your local computer, you can define <quote>alarm calendars</quote>
to tell &kalarm; to use other alarm calendars additional to, or in
place of, its default ones.</para>

<para>You can view and manipulate calendars via the calendar list,
which can be displayed alongside the alarm list in &kalarm;'s main
window. Alarms from all alarm calendars are shown merged together in
the alarm list. When you save a new alarm, you can set a configuration
option to determine whether it is automatically saved into the default
calendar, or whether you will be prompted to choose a calendar. When
you edit an existing alarm, it is automatically saved back into its
original alarm calendar.</para>

<screenshot>
<screeninfo>Screenshot of the &kalarm; main window, showing the
calendar list</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="mainwindow-calendars.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Main window showing the calendar list</phrase>
</textobject>
</mediaobject>
</screenshot>

<sect3>
<title>Calendar Types and Options</title>

<para>Alarm calendars are categorized by alarm type and storage type.
They can be disabled, set read-only, or made the default calendar for
their alarm type.</para>

<variablelist>
<varlistentry>
<term>Alarm type</term>
<listitem>
<para>The three alarm entity types &ndash; active alarms, archived
alarms and alarm templates &ndash;
are stored in separate alarm calendars. &kalarm; therefore has three
standard default calendars, one for each type (see 
<link linkend="faq">Questions and Answers</link> for details), which
you can change if you wish.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>Storage type</term>
<listitem>
731
<para>&kalarm; handles two alarm calendar storage
732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749
types:</para>

<itemizedlist>
<listitem><para>Local file: Alarms are stored in a single local file
in iCalendar format. &kalarm; uses local file calendars by default
(see <link linkend="faq">Questions and Answers</link> for details).
<quote>Local files</quote>, in addition to files on the local
computer, can include alarm calendars on the local network as long as
their location can be represented by a path name starting with
<literal>/</literal>.</para>
</listitem>

<listitem><para>Local directory: Alarms are stored in a local folder,
each alarm being stored in a separate iCalendar file within the
folder. This storage method has the advantage that in the event of
file corruption, you should lose only one alarm, not the entire
calendar.</para>
</listitem>
750
<!--FIXME not in kf5?
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773
<listitem><para>Remote file: Alarms are stored in a single remote
file in iCalendar format. This storage method allows you to access
your alarm data remotely no matter where you are, or enables alarm
calendars to be viewed by other people. When using remote files,
&kalarm; works with a local cache of the data.</para>

<warning><para>If a remote alarm calendar is shared between users,
changes made by one person may not be automatically made available to
another user, or there could be a time delay before the other user
sees it. So one user could make a change which is then overwritten by
another user without either person noticing what has happened. The
technical reason for this is that a change made by person A will only
be available to person B after person A's cached copy has first been
saved to the remote file, and then person B's cached copy
of the remote file has been reloaded. When and if the calendar is
saved and reloaded depends on the calendar configuration parameters
which each user has set for that alarm calendar.</para>

<para>Ways to avoid this problem include adjusting the calendar save
and reload configuration parameters, or adopting a policy that users
other than the alarm calendar's owner should open it in read-only
mode.</para></warning>
</listitem>
774
-->
775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912
</itemizedlist>
</listitem>
</varlistentry>

<varlistentry>
<term>Enabled/disabled status</term>
<listitem>
<para>Disabling a calendar has the same
effect as removing it, except that it still appears in the calendar
list for easy re-enabling. When disabled, its alarms are ignored and
do not appear in the alarm list or list of templates. When it is
re-enabled, its alarms are once again shown and, if it is an active
alarm calendar, made active.</para>
</listitem>
</varlistentry>

<varlistentry>
<term>Read-only status</term>
<listitem>
<para>A read-only calendar's alarms cannot be
changed or added to. So you cannot edit its alarms, or save new alarms
to it. Also, it is not possible to defer its alarms, since to do so
would need the deferral time to be saved into the alarm. After its
alarms trigger, they are not removed from the calendar and archived
until you or another user accesses the calendar in read-write
mode.</para>

<para>You can set the read-only status of a calendar in the calendar
configuration dialog. However, some calendars cannot be made
writeable, for various reasons:</para>

<itemizedlist>
<listitem><para>If a calendar was created by another application, it
would be unsafe to allow &kalarm; to update it, since differences in
data format might make it unusable by the creating application.</para>
</listitem>

<listitem><para>If the calendar was created by a later version of
&kalarm;, data might be lost if your version of &kalarm; updated
it.</para>
</listitem>

<listitem><para>If the calendar was created by a previous version of
&kalarm;, data could be lost or it could be made unusable for the
previous &kalarm; version if your version of &kalarm; updated it. You
will be prompted whether to convert its format so as to make it
writeable, bearing in mind the potential compatibility problems if the
previous &kalarm; version needs to access it again.</para>
</listitem>

<listitem><para>If you do not have permission to write to the
calendar file or folder.</para>
</listitem>
</itemizedlist>

<para>If you need write access to alarms in a calendar which cannot be
made writeable, you can copy its alarms by importing them into a
writeable calendar using the latter calendar's
<menuchoice><guimenuitem>Import...</guimenuitem></menuchoice> context
menu option (see <link linkend="import">Importing Alarms from External
Calendars</link>).</para>
</listitem>
</varlistentry>

<varlistentry>
<term>Default calendar status</term>
<listitem>
<para>One calendar of each alarm type can optionally be made the
default calendar for that alarm type. New alarms are automatically
saved to the default calendar for the appropriate alarm type, unless
you have selected the prompt option for new alarms and templates in the
<link linkend="preferences-storage">Configuration dialog</link>.</para>
</listitem>
</varlistentry>
</variablelist>

</sect3>

<sect3 id="using-calendars">
<title>Using Calendars</title>

<para>You can view and manipulate calendars via the calendar list,
which can be displayed or hidden by <menuchoice>
<guimenu>View</guimenu><guimenuitem>Show Calendars</guimenuitem>
</menuchoice>. When using the calendar list, first select the alarm
type using the combo box above the list. Then either click on one of
the buttons below the list, or <mousebutton>Right</mousebutton> click
on the appropriate calendar in the list and choose an item from the
context menu. The actions available are:</para>

<variablelist>
<varlistentry>
<term><menuchoice><guimenuitem>Add...</guimenuitem></menuchoice></term>
<listitem>
<para>Add a calendar of the selected type to the list. You are asked
to choose a storage type, following which the calendar configuration
dialog is displayed, where you can enter the location of the calendar
and its characteristics. If there is no existing alarm calendar in
the specified location, a new one will be created.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Remove</guimenuitem></menuchoice></term>
<listitem>
<para>Remove the selected calendar from the list. The calendar itself
is left intact; it is simply removed from the list, and may
subsequently be reinstated in the list if desired.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Edit...</guimenuitem></menuchoice></term>
<listitem>
<para>Edit the selected calendar. This displays the configuration
dialog for the selected calendar.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Reload</guimenuitem></menuchoice></term>
<listitem>
<para>Reload the selected calendar. The calendar is re-read from its
storage location, ensuring that there is no discrepancy between what
&kalarm; displays and the current state of the calendar. If the
calendar is shared with other users, any changes which they have made
will now be seen by &kalarm;.</para>

<warning><para>If you reload a remote calendar, any changes to alarms
which you have made since the calendar was last saved will be lost.
Also, any alarms which have expired since the last save may be
retriggered.</para></warning>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Import...</guimenuitem></menuchoice></term>
<listitem>
David Jarvie's avatar
David Jarvie committed
913
<para>Import alarms from external calendar files into the selected
914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961
calendar. This is described in
<link linkend="import">Importing Alarms from External Calendars</link>.
This option is not available for disabled or read-only
calendars.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Export...</guimenuitem></menuchoice></term>
<listitem>
<para>Export all the alarms in the selected calendar to an external calendar
file. This is described in
<link linkend="export">Exporting Alarms to External Calendars</link>.
This option is not available for disabled calendars.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Show Details</guimenuitem></menuchoice></term>
<listitem>
<para>Display details about the selected calendar. This shows the
calendar's location, storage type and status information.
</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Use as Default</guimenuitem></menuchoice></term>
<listitem>
<para>Make the selected calendar the default calendar for the selected
calendar type. This option is not available for disabled or read-only
calendars.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Set Color...</guimenuitem></menuchoice></term>
<listitem>
<para>Select a background color for highlighting this calendar's alarms
in the alarm list. This enables you to see at a glance which alarms
belong to a particular calendar.</para>
</listitem>
</varlistentry>

<varlistentry>
<term><menuchoice><guimenuitem>Clear Color</guimenuitem></menuchoice></term>
<listitem>
<para>Clear color highlighting for this calendar's alarms in the alarm
962 963
list. The option only appears after <guimenuitem>Set Color</guimenuitem> has
been used on this calendar.</para>
964 965
</listitem>
</varlistentry>
966

967 968 969 970 971 972 973 974 975 976 977
</variablelist>

</sect3>

</sect2>

<sect2 id="import">
<title>Importing Alarms from External Calendars</title>

<para>You can import alarms from other calendar files into &kalarm;.
The import function scans the selected calendar
David Jarvie's avatar
David Jarvie committed
978
files for events containing alarms, and copies them (with new unique
979 980 981 982 983 984 985 986 987
IDs) into &kalarm;'s calendar. Events without alarms, and calendar
entries other than events, are ignored. There are two ways to import
alarms:</para>

<itemizedlist>
<listitem>
<para>Use <menuchoice><guimenu>File</guimenu>
<guimenuitem>Import Alarms...</guimenuitem></menuchoice> to import
alarms of all types (active alarms, archived alarms and alarm
David Jarvie's avatar
David Jarvie committed
988
templates) from the calendar files.</para>
989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224

<para>If you have configured 
<link linkend="calendars">alarm calendars</link>, alarms of each type
will be added to the appropriate default calendar, or if you have
selected the prompt option for new alarms and templates in the
<link linkend="preferences-storage">Configuration dialog</link>, you will
be prompted for the calendar to use.</para>
</listitem>

<listitem>
<para><mousebutton>Right</mousebutton> click on a calendar in the
calendar list, and choose
<menuchoice><guimenuitem>Import...</guimenuitem></menuchoice> from the
context menu. This imports alarms of the currently selected type into
that calendar. For example, if the selected calendar type is alarm
templates, alarm templates (and not active alarms or archived alarms)
will be imported.</para>
</listitem>
</itemizedlist>

<warning><para>If you import alarms from calendar files which were
created by applications other than &kalarm;, the alarms may be changed
by the import process &ndash; even alarm times may change. This depends
on the data storage conventions used by the other application, and is
unavoidable if those conventions differ from what &kalarm; expects.
Always check imported alarms for unexpected changes, and adjust them
as necessary.</para></warning>

</sect2>

<sect2 id="export">
<title>Exporting Alarms to External Calendars</title>

<para>You can export alarms from &kalarm; to other calendar files,
either the alarms currently selected in the alarm list, or all the
alarms from an alarm calendar. The methods to do this are given below.
Whichever method is used, you can either create a new calendar file
or append the exported alarms to an existing calendar file. To append
the alarms, check <guilabel>Append to existing file</guilabel> in the
file selection dialog; otherwise, any existing file is
overwritten.</para>

<itemizedlist>
<listitem>
<para>To export the alarms currently selected in the alarm list,
<mousebutton>Right</mousebutton> click on the selection and choose
<menuchoice><guimenuitem>Export...</guimenuitem></menuchoice> from the
context menu, or use <menuchoice><guimenu>File</guimenu>
<guimenuitem>Export Selected Alarms...</guimenuitem></menuchoice> in
the main menu.</para>
</listitem>

<listitem>
<para>To export all the alarms from a calendar,
<mousebutton>Right</mousebutton> click on a calendar in the calendar
list, and choose
<menuchoice><guimenuitem>Export...</guimenuitem></menuchoice> from the
context menu.</para>
</listitem>
</itemizedlist>

</sect2>

<sect2 id="birthdays">
<title>Importing Birthdays from &kaddressbook;</title>

<para>You can set up display alarms for birthdays stored in
&kaddressbook;, by <menuchoice><guimenu>File</guimenu>
<guimenuitem>Import Birthdays...</guimenuitem></menuchoice>. This
displays a dialog which allows you to select which birthdays to create
alarms for.</para>

<itemizedlist>
<listitem>
<para>In the <guilabel>Alarm Text</guilabel> group box, you can set up
the text to be displayed in the birthday alarm messages. The message
text is created by combining the <guilabel>Prefix</guilabel> text
followed by the person's name followed by the
<guilabel>Suffix</guilabel> text. No spaces are added, so remember to
include any necessary trailing space in <guilabel>Prefix</guilabel>
and leading space in <guilabel>Suffix</guilabel>.</para>

<note><para>If you change the alarm text, the birthday selection list
will be re-evaluated.</para></note>
</listitem>

<listitem>
<para>In the <guilabel>Select Birthdays</guilabel> list, select the
birthdays which you want to create alarms for. Note that the list
shows only those entries in &kaddressbook; which contain a birthday
and which do not already have a birthday alarm in the format currently
defined in the <guilabel>Alarm Text</guilabel> group box.</para>
</listitem>

<listitem>
<para>The remaining controls are the same as for
<guilabel>Text</guilabel> alarms in the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
</listitem>
</itemizedlist>

<para>If you have configured 
<link linkend="calendars">alarm calendars</link>, the alarms will be
added to the default active alarm calendar, or if you have selected the
prompt option for new alarms and templates in the
<link linkend="preferences-storage">Configuration dialog</link>, you will
be prompted for the calendar to use.</para>

</sect2>

<sect2 id="undo">
<title>Undo / Redo</title>

<para>You can undo and redo the most recent changes which you have
made during the current session of &kalarm;. Most actions can be
undone, including creation, edit and deletion of alarms and alarm
templates, and reactivation of alarms. To prevent excessive resources
being used by the undo history, the number of changes stored is
limited to the last 12.</para>

<para>To undo the last change, select <menuchoice>
<guimenu>Edit</guimenu><guimenuitem>Undo</guimenuitem></menuchoice>.
To redo the last change which was undone, select <menuchoice>
<guimenu>Edit</guimenu><guimenuitem>Redo</guimenuitem>
</menuchoice>.</para>

<para>To undo a change other than the last one, click on the
<guibutton>Undo</guibutton> button in the toolbar and hold the mouse
button down. A list of actions will be displayed from which you can
choose the one to undo. If you don't see the action which you are
looking for, remember that you may need to undo more recent changes
first, which the desired change depends on. For example, if you edited
an alarm and then deleted it, you cannot undo the edit until you have
first undone the deletion.</para>

<para>Redoing a change other than the last one can be done in a
similar manner, using the <guibutton>Redo</guibutton> toolbar
button.</para>

</sect2>
</sect1>

<sect1 id="alarm-edit-dlg">
<title>The Alarm Edit Dialog</title>

<para>The Alarm Edit dialog enables you to view and edit an alarm.
When you first use &kalarm;, a simplified form of the dialog is
displayed, with only a small number of options visible. To see all
options, click the <guibutton>More Options</guibutton> button; to
revert to the simplified dialog, click the
<guibutton>Less Options</guibutton> button. &kalarm; always remembers
your last display choice whenever the Alarm Edit dialog is
redisplayed.</para>

<para>You can configure the default values of many of the settings in
the Alarm Edit dialog using the
<link linkend="preferences-edit">Configuration dialog's Edit tab</link>.</para>

<screenshot>
<screeninfo>Screenshot of the simplified Alarm Edit dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="editwindow-simple.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Simplified Alarm Edit dialog for a display alarm</phrase>
</textobject>
<caption><para>Simplified Alarm Edit dialog for a display alarm</para></caption>
</mediaobject>
</screenshot>

<screenshot>
<screeninfo>Screenshot of the Alarm Edit dialog showing all options</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="editwindow.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>Alarm Edit dialog for a display alarm, showing all options</phrase>
</textobject>
<caption><para>Alarm Edit dialog for a display alarm, showing all options</para></caption>
</mediaobject>
</screenshot>

<sect2>
<title>Alarm Action</title>

<para>The controls in the <guilabel>Action</guilabel> group box vary
depending on the type of alarm being edited.</para>

<sect3>
<title>Display Alarms</title>

<para>Display alarms display a window when the alarm triggers. Select
the method used to generate the alarm window contents, using the combo
box at the top:</para>

<itemizedlist>
<listitem>
<para><guilabel>Text message</guilabel> in order to enter an alarm
message text (which may include newlines) in the edit box.</para>
</listitem>

<listitem>
<para><guilabel>File contents</guilabel> to enter the path or &URL; of
a text or image file whose contents are to be displayed in the alarm
message. Use the button beside the edit box to display a file selection
dialog. The <guilabel>Speak</guilabel> option is not available for this
type of alarm.</para>
</listitem>

<listitem>
<para><guilabel>Command output</guilabel> to specify that the alarm
message text will be generated by a command which is executed when the
alarm triggers. See
<link linkend="command-alarm">Command Alarms</link> below for details
of how to enter the command or command script to execute.</para>
</listitem>
</itemizedlist>

<para>The controls available for display alarms are:</para>

<itemizedlist>
<listitem>
<para>The <guilabel>Sound</guilabel> option allows you to select
whether an audible alarm should sound when the alarm message is
displayed. Choose:</para>

<itemizedlist>
<listitem>
<para><guilabel>None</guilabel> to display the alarm silently.</para>
</listitem>

<listitem>
<para><guilabel>Beep</guilabel> to sound a beep.</para>
</listitem>
1225

1226 1227
<listitem>
<para><guilabel>Speak</guilabel> to have the alarm message spoken as
1228 1229
well as being displayed. This option is only available if you have the
&Qt; Speech module installed and working.</para>
1230
</listitem>
1231

1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294
<listitem>
<para><guilabel>Sound file</guilabel> to play an audio file. Use the
button on the right to display the Sound File dialog which lets you
select a file to play and set volume and repetition options. If you
hover the mouse over the selector, a tooltip will display the audio file
currently selected.</para>

<para>In the Sound File dialog:</para>

<itemizedlist>
<listitem>
<para>Enter the sound file path, or use the button beside the
edit box to display a file selection dialog. You can listen to the
selected file by clicking the play button to the left of the edit
field. That button then changes function to allow you to stop playing
when you have heard enough.</para>
</listitem>

<listitem>
<para>Check <guilabel>Repeat</guilabel> to continually repeat the
audio file for as long as the alarm is displayed. (The alarm message
window contains a button to stop playing the sound should you need
silence but still want to display the alarm.)</para>
</listitem>

<listitem>
<para>Check <guilabel>Volume</guilabel> and adjust the slider
control if you want to adjust the volume at which the audio file is
played.</para>
</listitem>

<listitem>
<para>If you wish, you can fade the volume. Fading means to start
playing the audio file at one volume and gradually change to the final
volume, over a specified time interval. The final volume is that
entered in <guilabel>Volume</guilabel> above. To enable fade, check
<guilabel>Fade</guilabel>, and then enter the fade period in seconds
in the <guilabel>Fade time</guilabel> field, and adjust the
<guilabel>Initial volume</guilabel> slider.</para>
</listitem>
</itemizedlist>

<tip><para>You can use the <guibutton>Try</guibutton> button to test out
the selected sound levels.</para></tip>
</listitem>
</itemizedlist>
</listitem>

<listitem>
<para>Use the <guibutton>Font &amp; Color...</guibutton> button to
select a font, and foreground and background colors, for the alarm
message. In the <guilabel>Choose Alarm Font &amp; Color</guilabel>
dialog, check <guilabel>Use default font</guilabel> to display the
message in whatever font is configured as the default at the time
the message is displayed. To choose a specific font for the message,
uncheck <guilabel>Use default font</guilabel>. (The default font and
colors can be set in the
<link linkend="preferences-edit">Configuration dialog</link>.)</para>

<para>The selected colors are shown in the alarm message text entry
field.</para>
</listitem>

1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321
<listitem>
<para>The <guilabel>Display method</guilabel> option lets you select
how to display the alarm message. Choose:</para>

<itemizedlist>
<listitem>
<para><guilabel>Window</guilabel> to display the alarm message in a
window. This option allows the full range of options to be used when
configuring the alarm.</para>
</listitem>

<listitem>
<para><guilabel>Notification</guilabel> to use the standard
notification system to display the alarm message. Due to the
limitations of the notification system, the following alarm
configuration options cannot be used with notifications: setting font
and color; setting an audio file to play when the alarm is displayed;
confirmation of alarm acknowledgement; automatic closing of the
display on expiry of the late-cancellation time.</para>
</listitem>
</itemizedlist>

<para>See the
<link linkend="message-display">Alarm Message Display</link> section
for further details about how alarm messages are displayed.</para>
</listitem>

1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428
<listitem>
<para>Use the <guibutton>Special Actions...</guibutton> button to
specify shell commands to execute before or after displaying the
alarm. In the <guilabel>Special Alarm Actions</guilabel>
dialog:</para>

<itemizedlist>
<listitem>
<para>In the <guilabel>Pre-alarm action</guilabel> field, enter a
shell command to execute before the alarm is displayed.  Note that
&kalarm; will wait for the command to complete before displaying the
alarm.</para>

<para>A pre-alarm action is only executed once when the alarm message
is initially displayed, including when a reminder message is replaced
by the actual alarm message. It is <emphasis>not</emphasis> executed
in any of the following circumstances:</para>

<itemizedlist>
<listitem><para>When a reminder message is displayed.</para></listitem>
<listitem><para>When the message is redisplayed after deferring the
alarm, unless <guilabel>Execute for deferred alarms</guilabel> is
checked.</para></listitem>
<listitem><para>When the message was displaying at the time you logged
off and is then restored when you log back in.</para></listitem>
<listitem><para>When a recurring alarm triggers but the alarm message
(or a deferred alarm message) from a previous occurrence of the alarm
is still visible; in other words, when the previous occurrence of the
alarm has not yet been acknowledged.</para></listitem>
</itemizedlist>

<para>The pre-alarm action can be used to control whether to display
the alarm message:</para>

<itemizedlist>
<listitem><para>Check <guilabel>Cancel alarm on error</guilabel> to
cancel the alarm if the pre-alarm command returns an error status.
This will prevent the alarm message from being displayed, and any
post-alarm action from being executed.</para></listitem>

<listitem><para>Normally, if the pre-alarm command returns an error,
an error message is displayed and an error indication is shown in the
alarm list. These error notifications can be prevented by checking
<guilabel>Do not notify errors</guilabel>.</para></listitem>
</itemizedlist>
</listitem>

<listitem>
<para>In the <guilabel>Post-alarm action</guilabel> field, enter a
shell command to execute when the alarm is acknowledged (whether by
clicking <guibutton>Close</guibutton> or by using the close button
in the window's titlebar). It is <emphasis>not</emphasis>
executed in any of the following circumstances:</para>

<itemizedlist>
<listitem><para>When a reminder message is closed.</para></listitem>
<listitem><para>When you defer the alarm, except when the deferred
alarm is finally acknowledged.</para></listitem>
<listitem><para>When the alarm message is closed due to logging
out.</para></listitem>
</itemizedlist>
</listitem>
</itemizedlist>

<para>See <link linkend="command-alarm">Command Alarms</link> below
for details of how shell commands are executed.</para>

</listitem>
</itemizedlist>
</sect3>

<sect3 id="command-alarm">
<title>Command Alarms</title>

<para>Command alarms execute a command without displaying any alarm
message.</para>

<note><para>This alarm type is not available if &kde; is running in
kiosk mode.</para></note>

<para>When the command is executed, the environment variable
<envar>KALARM_UID</envar> contains the event UID for the alarm. Note
that when the command is executed from the Alarm Edit dialog's
<guibutton>Try</guibutton> button, <envar>KALARM_UID</envar> will be
blank if it is a new alarm, or if the alarm has been modified in the
dialog, because the alarm only acquires a UID when it is saved in the
alarm calendar.</para>

<para>The controls available for command alarms are:</para>

<itemizedlist>
<listitem>
<para>The <guilabel>Enter a script</guilabel> check box lets you choose
whether to enter a shell command line or a script.</para>

<para>If this option is unchecked, you can enter a shell command line
to execute. The command is passed straight to the default shell (defined
by the <envar>SHELL</envar> environment variable), and may include
whatever options, parameters, piped commands, &etc; are permitted by
the shell in a single line command.</para>

<para>If this option is checked, you can enter the text of a script to
execute. Remember to include a first line such as
<literal>#!/bin/bash</literal> to ensure that the correct command
interpreter is invoked.</para>
</listitem>

1429 1430 1431 1432 1433
<listitem><para>If the command returns an error, an error message is
normally displayed, and an error indication is shown in the alarm
list. The error notification message can be prevented by checking
<guilabel>Do not notify errors</guilabel>.</para></listitem>

1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499
<listitem>
<para>Use the <guilabel>Command Output</guilabel> group box to specify
what you want to be done with any terminal output which the command
produces when it executes.</para>

<itemizedlist>
<listitem>
<para>Check <guilabel>Execute in terminal window</guilabel> to cause
the command to be executed in a terminal window. You can choose
which type of terminal window should be used in the
<link linkend="preferences-general">Configuration dialog</link>.</para>
</listitem>

<listitem>
<para>Check <guilabel>Log to file</guilabel> to save the command's
output in a file. The output, prefixed by a heading showing the time
at which the command was scheduled to run, will be appended to any
existing contents of the file. Enter the file name in the edit box, or
use the button beside the edit box to display a file selection
dialog.</para>
</listitem>

<listitem>
<para>Check <guilabel>Discard</guilabel> to throw away the command's
output.</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>
</sect3>

<sect3>
<title>Email Alarms</title>

<para>Email alarms send an email without displaying any alarm
message.</para>

<para>Fill in the recipients' addresses, the email subject line and the
message body in the three edit fields. Use the button beside the
addressee edit box to display your &kde; address book from which you
can select email recipients. Attachments may be added using the
<guibutton>Add...</guibutton> button. Note that attached files must
still exist when the alarm is triggered; no copy is stored at the time
the alarm is configured. To remove an attachment, highlight it in the
drop-down list and click the <guibutton>Remove</guibutton>
button.</para>

<para>Set the following options:</para>

<itemizedlist>
<listitem>
<para>The <guilabel>From</guilabel> combo box allows you to select
which &kmail; identity to use as your email address for sending the
email. This option only appears if your <guilabel>From</guilabel>
email address in the
<link linkend="preferences-email">Configuration dialog</link> is set to
<guilabel>Use &kmail; identities</guilabel>. Otherwise your email
address is preset in the
<link linkend="preferences-email">Configuration dialog</link>, rendering
this option inapplicable.</para>
</listitem>

<listitem>
<para>Check <guilabel>Copy email to self</guilabel> to send a blind
copy of the email to yourself when the alarm is triggered. The email
address to which the copy will be sent may be set in the
1500
<link linkend="preferences-email">Configuration dialog</link>, the
David Jarvie's avatar
David Jarvie committed
1501
default being your email address set in &kmail; or the &systemsettings;.</para>
1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612
</listitem>
</itemizedlist>

</sect3>

<sect3>
<title>Audio Alarms</title>

<para>Audio alarms play an audio file without displaying any alarm
message.</para>

<para>Set the following options:</para>

<itemizedlist>
<listitem>
<para>Enter the sound file path, or use the button beside the
edit box to display a file selection dialog.</para>
</listitem>

<listitem>
<para>Check <guilabel>Repeat</guilabel> to continually repeat the
audio file until the <guilabel>Stop Play</guilabel> option is
selected. To stop playing the file, select the
<menuchoice><guimenu>Actions</guimenu>
<guimenuitem>Stop Play</guimenuitem></menuchoice> menu option, or
<mousebutton>Right</mousebutton> click on the system tray icon
and choose
<menuchoice><guimenuitem>Stop Play</guimenuitem></menuchoice>
from the context menu. If you wish, you can set up a global
shortcut key for this action.</para>
</listitem>

<listitem>
<para>Check <guilabel>Volume</guilabel> and adjust the slider
control if you want to adjust the volume at which the audio file is
played.</para>
</listitem>

<listitem>
<para>If you wish, you can fade the volume. Fading means to start
playing the audio file at one volume and gradually change to the final
volume, over a specified time interval. The final volume is that
entered in <guilabel>Volume</guilabel> above. To enable fade, check
<guilabel>Fade</guilabel>, and then enter the fade period in seconds
in the <guilabel>Fade time</guilabel> field, and adjust the
<guilabel>Initial volume</guilabel> slider.</para>
</listitem>
</itemizedlist>
</sect3>
</sect2>

<sect2>
<title>Deferral</title>

<para>If the alarm is a recurring alarm and it was deferred after it
was last displayed, the <guilabel>Deferred Alarm</guilabel> group box
shows the time the alarm was deferred to.
<guibutton>Change...</guibutton> displays a dialog which allows you to
change the deferred time or to cancel the deferral.</para>

</sect2>

<sect2>
<title>Time</title>

<para>In the <guilabel>Time</guilabel> group box, select either</para>

<itemizedlist>
<listitem>
<para><guilabel>At date/time</guilabel> to enter the date and time
when the alarm is to be triggered. Check <guilabel>Any time</guilabel>
if you want to specify only a date for the alarm: in this case the
alarm will be displayed at the first opportunity on or after the
configured start-of-day time, on the specified date.
(<link linkend="preferences-time">Configuring &kalarm;</link>
describes how to set the start-of-day time.)</para>

<para>For a non-recurring alarm, the date/time which you enter must be
in the future, or if you enter only a date it must be today or later.
For a recurring alarm, there are no such restrictions since the start
date/time will be automatically adjusted to the first recurrence due
after the current time.</para>
</listitem>

<listitem>
<para><guilabel>Time from now</guilabel> to enter how long after now
(in hours and minutes) the alarm should be triggered.</para>
</listitem>
</itemizedlist>

<para>If desired, choose a time zone to apply to the alarm. This time
zone is used for all dates and times relating to this alarm, including
recurrence and exception dates and times. Normally, you should leave
the time zone controls unchanged unless you have a good reason to
change them.</para>

<para>The time zone controls are displayed only when the selected time
zone is different from the default time zone set in the
<link linkend="preferences-time">Configuration dialog</link>, or if
you click the <guibutton>Time Zone...</guibutton> button.</para>

<itemizedlist>
<listitem>
<para>In the combo box, choose the time zone which this alarm is to
use. When creating a new alarm, this is initially set to the time zone
selected in the
<link linkend="preferences-time">Configuration dialog</link>, which
will be your computer's time zone unless you have changed it.</para>
</listitem>

<listitem>
1613 1614 1615
<para>Select <guilabel>System time zone</guilabel> if you want to use
the local computer time zone (on whichever computer &kalarm; happens to
be running on at the time).</para>
1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917
</listitem>
</itemizedlist>

</sect2>

<sect2>
<title>Reminder</title>

<para>For a display alarm, check <guilabel>Reminder</guilabel> if you
want to display a reminder either before or after the main alarm and
each of its recurrences (if any). Enter how long in advance or
afterwards, using the edit controls beside the check box. Note that
if the alarm recurs, the reminder period is normally limited to
being less than the recurrence or sub-repetition interval.</para>

<note><para>Reminders are not displayed for sub-repetitions within a
recurrence. Reminders are only shown for each main recurrence of the
alarm.</para></note>

<para>If the alarm recurs, check <guilabel>Reminder for first
recurrence only</guilabel> if you only want a reminder for the alarm's
first recurrence. If this is checked, and it is an advance reminder,
the reminder period is not subject to the normal limit of being less
than the recurrence or sub-repetition interval.</para>


</sect2>

<sect2>
<title>Cancelation</title>

<para>The late-cancelation options determine how an alarm is treated
after its scheduled time:</para>

<itemizedlist>
<listitem>
<para>The <guilabel>Cancel if late</guilabel> check box determines what
happens if the alarm cannot be triggered at its scheduled time.</para>

<para>Check this box to cancel the alarm if it cannot be triggered
within a specified time period after the right time. The time period
is selected using controls which appear when you check the box. For
example, if you enter a time period of 1 hour, the alarm will be
triggered at the first opportunity up to an hour after it is due, but
if it cannot be triggered within an hour its activation will be
canceled.</para>

<note><para>The lateness of date-only alarms, &ie; ones for which the
<guilabel>Any time</guilabel> option is selected, is calculated from
the start-of-day time on the alarm's scheduled date.</para></note>

<para>Leave the box unchecked to trigger the alarm at the first
opportunity starting at the scheduled time, regardless of how late it
is.</para>

<note><para>An alarm can only be triggered while you are logged in,
and while both X and &kalarm; are running.</para></note>
</listitem>

<listitem>
<para>Check <guilabel>Auto-close window after this time</guilabel> if
you want the alarm window to be automatically closed if it is still
showing at the expiry of the late-cancelation time.</para>
</listitem>
</itemizedlist>

</sect2>

<sect2>
<title>Recurrence</title>

<para>Specify whether or how the alarm should be repeated using the
<guilabel>Recurrence</guilabel> tab.</para>

<note><para>The alarm's basic repetition characteristics are displayed
for convenience in the title of the <guilabel>Recurrence</guilabel>
tab. The recurrence interval is shown first, followed by any
sub-repetition interval set up using the
<guibutton>Sub-Repetition</guibutton> button.</para></note>

<para>In the <guilabel>Recurrence Rule</guilabel> group box, set the
recurrence type or time period as follows:</para>

<itemizedlist>
<listitem><para>To trigger the alarm once only, select <guilabel>No
recurrence</guilabel>.</para></listitem>

<listitem><para>Select <guilabel>At login</guilabel> to trigger the
alarm whenever you log in, until its scheduled end time. Then, at its
scheduled end time it will finally be triggered one last time. (Note
that an alarm repeated at login will also be triggered any time you
restart &kalarm;.)</para></listitem>

<listitem>
<para>To make the alarm recur at regular intervals, select one of the
time period types and then enter in the
<guilabel>Recur every</guilabel> box how many time periods should
elapse between recurrences. For example, to repeat
every fortnight, you could select <guilabel>Daily</guilabel> and enter
a value of 14, or select <guilabel>Weekly</guilabel> and enter a value
of 2. Depending on the time period type selected, you may have further
options:</para>

<itemizedlist>
<listitem>
<para>For a weekly recurrence, check each day in the week on which you
wish to trigger the alarm.</para>
</listitem>

<listitem>
<para>For a monthly recurrence, you may select either a fixed date, or
a position (&eg; the second Tuesday).</para>
</listitem>

<listitem>
<para>For a yearly recurrence, you may select either a fixed day in
the month, or a position in a month (&eg; the last Saturday in
May). Check each month of the year in which you wish to trigger the
alarm.</para>

<para>If you set up a yearly recurrence for February 29th, you can
specify how it is to be handled in non-leap years by selecting the
appropriate
<guilabel>February 29th alarm in non-leap years</guilabel>
option:</para>

<itemizedlist>
<listitem><para><guilabel>None</guilabel>: the alarm will occur on
February 29th in leap years, but will be suppressed in non-leap
years.</para>
</listitem>

<listitem><para><guilabel>28 Feb</guilabel>: the alarm will occur on
February 29th in leap years, and on February 28th in non-leap
years.</para>
</listitem>

<listitem><para><guilabel>1 Mar</guilabel>: the alarm will occur on
February 29th in leap years, and on March 1st in non-leap
years.</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>

<tip><para>To set a daily alarm to occur only on weekdays, use a
weekly recurrence and check each weekday.</para></tip>

</listitem>
</itemizedlist>

<para>In the <guilabel>Recurrence End</guilabel> group box, set the
overall recurrence time span as follows:</para>

<itemizedlist>
<listitem><para>Select <guilabel>No end</guilabel> to continue the
repetitions indefinitely.</para></listitem>

<listitem><para>Select <guilabel>End after</guilabel> to specify the
total number of occurrences of the alarm.</para></listitem>

<listitem><para>Select <guilabel>End by</guilabel> to specify the
date/time until which the alarm will be repeated. Note that this uses
the same time zone as the alarm's start time.</para>

<note><para>The end date/time determines when the last main recurrence
will be, but does not limit sub-repetitions. If sub-repetitions are
configured, they will trigger as normal after the last main recurrence,
regardless of the end date/time.</para></note>
</listitem>
</itemizedlist>

<para>The <guilabel>Exceptions</guilabel> group box allows you to
exclude certain date/times from the recurrence which you have set up.
Note that these controls are not shown in the simplified form of the
Alarm Edit dialog: to see them, click
<guibutton>More Options</guibutton>.</para>

<itemizedlist>
<listitem>
<para>The list of exceptions (&ie; excluded date/times) is shown on
the left. To add a new exception, enter a date on the right and press
<guibutton>Add</guibutton>. To change an exception, highlight it in
the list, enter the new date on the right and press
<guibutton>Change</guibutton>. To delete an exception, highlight it
in the list and press <guibutton>Delete</guibutton>.</para>
</listitem>

<listitem>
<para>You can restrict an alarm not to occur on holidays by checking
<guilabel>Exclude holidays</guilabel>. This does not change the way
the alarm is scheduled; it simply suppresses the alarm whenever it
happens to trigger on a holiday. You can select your holiday country
or region in the
<link linkend="preferences-time">Configuration dialog</link>.</para>
</listitem>

<listitem>
<para>You can restrict an alarm to occur only during working time by
checking <guilabel>Only during working hours</guilabel>. This does not
change the way the alarm is scheduled; it simply suppresses the alarm
whenever it happens to trigger outside working hours. Work days and
working hours are set in the
<link linkend="preferences-time">Configuration dialog</link>.</para>
</listitem>
</itemizedlist>

<sect3>
<title>Sub-Repetition</title>

<para>You can use the <guibutton>Sub-Repetition</guibutton> button to
set up a repetition within a repetition. In this case, each time the
alarm is due as specified in the main recurrence, instead of being
triggered just once it is triggered repeatedly in accordance with your
sub-repetition specification. For example, to set up an alarm which
repeats every hour from noon to 6 pm each Thursday, you would set up a
weekly recurrence on Thursday at 12:00, and use the Sub-Repetition
dialog to specify an interval of 1 hour and either a count of 6 or a
duration of 6 hours.</para>

<para>In the Sub-Repetition dialog which is displayed when you click
the <guibutton>Sub-Repetition</guibutton> button, check
<guilabel>Repeat every</guilabel> to set up a repetition, or uncheck
it to remove the repetition. If <guilabel>Repeat every</guilabel> is
checked, set up the repetition as follows:</para>

<itemizedlist>
<listitem><para>Enter the time interval between repetitions in the
controls beside <guilabel>Repeat every</guilabel>. Select the desired
time units (&eg; <guilabel>days</guilabel>) and then enter the number
of units.</para>
</listitem>

<listitem><para>Specify either the repetition count or its
duration:</para>

<itemizedlist>
<listitem><para>Select <guilabel>Number of times</guilabel> to enter
how many times the alarm should be triggered after the main
recurrence. So, for example, to make the alarm occur 4 times at each
main recurrence, &ie; 3 additional times, you should enter 3
here.</para>
</listitem>

<listitem><para>Select <guilabel>Duration</guilabel> to enter the
total time period during which the alarm should be repeated. This need
not be an exact multiple of the repetition interval; it will
automatically be rounded down when you click
<guibutton>OK</guibutton>.</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>

<note><para>To prevent overlapping sub-repetitions for the same alarm,
a sub-repetition's duration is restricted to be less than the longest
interval between main recurrences. Each time the alarm recurs as
specified in the main recurrence, any still active sub-repetition
which started at the previous recurrence is automatically
cancelled.</para></note>

</sect3>
</sect2>

<sect2>
<title>Other Controls</title>

<para>For display alarms, the
<guilabel>Confirm acknowledgment</guilabel> check box lets you specify
whether you will be prompted for confirmation when you close the alarm
message window. This may be used as a safeguard against accidental
acknowledgment of alarms.</para>

<para>Select <guilabel>Show in &korganizer;</guilabel> to add the
alarm to &korganizer;'s active calendar, where it will appear as an
event without an alarm. This option allows you to track alarms in
&korganizer; while still making use of &kalarm;'s functions.</para>

<note><para>If you later modify or delete the alarm in &kalarm;, the
&korganizer; event will be modified or deleted correspondingly. But
if you change the event in &korganizer;, the alarm in &kalarm; will
not be affected.</para></note>

<para>Press the <guibutton>Load Template</guibutton> button to select
a template to preset the dialog with, as described in <link
linkend="create-edit">Creating and Manipulating Alarms</link>. </para>

<para>Press the <guibutton>Try</guibutton> button to test the alarm
and check whether it works correctly. The alarm is executed just as
if it had been scheduled in the normal way. In the case of an audio
alarm, press the <guibutton>Try</guibutton> button a second time to
stop playing the sound file.</para>

<para>Press the <guibutton>OK</guibutton> button
when all details are correct, to add the alarm to the scheduled
list. Note that when editing an existing alarm, the
<guibutton>OK</guibutton> button is disabled while no changes have
been made.</para>

</sect2>
</sect1>

1918 1919 1920 1921 1922 1923 1924 1925 1926
<sect1 id="message-display">
<title>Alarm Message Display</title>

<para>Alarm messages may be displayed in windows or as notifications,
depending on the option chosen in the 
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link>. These two
display options are described below.</para>

<sect2 id="message-window">
1927 1928
<title>Alarm Message Window</title>

1929 1930 1931
<para>Alarm messages which are displayed in windows provide the
fullest functionality.</para>

1932
<para>When an alarm message is due, it is displayed on each
1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
desktop and cannot be covered by ordinary windows, to ensure that
you see it. The message window shows the time for which the alarm was
scheduled, so that you can see when it popped up if you were away from
the computer at the time. If the alarm's scheduled time is in a
different time zone from your local computer's setting, its time zone
will also be displayed. (For reminder messages, the date/time shown is
that for the main alarm or its recurrence, not the reminder message
time, and the window title is <quote>Reminder</quote>.)</para>

<para>Alarm message windows remain visible until you acknowledge them,
unless <guilabel>Auto-close window after late-cancelation
time</guilabel> was checked in the <link
linkend="alarm-edit-dlg">Alarm Edit dialog</link>. In the case of a
recurring alarm, if an unacknowledged message window remains from a
previous occurrence of the alarm, the existing window is simply popped
up when the alarm recurs. This avoids having to acknowledge multiple
copies of the same message should you not wish, or be unable, to
acknowledge a message at the time it appears.</para>

<para>The alarm message window provides whichever of the following
options are applicable to the displayed alarm:</para>

<itemizedlist>
<listitem>
<para>Acknowledge the alarm by clicking the
<guibutton>Close</guibutton> button. This closes the window (after a
prompt for confirmation, if you selected
<guilabel>Confirm acknowledgment</guilabel>).</para>
</listitem>

<listitem>
<para>Edit the alarm by clicking the <guibutton>Edit...</guibutton>
button. This displays the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
</listitem>

<listitem>
<para>Display options to defer the alarm until later by clicking the
<guibutton>Defer...</guibutton> button. Then select
<guilabel>Defer to date/time</guilabel> to enter the date and time
when the message is to be redisplayed, or select <guilabel>Defer for
time interval</guilabel> to enter how long after now (in hours and
minutes) the message should be redisplayed. Then click
<guibutton>OK</guibutton> to defer the alarm message and close its
window.</para>

<note><para>The time the alarm is deferred to must be earlier than its
next scheduled occurrence or next advance reminder. For this reason,
the <guibutton>Defer...</guibutton> button in the alarm message window
and the <guibutton>OK</guibutton> button in the Deferral dialog are
disabled one minute before the next occurrence or advance
reminder.</para>
<para>Note that if a reminder is configured <emphasis>after</emphasis>
the alarm, you <emphasis>can</emphasis> defer the alarm past its
reminder time. In this case, the reminder will be
suppressed.</para></note>

<note><para>The <guibutton>Defer...</guibutton> button is not
available for alarms which are displayed at login due to the
<guilabel>Repeat at login</guilabel> option having been
selected.</para></note>
</listitem>

<listitem>
<para>Stop playing the alarm's sound file by clicking the button
showing the <quote>stop playing</quote> symbol.</para>
</listitem>

<listitem>
<para>If the alarm message was created by dragging an email from
&kmail;, you can directly access the email in &kmail; by clicking the
button showing the &kmail; icon. This will select and highlight the
email in &kmail;'s folder list.</para>

<warning><para>If &kmail;'s indexes are regenerated, the link to the
email in &kmail; will be lost.</para></warning>
</listitem>

<listitem>
<para>The button showing the <guiicon>&kalarm;</guiicon> icon provides
2013 2014
a convenient way to activate &kalarm;'s main window, with that alarm
highlighted.</para>
2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043
</listitem>
</itemizedlist>

<para>You can choose in the
<link linkend="preferences-view">Configuration dialog</link> which of
two different modes should be used to display alarm message
windows:</para>

<itemizedlist>
<listitem>
<para>As a normal window. In this mode, the keyboard focus is taken
by the alarm message window when it appears, so if you are typing at
the time your keystrokes will be diverted to it rather than your
original application.</para>
</listitem>

<listitem>
<para>As a non-modal window. In this mode, the keyboard focus is
unaffected when the alarm message window appears, so it will not
interfere with your typing. However in this mode the window has no
titlebar or frame, so you cannot move it or resize it.</para>
</listitem>
</itemizedlist>

<note><para>When an alarm is displayed on top of a full screen
application, it is shown as a non-modal window regardless of this
configuration setting. This is due to a limitation of the window
system.</para></note>

2044
<sect3>
2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074
<title>Positioning of Message Windows</title>

<para>You can choose in the
<link linkend="preferences-view">Configuration dialog</link> which of
two schemes should be used to position alarm message windows:</para>

<itemizedlist>
<listitem>
<para>The windows are displayed as far away from the current mouse
cursor as possible. This minimizes disruption to your work flow and
minimizes the possibility of accidentally acknowledging the
alarm.</para>
</listitem>

<listitem>
<para>The windows are displayed in the center of the screen. To reduce
the chance of accidentally acknowledging the alarm, the buttons on the
window are initially disabled, becoming active only after a
configurable delay.</para>
</listitem>
</itemizedlist>

<para>If you have several alarm message windows, or error messages,
displayed, you can spread the windows out across the screen to make
them all visible, or group them all together again in the top left
corner of the screen, by means of the <menuchoice>
<guimenu>View</guimenu><guimenuitem>Spread Windows</guimenuitem>
</menuchoice> menu option. If you wish, you can set up a global
shortcut key for this action.</para>

2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138
</sect3>
</sect2>

<sect2>
<title>Alarm Message Notifications</title>

<para>Alarm messages which are displayed as notifications provide
less functionality than those displayed in windows.</para>

<para>When an alarm message is due, it is displayed as a notification.
The notification shows the time for which the alarm was scheduled. If
the alarm's scheduled time is in a different time zone
from your local computer's setting, its time zone will also be
displayed. (For reminder messages, the date/time shown is that for the
main alarm or its recurrence, not the reminder message time, and a
“Reminder” heading is shown.)</para>

<para>The notification automatically closes after a  short time-out.
(Note that the time-out is common to all applications; it can be
changed in &systemsettings;.) After a notification times out, it can
still be seen in the notification history until you remove it or
until you log out. Because applications have no way to access the
notification history, &kalarm; cannot remove or replace notifications
in the history as it would for alarm windows. So the history may
contain multiple notifications for the same alarm, including reminders
and recurrences.</para>

<para>The alarm message notification provides the following options.
Note that selecting any option will immediately close the notification,
and prevent it being shown in the notification history.
Note also that these options are only available while the notification
is active, before it times out. If you subsequently access the
notification in the notification history, then due to the limitations
of the notification system, the only interaction available is to
remove it from the history.</para>

<itemizedlist>
<listitem>
<para>Acknowledge the alarm by clicking the
<guibutton>Close</guibutton> button. This closes the notification.</para>
</listitem>

<listitem>
<para>Edit the alarm by clicking the <guibutton>Edit</guibutton>
button. This displays the
<link linkend="alarm-edit-dlg">Alarm Edit dialog</link>.</para>
</listitem>

<listitem>
<para>Display options to defer the alarm until later by clicking the
<guibutton>Defer</guibutton> button. This button is only shown if it
is possible to defer the alarm. See the description of the defer
option in the
<link linkend="message-window">Alarm Message Window</link> section
for details.</para>
</listitem>

<listitem>
<para>Clicking the notification anywhere other than a button will
activate &kalarm;'s main window, with that alarm highlighted.</para>
</listitem>

</itemizedlist>

2139 2140 2141 2142 2143 2144 2145 2146
</sect2>
</sect1>

<sect1 id="system-tray">
<title>System Tray Operation</title>

<para>&kalarm; by default displays an icon in the system tray. The icon
provides both control and an alarm monitoring status indication. A
2147 2148 2149 2150
normal &kalarm; icon indicates that all alarms are being monitored,
while two different modified icons indicate either that
some alarms, or that all alarms, are not being monitored. The icon
modifications depend on the icon theme being used.</para>
2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185