Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kdeprint
kdeprint
kdeprint
kprinterpropertydialog.h
1
/*
2
* This file is part of the KDE libraries
3
* Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
4
*
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Library General Public
8
* License version 2 as published by the Free Software Foundation.
9
*
10
* This library 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 GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
19
**/
20
21
#ifndef KPRINTERPROPERTYDIALOG_H
22
#define KPRINTERPROPERTYDIALOG_H
23
24
#include <kdialogbase.h>
25
#include <tqptrlist.h>
26
#include <tqmap.h>
27
28
class
KMPrinter;
29
class
KPrintDialogPage
;
30
class
DrMain;
31
class
TQTabWidget;
32
33
class
KDEPRINT_EXPORT KPrinterPropertyDialog :
public
KDialogBase
34
{
35
Q_OBJECT
36
public
:
37
KPrinterPropertyDialog(KMPrinter *printer, TQWidget *parent = 0,
const
char
*name = 0);
38
~KPrinterPropertyDialog();
39
40
KMPrinter* printer() {
return
m_printer; }
41
DrMain* driver() {
return
m_driver; }
42
void
setDriver(DrMain* d) {
if
(!m_driver) m_driver = d; }
43
void
addPage(
KPrintDialogPage
*);
44
void
setOptions(
const
TQMap<TQString,TQString>&);
45
void
getOptions(TQMap<TQString,TQString>&,
bool
=
false
);
46
void
enableSaveButton(
bool
);
47
48
static
void
setupPrinter(KMPrinter *printer, TQWidget *parent);
49
50
protected
:
51
bool
synchronize();
52
void
collectOptions(TQMap<TQString,TQString>& opts,
bool
incldef =
false
);
53
54
protected
slots:
55
void
slotCurrentChanged(TQWidget*);
56
void
slotUser1();
57
void
slotOk();
58
59
protected
:
60
KMPrinter *m_printer;
61
DrMain *m_driver;
62
TQPtrList<KPrintDialogPage> m_pages;
63
KPrintDialogPage
*m_current;
64
TQMap<TQString,TQString> m_options;
65
TQTabWidget *m_tw;
66
TQPushButton *m_save;
67
};
68
69
#endif
KPrintDialogPage
This class is intended to be used as base class for customized print dialog page. ...
Definition:
kprintdialogpage.h:90
kdeprint
Skip menu "kdeprint"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
Related Pages
kdeprint
Skip menu "kdeprint"
arts
dcop
dnssd
interfaces
interface
library
kspeech
ktexteditor
kabc
kate
kcmshell
kdecore
kded
kdefx
kdeprint
kdesu
kdeui
kdoctools
khtml
kimgio
kinit
kio
bookmarks
httpfilter
kfile
kio
kioexec
kpasswdserver
kssl
kioslave
http
kjs
kmdi
kmdi
knewstuff
kparts
krandr
kresources
kspell2
kunittest
kutils
kwallet
libkmid
libkscreensaver