summaryrefslogtreecommitdiffabout
path: root/korganizer/calprinter.h
Unidiff
Diffstat (limited to 'korganizer/calprinter.h') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/calprinter.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/korganizer/calprinter.h b/korganizer/calprinter.h
index 7b58f4f..e065779 100644
--- a/korganizer/calprinter.h
+++ b/korganizer/calprinter.h
@@ -1,6 +1,8 @@
1//Added by qt3to4:
2#include <QLabel>
1/* 3/*
2 This file is part of KOrganizer. 4 This file is part of KOrganizer.
3 5
4 Copyright (c) 1998 Preston Brown 6 Copyright (c) 1998 Preston Brown
5 7
6 This program is free software; you can redistribute it and/or modify 8 This program is free software; you can redistribute it and/or modify
@@ -25,24 +27,24 @@
25#define _CALPRINTER_H 27#define _CALPRINTER_H
26 28
27// #define KORG_NOPRINTER 29// #define KORG_NOPRINTER
28 30
29#ifndef KORG_NOPRINTER 31#ifndef KORG_NOPRINTER
30 32
31#include <qptrlist.h> 33#include <q3ptrlist.h>
32 34
33#include <kdialogbase.h> 35#include <kdialogbase.h>
34 36
35#include <korganizer/baseview.h> 37#include <korganizer/baseview.h>
36 38
37#include "calprintbase.h" 39#include "calprintbase.h"
38 40
39using namespace KCal; 41using namespace KCal;
40 42
41class QVButtonGroup; 43class Q3VButtonGroup;
42class QWidgetStack; 44class Q3WidgetStack;
43class KPrinter; 45class KPrinter;
44class CalPrintDialog; 46class CalPrintDialog;
45class KConfig; 47class KConfig;
46class QComboBox; 48class QComboBox;
47class QLabel; 49class QLabel;
48 50
@@ -91,13 +93,13 @@ class CalPrinter : public QObject, public KOrg::CalPrinterBase
91 93
92 public: 94 public:
93 void preview( PrintType type, const QDate &fd, const QDate &td ); 95 void preview( PrintType type, const QDate &fd, const QDate &td );
94 void print( PrintType type, const QDate &fd, const QDate &td ); 96 void print( PrintType type, const QDate &fd, const QDate &td );
95 97
96 protected: 98 protected:
97 QPtrList<CalPrintBase> mPrintPlugins; 99 Q3PtrList<CalPrintBase> mPrintPlugins;
98 100
99 private: 101 private:
100 KPrinter *mPrinter; 102 KPrinter *mPrinter;
101 Calendar *mCalendar; 103 Calendar *mCalendar;
102 QWidget *mParent; 104 QWidget *mParent;
103 KConfig *mConfig; 105 KConfig *mConfig;
@@ -106,13 +108,13 @@ class CalPrinter : public QObject, public KOrg::CalPrinterBase
106}; 108};
107 109
108class CalPrintDialog : public KDialogBase 110class CalPrintDialog : public KDialogBase
109{ 111{
110 Q_OBJECT 112 Q_OBJECT
111 public: 113 public:
112 CalPrintDialog( QPtrList<CalPrintBase> plugins, KPrinter *p, 114 CalPrintDialog( Q3PtrList<CalPrintBase> plugins, KPrinter *p,
113 QWidget *parent = 0, const char *name = 0 ); 115 QWidget *parent = 0, const char *name = 0 );
114 virtual ~CalPrintDialog(); 116 virtual ~CalPrintDialog();
115 CalPrintBase *selectedPlugin(); 117 CalPrintBase *selectedPlugin();
116 CalPrinter::ePrintOrientation orientation() { return mOrientation; } 118 CalPrinter::ePrintOrientation orientation() { return mOrientation; }
117 119
118 public slots: 120 public slots:
@@ -124,15 +126,15 @@ class CalPrintDialog : public KDialogBase
124 void setupPrinter(); 126 void setupPrinter();
125 void setPrinterLabel(); 127 void setPrinterLabel();
126signals: 128signals:
127 void okClicked(); 129 void okClicked();
128 private: 130 private:
129 KPrinter *mPrinter; 131 KPrinter *mPrinter;
130 QVButtonGroup *mTypeGroup; 132 Q3VButtonGroup *mTypeGroup;
131 QWidgetStack *mConfigArea; 133 Q3WidgetStack *mConfigArea;
132 QPtrList<CalPrintBase> mPrintPlugins; 134 Q3PtrList<CalPrintBase> mPrintPlugins;
133 QLabel *mPrinterLabel; 135 QLabel *mPrinterLabel;
134 QString mPreviewText; 136 QString mPreviewText;
135 QComboBox *mOrientationSelection; 137 QComboBox *mOrientationSelection;
136 138
137 CalPrinter::ePrintOrientation mOrientation; 139 CalPrinter::ePrintOrientation mOrientation;
138}; 140};