• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeprint
 

tdeprint

  • tdeprint
kprinterpropertydialog.h
1/*
2 * This file is part of the KDE libraries
3 * Copyright (c) 2001 Michael Goffioul <tdeprint@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
28class KMPrinter;
29class KPrintDialogPage;
30class DrMain;
31class TQTabWidget;
32
33class TDEPRINT_EXPORT KPrinterPropertyDialog : public KDialogBase
34{
35 TQ_OBJECT
36public:
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
50protected:
51 bool synchronize();
52 void collectOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
53
54protected slots:
55 void slotCurrentChanged(TQWidget*);
56 void slotUser1();
57 void slotOk();
58
59protected:
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:91

tdeprint

Skip menu "tdeprint"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeprint

Skip menu "tdeprint"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeprint by doxygen 1.9.4
This website is maintained by Timothy Pearson.