karm

printdialog.h
1/*
2 * This file only:
3 * Copyright (C) 2003 Mark Bucciarelli <mark@hubcapconsutling.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the
17 * Free Software Foundation, Inc.
18 * 51 Franklin Street, Fifth Floor
19 * Boston, MA 02110-1301 USA.
20 *
21 */
22#ifndef KARM_PRINT_DIALOG_H
23#define KARM_PRINT_DIALOG_H
24
25#include <kdialogbase.h>
26#include <libtdepim/kdateedit.h>
27
28class TQCheckBox;
29class KDateEdit;
30
31class PrintDialog : public KDialogBase
32{
33 TQ_OBJECT
34
35
36 public:
37 PrintDialog();
38
39 /* Return the from date entered. */
40 TQDate from() const;
41
42 /* Return the to date entered. */
43 TQDate to() const;
44
45 /* Whether to summarize per week */
46 bool perWeek() const;
47
48 /* Whether to print all tasks */
49 bool allTasks() const;
50
51 /* Whether to print totals only, instead of per-day columns */
52 bool totalsOnly() const;
53
54private:
55 KDateEdit *_from, *_to;
56 TQCheckBox *_perWeek;
57 TQComboBox *_allTasks;
58 TQCheckBox *_totalsOnly;
59};
60
61#endif // KARM_PRINT_DIALOG_H
62