karm

printdialog.h

00001 /*
00002  *   This file only:
00003  *     Copyright (C) 2003  Mark Bucciarelli <mark@hubcapconsutling.com>
00004  *
00005  *   This program is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   This program is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License along
00016  *   with this program; if not, write to the
00017  *      Free Software Foundation, Inc.
00018  *      51 Franklin Street, Fifth Floor
00019  *      Boston, MA  02110-1301  USA.
00020  *
00021  */
00022 #ifndef KARM_PRINT_DIALOG_H
00023 #define KARM_PRINT_DIALOG_H
00024 
00025 #include <kdialogbase.h>
00026 #include <libkdepim/kdateedit.h>
00027 
00028 class QCheckBox;
00029 class KDateEdit;
00030 
00031 class PrintDialog : public KDialogBase
00032 {
00033   Q_OBJECT
00034 
00035   public:
00036     PrintDialog();
00037 
00038     /* Return the from date entered.  */
00039     QDate from() const;
00040 
00041     /* Return the to date entered.  */
00042     QDate to() const;
00043 
00044     /* Whether to summarize per week */
00045     bool perWeek() const;
00046 
00047     /* Whether to print all tasks */
00048     bool allTasks() const;
00049 
00050     /* Whether to print totals only, instead of per-day columns */
00051     bool totalsOnly() const;
00052 
00053 private:
00054     KDateEdit *_from, *_to;
00055     QCheckBox *_perWeek;
00056     QComboBox *_allTasks;
00057     QCheckBox *_totalsOnly;
00058 };
00059 
00060 #endif // KARM_PRINT_DIALOG_H
00061 
KDE Home | KDE Accessibility Home | Description of Access Keys