Diffstat (limited to 'pwmanager/pwmanager/pwmprint.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwmprint.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwmprint.h b/pwmanager/pwmanager/pwmprint.h new file mode 100644 index 0000000..4b7c4d2 --- a/dev/null +++ b/pwmanager/pwmanager/pwmprint.h | |||
@@ -0,0 +1,55 @@ | |||
1 | /*************************************************************************** | ||
2 | * * | ||
3 | * copyright (C) 2003, 2004 by Michael Buesch * | ||
4 | * email: mbuesch@freenet.de * | ||
5 | * * | ||
6 | * This program is free software; you can redistribute it and/or modify * | ||
7 | * it under the terms of the GNU General Public License version 2 * | ||
8 | * as published by the Free Software Foundation. * | ||
9 | * * | ||
10 | ***************************************************************************/ | ||
11 | |||
12 | /*************************************************************************** | ||
13 | * copyright (C) 2004 by Ulf Schenk | ||
14 | * This file is originaly based on version 1.0.1 of pwmanager | ||
15 | * and was modified to run on embedded devices that run microkde | ||
16 | * | ||
17 | * $Id$ | ||
18 | **************************************************************************/ | ||
19 | |||
20 | #ifndef PWMPRINT_H | ||
21 | #define PWMPRINT_H | ||
22 | |||
23 | #include <kconfig.h> | ||
24 | |||
25 | #include <qwidget.h> | ||
26 | #include <qstringlist.h> | ||
27 | |||
28 | class PwMDoc; | ||
29 | |||
30 | class PwMPrint | ||
31 | { | ||
32 | public: | ||
33 | PwMPrint(PwMDoc *_doc, QWidget *_parent); | ||
34 | ~PwMPrint(); | ||
35 | |||
36 | /** start printing now */ | ||
37 | void printNow(); | ||
38 | /** set document */ | ||
39 | void setDoc(PwMDoc *_doc) | ||
40 | { doc = _doc; } | ||
41 | |||
42 | protected: | ||
43 | /** generate a date-string */ | ||
44 | QString genDateString(); | ||
45 | /** request the user to select all categories to print */ | ||
46 | QStringList selCategories(); | ||
47 | |||
48 | protected: | ||
49 | /** document */ | ||
50 | PwMDoc *doc; | ||
51 | /** parent widget */ | ||
52 | QWidget *parent; | ||
53 | }; | ||
54 | |||
55 | #endif | ||