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 <libtdepim/kdateedit.h>
00027 
00028 class TQCheckBox;
00029 class KDateEdit;
00030 
00031 class PrintDialog : public KDialogBase
00032 {
00033   Q_OBJECT
00034   
00035 
00036   public:
00037     PrintDialog();
00038 
00039     /* Return the from date entered.  */
00040     TQDate from() const;
00041 
00042     /* Return the to date entered.  */
00043     TQDate to() const;
00044 
00045     /* Whether to summarize per week */
00046     bool perWeek() const;
00047 
00048     /* Whether to print all tasks */
00049     bool allTasks() const;
00050 
00051     /* Whether to print totals only, instead of per-day columns */
00052     bool totalsOnly() const;
00053 
00054 private:
00055     KDateEdit *_from, *_to;
00056     TQCheckBox *_perWeek;
00057     TQComboBox *_allTasks;
00058     TQCheckBox *_totalsOnly;
00059 };
00060 
00061 #endif // KARM_PRINT_DIALOG_H
00062