• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDEPrint

driverview.h

Go to the documentation of this file.
00001 /*
00002  *  This file is part of the KDE libraries
00003  *  Copyright (c) 2001 Michael Goffioul <kdeprint@swing.be>
00004  *
00005  *
00006  *  This library is free software; you can redistribute it and/or
00007  *  modify it under the terms of the GNU Library General Public
00008  *  License version 2 as published by the Free Software Foundation.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  *  Boston, MA 02110-1301, USA.
00019  **/
00020 
00021 #ifndef DRIVERVIEW_H
00022 #define DRIVERVIEW_H
00023 
00024 #include <kdeprint_export.h>
00025 
00026 #include <QtCore/QMap>
00027 #include <QtGui/QWidget>
00028 
00029 class QTreeWidget;
00030 class QTreeWidgetItem;
00031 class DrOptionView;
00032 class DrMain;
00033 
00034 #ifdef __GNUC__
00035 #warning rename class or remove from global namespace
00036 #endif
00037 class KDEPRINT_EXPORT DriverView : public QWidget
00038 {
00039     Q_OBJECT
00040 public:
00041     DriverView(QWidget *parent = 0);
00042     ~DriverView();
00043 
00044     void setDriver(DrMain*);
00045     void setOptions(const QMap<QString, QString>& opts);
00046     void getOptions(QMap<QString, QString>& opts, bool incldef = false);
00047     void setAllowFixed(bool on);
00048     bool hasConflict() const  {
00049         return (m_conflict != 0);
00050     }
00051 
00052 Q_SIGNALS:
00053     void itemSelected(QTreeWidgetItem*);
00054 
00055 protected Q_SLOTS:
00056     void slotChanged();
00057     void slotItemSelectionChanged();
00058 
00059 private:
00060     QTreeWidget *m_view;
00061     DrOptionView *m_optview;
00062     DrMain  *m_driver;
00063     int   m_conflict;
00064 };
00065 
00066 #endif

KDEPrint

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

API Reference

Skip menu "API Reference"
  •   KDEPrint
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal