1
// Copyright 2009 Peter Simonsson <peter.simonsson@gmail.com>
3
// This program is free software; you can redistribute it and/or
4
// modify it under the terms of the GNU General Public License as
5
// published by the Free Software Foundation; either version 2 of
6
// the License, or (at your option) any later version.
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
13
// You should have received a copy of the GNU General Public License
14
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
#ifndef KONVERSATION_PASTEEDITOR_H
17
#define KONVERSATION_PASTEEDITOR_H
19
#include "ui_pasteeditor.h"
23
class PasteEditor : public KDialog, private Ui::PasteEditor
27
PasteEditor(QWidget* parent);
30
void setText(const QString& text);
33
static QString edit(QWidget* parent, const QString& text);
36
void addQuotationIndicators();
37
void removeNewlines();
40
#endif //KONVERSATION_PASTEEDITOR_H