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

kdeprint

  • kdeprint
kprintdialogpage.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 KPRINTDIALOGPAGE_H
22 #define KPRINTDIALOGPAGE_H
23 
24 #include <tqwidget.h>
25 #include <tqmap.h>
26 
27 #include <kdelibs_export.h>
28 
29 class KMPrinter;
30 class DrMain;
31 
90 class KDEPRINT_EXPORT KPrintDialogPage : public TQWidget
91 {
92  Q_OBJECT
93 public:
97  KPrintDialogPage(TQWidget *parent = 0, const char *name = 0);
101  KPrintDialogPage(KMPrinter *pr, DrMain *dr = 0, TQWidget *parent = 0, const char *name = 0);
105  virtual ~KPrintDialogPage();
106 
115  virtual void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
121  virtual void setOptions(const TQMap<TQString,TQString>& opts);
129  virtual bool isValid(TQString& msg);
135  int id() const { return m_ID; }
141  void setId(int ID) { m_ID = ID; }
147  QString title() const { return m_title; }
154  void setTitle(const TQString& txt) { m_title = txt; }
164  bool onlyRealPrinters() const { return m_onlyreal; }
172  void setOnlyRealPrinters(bool on = true) { m_onlyreal = on; }
176  DrMain* driver() { return m_driver; }
180  KMPrinter* printer() { return m_printer; }
181 
182 protected:
183  KMPrinter *m_printer;
184  DrMain *m_driver;
185  int m_ID;
186  QString m_title;
187  bool m_onlyreal;
188 };
189 
190 #endif

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
Generated for kdeprint by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |