kpgeneralpage.h

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 KPGENERALPAGE_H
00022 #define KPGENERALPAGE_H
00023 
00024 #include "kprintdialogpage.h"
00025 
00026 class QComboBox;
00027 class QButtonGroup;
00028 class QGroupBox;
00029 class QLabel;
00030 
00031 class KDEPRINT_EXPORT KPGeneralPage : public KPrintDialogPage
00032 {
00033     Q_OBJECT
00034 public:
00035     KPGeneralPage(KMPrinter *pr, DrMain *dr, QWidget *parent = 0, const char *name = 0);
00036     ~KPGeneralPage();
00037 
00038     void setOptions(const QMap<QString,QString>& opts);
00039     void getOptions(QMap<QString,QString>& opts, bool incldef = false);
00040 
00041 protected:
00042     void initialize();
00043 
00044 protected slots:
00045     void slotOrientationChanged(int);
00046     void slotDuplexChanged(int);
00047     void slotNupChanged(int);
00048 
00049 protected:
00050     QComboBox   *m_pagesize, *m_papertype, *m_inputslot;
00051     QComboBox   *m_startbanner, *m_endbanner;
00052     QButtonGroup    *m_orientbox, *m_duplexbox, *m_nupbox;
00053     QGroupBox   *m_bannerbox;
00054     QLabel      *m_orientpix, *m_duplexpix, *m_nuppix;
00055 };
00056 
00057 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys