~ubuntu-branches/ubuntu/lucid/konversation/lucid-updates

« back to all changes in this revision

Viewing changes to src/viewer/pasteeditor.h

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2009-05-19 09:44:08 UTC
  • mfrom: (1.16.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20090519094408-yi3yv1v4zzbsu2nx
Tags: 1.1.75+svn969816-1
* New upstream development snapshot:
  - Last Changed Author: tjmchenry
  - Last Changed Rev: 969816
  - Last Changed Date: 2009-05-19 04:45:54 +0300
  - Translations as of Tue, 19 May 2009 09:21:13 are included.
* Update download URL in debian/copyright.
* Update Debian menu icons.
* Update konversation.install: install translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2009 Peter Simonsson <peter.simonsson@gmail.com>
 
2
//
 
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.
 
7
//
 
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.
 
12
//
 
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/>.
 
15
 
 
16
#ifndef KONVERSATION_PASTEEDITOR_H
 
17
#define KONVERSATION_PASTEEDITOR_H
 
18
 
 
19
#include "ui_pasteeditor.h"
 
20
 
 
21
#include <KDialog>
 
22
 
 
23
class PasteEditor : public KDialog, private Ui::PasteEditor
 
24
{
 
25
    Q_OBJECT
 
26
    public:
 
27
        PasteEditor(QWidget* parent);
 
28
        ~PasteEditor();
 
29
        
 
30
        void setText(const QString& text);
 
31
        QString text() const;
 
32
        
 
33
        static QString edit(QWidget* parent, const QString& text);
 
34
 
 
35
    protected slots:
 
36
        void addQuotationIndicators();
 
37
        void removeNewlines();
 
38
};
 
39
 
 
40
#endif //KONVERSATION_PASTEEDITOR_H