KDEPrint
driverview.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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