pastedialog.h
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2005 David Faure <faure@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 #ifndef PASTEDIALOG_H 00020 #define PASTEDIALOG_H 00021 00022 #include <kdialogbase.h> 00023 00024 class QComboBox; 00025 class KLineEdit; 00026 class QLabel; 00027 00028 namespace KIO { 00029 00035 class PasteDialog : public KDialogBase 00036 { 00037 Q_OBJECT 00038 public: 00039 PasteDialog( const QString &caption, const QString &label, 00040 const QString &value, const QStringList& items, 00041 QWidget *parent, bool clipboard ); 00042 00043 QString lineEditText() const; 00044 int comboItem() const; 00045 bool clipboardChanged() const { return m_clipboardChanged; } 00046 00047 private slots: 00048 void slotClipboardDataChanged(); 00049 00050 private: 00051 QLabel* m_label; 00052 KLineEdit* m_lineEdit; 00053 QComboBox* m_comboBox; 00054 bool m_clipboardChanged; 00055 00056 class Private; 00057 Private* d; 00058 }; 00059 00060 } // namespace 00061 00062 00063 #endif /* PASTEDIALOG_H */ 00064