TDE personal information management applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

printdialog.h 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #include <kdialogbase.h>
  25. #include <libtdepim/kdateedit.h>
  26. class TQCheckBox;
  27. class KDateEdit;
  28. class PrintDialog : public KDialogBase
  29. {
  30. Q_OBJECT
  31. TQ_OBJECT
  32. public:
  33. PrintDialog();
  34. /* Return the from date entered. */
  35. TQDate from() const;
  36. /* Return the to date entered. */
  37. TQDate to() const;
  38. /* Whether to summarize per week */
  39. bool perWeek() const;
  40. /* Whether to print all tasks */
  41. bool allTasks() const;
  42. /* Whether to print totals only, instead of per-day columns */
  43. bool totalsOnly() const;
  44. private:
  45. KDateEdit *_from, *_to;
  46. TQCheckBox *_perWeek;
  47. TQComboBox *_allTasks;
  48. TQCheckBox *_totalsOnly;
  49. };
  50. #endif // KARM_PRINT_DIALOG_H