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
34
35
36
37
38
39
40
41
42
43
44
45
46
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
85
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
226
227
228
229
230
231
232
233
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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
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
523
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
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
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
913
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
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
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
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
|
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY kappname "&karm;">
<!ENTITY package "tdepim">
<!ENTITY % English "INCLUDE" > <!-- change language only here -->
<!ENTITY % addindex "IGNORE">
]>
<book lang="&language;">
<bookinfo>
<title>The &karm; Handbook</title>
<authorgroup>
<author>
<firstname>Jonathan</firstname>
<surname>Singer</surname>
<affiliation>
<address><email>jsinger@leeta.net</email></address>
</affiliation>
</author>
<author>
<firstname>Mark</firstname>
<surname>Bucciarelli</surname>
<affiliation>
<address><email>mark@hubcapconsulting.com</email></address>
</affiliation>
</author>
<author>
<firstname>Sirtaj</firstname>
<othername>Singh</othername>
<surname>Kang</surname>
<affiliation><address><email>taj@kde.org</email></address></affiliation>
</author>
<othercredit role="reviewer">
<firstname>Lauri</firstname>
<surname>Watts</surname>
<contrib>Reviewer</contrib>
<affiliation><address><email>lauri@kde.org</email></address></affiliation>
</othercredit>
<!-- TRANS:ROLES_OF_TRANSLATORS -->
</authorgroup>
<copyright>
<year>2000-2004</year>
<holder>Jonathan Singer</holder>
</copyright>
<copyright>
<year>2004-2005</year>
<holder>Mark Bucciarelli</holder>
</copyright>
<legalnotice>&FDLNotice;</legalnotice>
<date>2005-02-02</date>
<releaseinfo>1.5.0</releaseinfo>
<abstract><para>&karm; tracks time spent on various tasks.</para></abstract>
<keywordset>
<keyword>KDE</keyword>
<keyword>karm</keyword>
<keyword>kdeutils</keyword>
<keyword>time</keyword>
<keyword>tracker</keyword>
<keyword>project</keyword>
</keywordset>
</bookinfo>
<chapter id="introduction">
<title>Introduction</title>
<para>&karm; tracks time spent on various tasks. It is useful for tracking
billable hours and can report the hours logged by task and day.</para>
<para>This time history can be exported to a comma-delimited text file for
import into other billing and/or project management tools.</para>
<para>&karm; detects when your keyboard and mouse are idle and can associate
different tasks with different desktops, two tools that can help keep the
timer running on the correct task.</para>
<para>&karm; was originally written by Sirtaj Singh Kang. The word
<quote>karm</quote> means <quote>work</quote> or <quote>deeds</quote> in the
author's native Punjabi and is the same word (but a better transliteration)
as <quote>karma</quote>.</para>
</chapter>
<chapter id="using-Karm">
<title>Using &karm;</title>
<sect1 id="starting">
<title>Starting &karm;</title>
<para>Type <command>karm</command> at a command prompt or select
<guimenuitem>Personal Time Tracker</guimenuitem> from the
<guisubmenu>Utilities</guisubmenu> group in the <guimenu>KDE start
menu</guimenu>. The standard &Qt; and &kde; command options are
available, and can be listed by entering
<userinput><command>karm</command> <option>--help</option></userinput>
at the command line.</para>
<para>&karm; provides an additional command option that allows you to enter
the name of the iCalendar file that is used to store your labor history.
You enter a remote iCalendar file by using http or ftp as part of the file
name; for example, http://www.mysite.com/mydata/mylabor.ics.</para>
</sect1>
<sect1 id="general-use">
<title>Tasks</title>
<informalexample>
<para><emphasis>Problem:</emphasis> You are a free software consultant with
many clients. Some clients have multiple projects. During the course of a
day, you switch back and forth between different projects. You need to track
your time to generate monthly invoices.</para>
<para><emphasis>Solution:</emphasis> Create one top-level task for each client
and a subtask for each client project. For projects that require more
detailed tracking, create a list of project subtasks. Track time by
double-clicking on task you are currently working on.</para>
</informalexample>
<para>&karm; provides great flexibility in tracking your time, allowing
unlimited tasks and task depth. Time may be logged to any task, and more than
one task can be active at any given time.</para>
<para>
To create a top-level task, select
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu>Task</guimenu>
<guimenuitem>New</guimenuitem>
</menuchoice>
To create a subtask, pick the parent task and select
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;&Alt;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu>Task</guimenu>
<guimenuitem>New Subtask</guimenuitem>
</menuchoice>
</para>
<para>When &karm; exits, the task list is saved to the file specified in
<menuchoice>
<guimenu>Settings</guimenu>
<guimenuitem>Configure KArm</guimenuitem>
</menuchoice>.
When it next opens, it reloads the task list from the same file.</para>
<para>&karm; can import and export tasks to minimize your work. See <link linkend="interfaces">Other Systems</link>.</para>
</sect1>
<sect1 id="timers"><title>Timers</title>
<informalexample>
<para><emphasis>Problem:</emphasis> To remain solvent, you must bill an
average of five hours a day. To stay on track, you watch your daily and
weekly totals.</para>
<para><emphasis>Solution:</emphasis> Reset the session timer at the
beginning of each work day and reset all timers at the beginning of each
week.</para> </informalexample>
<para>&karm; makes tracking time simple. To start logging time against a
task, double-click on the task. To stop logging time, double-click
the task again. Active tasks display a small clock in the <guilabel>Session
Time</guilabel> column.</para>
<para>Another visual clue of logging activity is the &karm; system tray icon.
When a task is active, the second hand in the icon moves. If you rest the
mouse pointer over this icon, the name of the active task will display in a
tooltip. If more than one task is active, the task names in the tooltip are
separated by commas.</para>
<para>&karm; maintains two timers for each task: one for the session time
and one for the total time. In the default configuration, &karm; displays
two columns for each timer, resulting in a total of four columns for each task:</para>
<variablelist>
<varlistentry> <term><guilabel>Session Time</guilabel></term>
<listitem><para>The time spent on the task since the session
began.</para></listitem> </varlistentry>
<varlistentry> <term><guilabel>Total Session Time</guilabel></term>
<listitem><para>The time spent on the task and all it's subtasks since the
session began.</para></listitem> </varlistentry>
<varlistentry> <term><guilabel>Time</guilabel></term> <listitem><para>The time
spent on the task since all times were reset.</para></listitem>
</varlistentry>
<varlistentry> <term><guilabel>Total Time</guilabel></term>
<listitem><para>The time spent on the task and all it's subtasks since all
times were reset.</para></listitem> </varlistentry>
</variablelist>
<para>To start a new session, select
<menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Start New Session</guimenuitem>
</menuchoice>
</para>
<para>To reset all times, select
<menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Reset All Times</guimenuitem>
</menuchoice>
</para>
<sect2><title>Desktop Tracking</title>
<informalexample>
<para><emphasis>Problem:</emphasis> You have two main projects that you
switch between each day. To help organize your work, you keep your project
1 files on Desktop 1 and your project 2 files on Desktop
2.</para>
<para><emphasis>Solution:</emphasis> Associate project 1 task with Desktop 1
and the project 2 task with Desktop 2. When you switch from Desktop 2 to
Desktop 1 active, &karm; automatically stops the project 2 task and starts
the project 1 task.</para>
</informalexample>
<para>To associate a task with a one or more desktops, select
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>E</keycap></keycombo>
</shortcut>
<guimenu>Task</guimenu>
<guimenuitem>Edit</guimenuitem>
</menuchoice>.
Turn on <guilabel>Auto tracking</guilabel> and select the desktop or desktops
to associate with this task. When any of the selected desktops becomes active,
after a short delay &karm; will be automatically start logging time against
that task.</para>
</sect2>
<sect2><title>Idle Detection</title>
<informalexample> <para><emphasis>Problem:</emphasis> You leave work early on
Friday to run an errand and forget to stop the timer. When you return on
Monday, the timer is still running.</para>
<para><emphasis>Solution:</emphasis> Turn on idle detection.</para>
</informalexample>
<para>&karm; can be configured to detect when the mouse and keyboard become
idle. If the mouse and keyboard are idle for longer than the specified
number of minutes, &karm; displays the following dialog:</para>
<screenshot>
<screeninfo>&karm; Idle Detection</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="idle-detect.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>&karm; Idle Detection Dialog</phrase>
</textobject>
</mediaobject>
</screenshot>
<variablelist>
<varlistentry><term><guibutton>Revert & Stop</guibutton></term>
<listitem><para>Subtract the amount of idle time from all active timers and
stop them.</para><para>You were not working on the task(s) while you
computer was idle and you are still are
not.</para></listitem></varlistentry>
<varlistentry> <term><guibutton>Revert & Continue</guibutton></term>
<listitem><para>Subtract the amount of idle time from all active timers but
keep them running.</para><para>You were not working on the task(s) while
your computer was idle but you are now. </para></listitem></varlistentry>
<varlistentry> <term><guibutton>Continue Timing</guibutton></term>
<listitem><para>Apply the idle time to all active timers and keep them
running.</para><para>You were working on the task(s) while your computer
was idle and still are. </para></listitem></varlistentry> </variablelist>
</sect2>
</sect1>
<sect1 id="reporting"><title>Reporting</title>
<para>&karm; provides three ways to report on time you have logged. You can
send the session and time totals to the printer, copy the time totals to the
clipboard, or copy the time history to the clipboard.</para>
<sect2><title>Print Totals</title>
<para>To generate the totals report for the printer, select
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>P</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Print</guimenuitem>
</menuchoice>.
This generates a three-column report for the complete list of tasks. The
first column is the task name, the second column is the <guilabel>Total
Session Time</guilabel> and the third column is the <guilabel>Total
Time</guilabel>.</para>
</sect2>
<sect2><title>Clip Totals</title>
<para>To generate the totals report to the clipboard, select
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>C</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Copy Totals to Clipboard</guimenuitem>
</menuchoice>.
</para>
<para>This report is generated for the currently selected task and all it's
subtasks. If the current task is a top-level task, &karm; asks you if you
want to generate the report for the current task and it's subtasks or for the
entire task list.</para>
<screenshot>
<screeninfo>&karm; Copy This Task</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="copy-this-task.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>&karm; Copy This Task Dialog</phrase>
</textobject>
</mediaobject>
</screenshot>
<para>Once the report is generated, open KEdit or some other text editor and
paste the report data.</para>
<literallayout>
<computeroutput>
Task Totals
2004-07-10 02:26
Time Task
----------------------------------------------
9:14 kde
9:14 karm
1:08 bugs
0:00 checkin changes
0:00 promo
0:00 web stuff
----------------------------------------------
9:14 Total
</computeroutput>
</literallayout>
<para>The first column is the <guilabel>Total Time</guilabel> and is indented
(like the task names) to indicate task/sub-task relationships. The reported times
include the sub-task times.</para>
</sect2>
<sect2><title>Clip History</title>
<para>To generate the totals report to the clipboard, select
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;&Alt;<keycap>C</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Copy History to Clipboard</guimenuitem>
</menuchoice>.
</para>
<important><para>You must turn on the <guilabel>Log History</guilabel> option in
<menuchoice> <guimenu>Settings</guimenu> <guimenuitem>Configure
KArm</guimenuitem> </menuchoice>. Otherwise, &karm; only keeps track of
totals and not the detailed task history.</para></important>
<para>This report is generated for the currently selected task and all it's
subtasks. You also have the choice to generate it for all tasks.</para>
<para>When you select the history report, &karm; first prompts you to enter the
date range for the report:</para>
<screenshot>
<screeninfo>&karm; Enter Date Range</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="daterange.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>&karm; Enter Date Range</phrase>
</textobject>
</mediaobject>
</screenshot>
<para>After entering a date range, open KEdit or some other text editor and
paste the report data.</para>
<literallayout>
<computeroutput>
Task History
From Thursday 01 July 2004 to Monday 12 July 2004
Printed on: 2004-07-12 17:18
Week of Monday 05 July 2004
5 6 7 8 9 10 11
-------------------------------------------------------------------------
0:00 kde
0:00 dc
!:22 1:46 3:14 1:44 8:06 karm
0:00 3.2 feature plan
1:08 1:08 bugs
0:00 checkin changes
0:00 promo
0:00 web stuff
-------------------------------------------------------------------------
2:30 1:46 3:14 1:44 9:14 Total
</computeroutput>
</literallayout>
<para>The task history is totaled for each day and task, grouped by week. The
first seven columns are Monday through Sunday. The eighth column is the total
for the week and the ninth column is the task name. The task names are
indented to indicate the task/sub-task relationships.</para>
</sect2>
</sect1>
<sect1 id="interfaces">
<title>Other Systems</title>
<sect2 id="korganizer"><title>KOrganizer</title>
<para>&karm;, like KOrganizer and Apple's iCal, uses the industry standard
<ulink
url="http://developer.kde.org/documentation/standards/index.html">iCalendar</ulink>
format for its data. &karm; can read and write the to do lists created by
these two applications.</para>
<warning><para>If both &karm; and KOrganizer have the same file open, if you
edit the file with KOrganizer, you risk losing data. To be safe,
only edit the file with one application or the other.</para></warning>
</sect2>
<sect2 id="planner"><title>Planner</title>
<para>As a typical usecase, you might want to plan a project with the project
management tool Imendio Planner
(from <ulink url="http://planner.imendio.org">planner.imendio.org</ulink>)
and import its tasks to &karm;, to have them in the industry
standard <ulink
url="http://developer.kde.org/documentation/standards/index.html">iCalendar</ulink>
format. Having done so, you are able to schedule the tasks in KOrganizer, and account your time
to them in &karm;. That's one way to help ensure your project stays on time
and under budget.</para>
</sect2>
<sect2 id="dcop"><title>&DCOP;</title>
<para>&DCOP; is the mechanism KDE programs use to communicate with each
other. A KDE program provides a list of functions that other programs (a Bash
script, for example) can use.</para>
<example><title>Bash script that echo's &karm;'s version</title>
<programlisting>
DCOPID=`dcop | grep karm`
if [ $DCOPID ]
then
VERS=`dcop $DCOPID KarmDCOPIface version`
echo "&karm; version is $VERS"
else
echo "&karm; not running"
fi
</programlisting>
</example>
<para>&karm;'s current &DCOP; interface is currently used mainly for automated
testing, so it is very limited. For the full interface definition, see
<link linkend="dcopappendix">&DCOP; Interface Appendix</link>.</para>
<para>To see the full &DCOP; interface of the &karm; version installed on your
system, run the following Bash script:</para>
<example><title>List &karm;'s &DCOP; interface to console</title>
<programlisting>
DCOPID=`dcop | grep karm`
if [ $DCOPID ]
then
dcop $DCOPID KarmDCOPIface
else
echo "&karm; not running"
fi
</programlisting>
</example>
</sect2>
<sect2 id="csv-export"><title>Export Totals to CSV</title>
<para>&karm; can export both totals and history to a comma-delimited file
format. To export totals, select
<menuchoice>
<guimenu>File</guimenu>
<guisubmenu>Import/Export</guisubmenu>
<guimenuitem>Export to CSV file...</guimenuitem>
</menuchoice> and &karm; displays the following export dialog:</para>
<screenshot>
<screeninfo>&karm; CSV Export Dialog</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="csvexport.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>&karm; CSV Export Dialog</phrase>
</textobject>
</mediaobject>
</screenshot>
<para>Enter the file you would like to export the data to, and modify the
other dialog defaults if necessary. Note that the date range control is
disabled since you are exporting time totals, not the history data. Click
<guibutton>Export</guibutton> and &karm; exports the totals for all tasks to
the file you selected.</para>
<para>Here is an example of the output format:</para>
<literallayout>
<computeroutput>
"kde",,,,,0.00,0.00,6.88,9.83
,"karm",,,,6.88,8.70,6.88,9.83
,,"3.2 feature plan",,,0.00,0.00,0.00,0.00
,,"bugs",,,0.00,1.13,0.00,1.13
,,"checkin changes - translation strings",,,0.00,0.00,0.00,0.00
,,"time card report",,,0.00,0.00,0.00,0.00
,"kopete",,,,0.00,0.00,0.00,0.00
,"promo",,,,0.00,0.00,0.00,0.00
,"web stuff",,,,0.00,0.00,0.00,0.00
</computeroutput>
</literallayout>
<para>Top-level tasks are output in the first column, sub-tasks in the second,
and so on. The time data is output after the maximum task depth (five in
this example). The first time column is <guilabel>Session Time</guilabel>,
the second is <guilabel>Time</guilabel>, the third is <guilabel>Total Session
Time</guilabel> and the fourth is the <guilabel>Total Time</guilabel>.
</para>
</sect2>
<sect2 id="csv-export-history"><title>Export History to CSV</title>
<para>To export task history, select
<menuchoice>
<guimenu>File</guimenu>
<guisubmenu>Import/Export</guisubmenu>
<guimenuitem>Export History to CSV file...</guimenuitem>
</menuchoice> and &karm; displays the same export dialog as shown above.</para>
<para>Enter the file you would like to export the data to, and select a date
range that you want the task history. Modify the other dialog defaults if
necessary. Click <guibutton>Export</guibutton> and &karm; exports the
task history for all tasks to the file you selected.</para>
<para>Here is an example of the output format:</para>
<literallayout>
<computeroutput>
Task History
From Tuesday 06 July 2004 to Tuesday 13 July 2004
Printed on: 2004-07-13 18:10
2004-07-06,2004-07-07,2004-07-08,2004-07-09,2004-07-10,2004-07-11,2004-07-12,2004-07-13,
,,,,,,,,0.00,"kde"
,,1.77,3.23,1.73,,1.37,0.82,8.95,,"karm"
,,,,,,,,0.00,,,"3.2 feature plan"
,1.13,,,,,,,1.13,,,"bugs"
,,,,,,,,0.00,,,"checkin changes - translation strings"
,,,,,,,,0.00,,,"time card report"
,,,,,,,,0.00,,"kopete"
,,,,,,,,0.00,,"promo"
,,,,,,,,0.00,,"web stuff"
</computeroutput>
</literallayout>
<para>The three lines identify when the report was generated and for which
date range. The fourth row is a comma-delimited list of the dates in the
date range, in ISO 8601 format (YYYY-MM-DD). All subsequent rows list the
time logged against each task. The last numeric column is the row total
across all days. The task name prints after the total column, and is indented
to indicate the task/sub-task relationship. Top level task names appear
in the first column after the total.</para>
</sect2>
</sect1>
</chapter>
<chapter id="interface">
<title>The &karm; interface</title>
<para>The main &karm; window has the following components: menubar, toolbar,
task/time window and status bar.</para>
<screenshot>
<screeninfo>&karm; Screen</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="karm.png" format="PNG"/>
</imageobject>
<textobject>
<phrase>&karm; Screen</phrase>
</textobject>
</mediaobject>
</screenshot>
<sect1 id="main-window">
<title>The Task/Time window</title>
<para>The various tasks are displayed in this window, along with the
time accumulated for each in the current session and in total. Tasks
being timed have a small clock icon next to the session time.</para>
<para>Subtasks can be created for each task. Clicking the plus sign and
minus sign in front of the main task toggles the view of its associated
subtasks. The total time accrued for a task includes the times for its
subtasks, as well as its own accumulated time.</para>
</sect1>
<sect1 id="menus">
<title>The &karm; menubar</title>
<sect2>
<title>The <guimenu>File</guimenu> menu</title>
<variablelist>
<varlistentry>
<term>
<menuchoice><shortcut>
<keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Save</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Saves the current tasks and subtasks with their accumulated
times</action></para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>P</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Print</guimenuitem>
</menuchoice></term>
<listitem><para>
<action>Prints</action> the &karm; window</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Start New Session</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Resets </action>all session times to zero</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guimenuitem>Reset All Times</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Resets </action>all times to zero</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guisubmenu>Import/Export</guisubmenu>
<guimenuitem>Import Legacy Flat File...</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Import </action>old style &karm; save files (&karm;
now uses iCalendar-style save files.)</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guisubmenu>Import/Export</guisubmenu>
<guimenuitem>Import Tasks from Planner...</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Import </action>an imendio planner project (see <ulink
url="http://planner.imendio.org">planner.imendio.org</ulink>). All tasks, subtasks and their "completed" flag will be imported from a .planner-file. You can import them as a subtask by creating a subtask, leaving it marked, and then importing. </para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>File</guimenu>
<guisubmenu>Import/Export</guisubmenu>
<guimenuitem>Export to CSV file...</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Export </action>
<guilabel>Total Session Time</guilabel>,
<guilabel>Session Time</guilabel>, <guilabel>Time</guilabel>, and
<guilabel>Total Time</guilabel> to a text file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<guimenu>File</guimenu>
<guisubmenu>Import/Export</guisubmenu>
<guimenuitem>Export History to CSV file...</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Export </action> task history to a text file.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>C</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Copy Totals to Clipboard</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Copies </action> the current total time for a
task or all tasks to the &kde; clipboard</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;&Alt;<keycap>C</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Copy History to Clipboard</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Copies </action> daily times for a
given period to the &kde; clipboard</para>
</listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Quit</guimenuitem>
</menuchoice></term>
<listitem>
<para><action>Closes</action> &karm;</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>The <guimenu>Clock</guimenu> menu</title>
<variablelist>
<varlistentry>
<term>
<menuchoice>
<shortcut><keycap>S</keycap></shortcut>
<guimenu>Clock</guimenu>
<guimenuitem>Start</guimenuitem>
</menuchoice>
</term>
<listitem>
<para><action>Starts</action> timing the selected task</para></listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Clock</guimenu>
<guimenuitem>Stop</guimenuitem>
</menuchoice>
</term>
<listitem>
<para><action>Stops</action> timing the selected task</para></listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<shortcut><keycap>&Esc;</keycap></shortcut>
<guimenu>Clock</guimenu>
<guimenuitem>Stop All Timers</guimenuitem>
</menuchoice>
</term>
<listitem><para><action>Stops</action> timing all tasks</para></listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>The <guimenu>Task</guimenu> menu</title>
<variablelist>
<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu>Task</guimenu>
<guimenuitem>New</guimenuitem>
</menuchoice>
</term>
<listitem><para><action>Add</action> a new task</para></listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;&Alt;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu>Task</guimenu>
<guimenuitem>New Subtask</guimenuitem>
</menuchoice>
</term>
<listitem>
<para><action>Add</action> a new subtask to the selected task</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycap>Del</keycap>
</shortcut>
<guimenu>Task</guimenu>
<guimenuitem>Delete</guimenuitem>
</menuchoice>
</term>
<listitem>
<para><action>Delete</action> the selected task or subtask</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>E</keycap></keycombo>
</shortcut>
<guimenu>Task</guimenu>
<guimenuitem>Edit</guimenuitem>
</menuchoice>
</term>
<listitem>
<para><action>Change the name or accumulated time</action> for the
current task</para><para>There are two options for changing the time: Edit
Absolute, in which the session and total times can be changed separately;
and Edit Relative, in which a certain change is added to or subtracted from
both the session and total times.</para><para>The Auto tracking option allows
timing to start and stop automatically when you switch to or from a particular
&kde; desktop.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>The <guimenu>Settings</guimenu> menu</title>
<variablelist>
<varlistentry>
<term>
<menuchoice>
<guimenu>Settings</guimenu>
<guimenuitem>Configure Shortcuts</guimenuitem>
</menuchoice>
</term>
<listitem><para><action>Opens</action> a dialog to allow the user to customize
the keyboard shortcuts</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<menuchoice>
<guimenu>Settings</guimenu>
<guimenuitem>Configure KArm</guimenuitem>
</menuchoice>
</term>
<listitem><para><action>Opens</action> a dialog to allow the user to
configure &karm;</para>
<para>The dialog has three tabbed panes: <guilabel>Behavior </guilabel>, which
allows you to specify an alert for no activity and a warning message when you
delete a task set, <guilabel>Display </guilabel>, which configures the fields
shown in the main window and <guilabel>Storage</guilabel>,
which configures the location of the save file, whether auto saving is
enabled and the auto save interval.</para> </listitem>
</varlistentry>
</variablelist>
</sect2>
<sect2>
<title>The <guimenu>Help</guimenu> menu</title>
&help.menu.documentation;
</sect2>
</sect1>
<sect1 id="tool-bar">
<title>The Toolbar</title>
<para>The toolbar contains icons for the following commands:</para>
<note><para>(All behave identically to the menu command.)</para></note>
<itemizedlist>
<listitem><para><guiicon>Start</guiicon></para></listitem>
<listitem><para><guiicon>Stop</guiicon></para></listitem>
<listitem><para><guiicon>New</guiicon></para></listitem>
<listitem><para><guiicon>New Subtask</guiicon></para></listitem>
<listitem><para><guiicon>Delete</guiicon></para></listitem>
<listitem><para><guiicon>Edit</guiicon></para></listitem>
</itemizedlist>
</sect1>
<sect1 id="status-bar">
<title>The Statusbar</title>
<para>Reports the total elapsed time for the session.</para>
</sect1>
</chapter>
<chapter id="credits">
<title>Credits and License</title>
<para>
&karm;
</para>
<para> Program copyright: </para>
<itemizedlist>
<listitem><para>1997-2000 Sirtaj Singh Kang
<email>taj@kde.org</email>.</para> </listitem>
<listitem><para>2001-2002 Tomas Pospisek
<email>tpo_deb@sourcepole.ch</email></para></listitem>
<listitem><para>2003-2004 Mark
Bucciarelli<email>mark@hubcapconsulting.com</email></para></listitem>
</itemizedlist>
<para>Contributors (in alphabetical order)</para>
<itemizedlist>
<listitem><para>Allen Winter <email>winterz@verizon.net</email></para></listitem>
<listitem><para>David Faure <email>faure@kde.org</email></para></listitem>
<listitem><para>Espen Sand <email>espen@kde.org</email></para></listitem>
<listitem><para>Gioele Barabucci <email>gioele@gioelebarabucci.com</email></para></listitem>
<listitem><para>Jan Schaumann <email>jschauma@netmeister.org</email></para></listitem>
<listitem><para>Jesper Pedersen <email>blackie@ifad.dk</email></para></listitem>
<listitem><para>Kalle Dalheimer <email>kalle@kde.org</email></para></listitem>
<listitem><para>Klarälvdalens Datakonsult AB</para></listitem>
<listitem><para>Mark Bucciarelli <email>mark@hubcapconsulting.com</email></para></listitem>
<listitem><para>Thorsten Stärk <email>dev@staerk.de</email></para></listitem>
<listitem><para>Tomas Pospisek <email>tpo_deb@sourcepole.ch</email></para></listitem>
<listitem><para>Willi Richert <email>w.richert@cox.net</email></para></listitem>
</itemizedlist>
<para>&karm; was inspired by Harald Tveit Alvestrand's very useful
utility called <application>titrax</application>, the only failing of
which is that it is based on the Xt toolkit.</para>
<para>Documentation copyright 2000-2004 Jonathan Singer
<email>jsinger@leeta.net</email> and Sirtaj Singh Kang
<email>taj@kde.org</email>.</para>
&underFDL;
&underGPL;
</chapter>
<glossary id="glossary">
<glossentry id="gloss-active-task">
<glossterm>active task</glossterm>
<glossdef><para>A task which has a timer running.</para></glossdef>
</glossentry>
<glossentry id="gloss-dcop">
<glossterm>&DCOP;</glossterm>
<glossdef><para>The interprocess communication protocol used in KDE. Short
for Desktop COmmunication Protocol.</para></glossdef>
</glossentry>
<glossentry id="gloss-desktop">
<glossterm>desktop</glossterm>
<glossdef><para>GNU/Linux, FreeBSD and other systems that run X-Windows have
multiple desktops. You typically have four different desktops installed by
default. Each desktop can display it's own set of programs and files. When
KDE first starts up, the desktop you see is Desktop 1. If you press
<keycombo action="simul">&Alt;<keycap>F2</keycap></keycombo>, you will see
Desktop 2. Pressing <keycombo
action="simul">&Alt;<keycap>F1</keycap></keycombo> will bring back Desktop
1. </para></glossdef> </glossentry>
<glossentry id="gloss-history">
<glossterm>history</glossterm>
<glossdef><para>If &karm; is configured to log history, it will record ever
start/stop timer event. This history is never cleared when times are reset
cleared and remains on file until the task is deleted.</para></glossdef>
</glossentry>
<glossentry id="gloss-session"> <glossterm>session</glossterm>
<glossdef><para>A user-defined starting point for the session timers. A new
session begins when you select <menuchoice> <guimenu>File</guimenu>
<guimenuitem>Start New Session</guimenuitem> </menuchoice>.
Session data is not saved when you create a new session.
</para></glossdef> </glossentry>
<glossentry id="gloss-system-time"> <glossterm><guilabel>Session
Time</guilabel></glossterm> <glossdef><para>The time spent on the task
since the session began.</para></glossdef> </glossentry>
<glossentry id="gloss-system-tray"> <glossterm>system tray</glossterm>
<glossdef><para>The system tray is in the bar that (by default) appears at
the bottom of the screen. In this system tray <inlinemediaobject>
<imageobject> <imagedata fileref="systray.png"
format="PNG"/></imageobject> </inlinemediaobject> the &karm; icon is on the far
right.</para></glossdef>
</glossentry>
<glossentry id="gloss-top-level-task">
<glossterm>top level task</glossterm>
<glossdef><para>A task with no parent tasks.</para></glossdef>
</glossentry>
<glossentry id="gloss-total-session-time"> <glossterm><guilabel>Total Session
Time</guilabel></glossterm> <glossdef><para>The time spent on the task and
all it's subtasks since the session began.</para></glossdef> </glossentry>
<glossentry> <glossterm><guilabel>Time</guilabel></glossterm>
<glossdef><para>The time spent on the task since all times were
reset.</para></glossdef> </glossentry>
<glossentry id="gloss-total-time"> <glossterm><guilabel>Total Time</guilabel></glossterm>
<glossdef><para>The time spent on the task and all it's subtasks since all
times were reset.</para></glossdef> </glossentry>
</glossary>
<appendix id="installation">
<title>Installation</title>
<sect1 id="getting-karm">
<title>How to obtain &karm;</title>
&install.intro.documentation;
&install.compile.documentation;
</sect1>
</appendix>
<appendix id="dcopappendix"><title>&DCOP; Interface</title>
<refentry id="dcop-version">
<refmeta>
<refentrytitle>version</refentrytitle>
</refmeta>
<refnamediv>
<refname>version</refname>
<refpurpose>Return &karm;'s version.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<synopsis>
QString version()
</synopsis>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para><function>version()</function> is a &DCOP; call that returns &karm;'s
version number; for example 1.5.0. The version number is returned as a string
in the typical GNU format of major.minor.bugfix.</para>
</refsect1>
</refentry>
<refentry id="dcop-quit">
<refmeta>
<refentrytitle>quit</refentrytitle>
</refmeta>
<refnamediv>
<refname>quit</refname>
<refpurpose>Return &karm;'s quit.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<synopsis>
QString quit()
</synopsis>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para><function>quit()</function> is a &DCOP; call that provides a way that an
external program can gracefully shutdown &karm;.
</para>
</refsect1>
</refentry>
<refentry id="dcop-hastodo">
<refmeta>
<refentrytitle>hastodo</refentrytitle>
</refmeta>
<refnamediv>
<refname>hastodo</refname>
<refpurpose>Check if top-level todo exists.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<synopsis>
QString hastodo(QString taskname)
</synopsis>
<refsect2>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term><parameter>taskname</parameter></term>
<listitem>
<para>The name of the todo to look for.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para><function>hastodo(QString taskname)</function> is a &DCOP; call that
looks for a of the given name. If found, it returns the
iCalendar UID that identifies that todo. If not found, it returns an empty
string.
</para>
<para>The iCalendar file that &karm; currently has opened is the file that is
searched. All todo trees are searched, not just top-level todo's. If more
than one todo has a matching name, the first one found is returned.</para>
</refsect1>
</refentry>
<refentry id="dcop-addtodo">
<refmeta>
<refentrytitle>addtodo</refentrytitle>
</refmeta>
<refnamediv>
<refname>addtodo</refname>
<refpurpose>Add new todo.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<synopsis>
QString addtodo(QString todoname)
</synopsis>
<refsect2>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term><parameter>todoname</parameter></term>
<listitem>
<para>The name of new todo.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para><function>addtodo(QString todoname)</function> is a &DCOP; call that
adds a new top-level todo to the current storage. The UID of the new todo
is returned.
</para>
</refsect1>
</refentry>
</appendix>
&documentation.index;
</book>
<!--
Local Variables:
mode: sgml
sgml-minimize-attributes:nil
sgml-general-insert-case:lower
sgml-indent-step:0
sgml-indent-data:nil
End:
// vim:ts=2:sw=2:tw=78:noet
-->
|