~ubuntu-branches/ubuntu/vivid/kdepim/vivid

« back to all changes in this revision

Viewing changes to libksieve/ksieveui/sievetextedit.h

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman, Jonathan Riddell, Rohan Garg, Scott Kitterman
  • Date: 2012-11-21 13:12:36 UTC
  • mfrom: (0.2.33)
  • Revision ID: package-import@ubuntu.com-20121121131236-32ijw9a2txrar80k
Tags: 4:4.9.80-0ubuntu1
[ Jonathan Riddell ]
* New upstream beta release

[ Rohan Garg ]
* Add nepomuk-core-dev to build-deps

[ Scott Kitterman ]
* Add new package, libpimcommon4
  - Add libpimcommon4.install
  - Add to debian/control, including kdepim-dbg and kdepim-dev depends
  - Add to kdepim-dev.install
* Remove usr/bin/backupmail and related files from kmail.install as they are
  not provided by upstream anymore
* Add usr/bin/pimsettingexporter and related files to kmail.install
* Add libnepomukwidgets-dev to build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef SIEVETEXTEDIT_H
2
 
#define SIEVETEXTEDIT_H
3
 
 
4
 
 
5
1
/* Copyright (C) 2011, 2012 Laurent Montel <montel@kde.org>
6
2
 *
7
3
 * This library is free software; you can redistribute it and/or
20
16
 * Boston, MA 02110-1301, USA.
21
17
 */
22
18
 
 
19
#ifndef KSIEVE_KSIEVEUI_SIEVETEXTEDIT_H
 
20
#define KSIEVE_KSIEVEUI_SIEVETEXTEDIT_H
 
21
 
23
22
#include "ksieveui_export.h"
24
23
 
25
24
#include <QPlainTextEdit>
 
25
 
26
26
class QCompleter;
27
27
 
28
28
namespace KSieveUi {
 
29
 
29
30
class SieveLineNumberArea;
30
31
 
31
32
class KSIEVEUI_EXPORT SieveTextEdit : public QPlainTextEdit
32
33
{
33
34
  Q_OBJECT
34
 
public:
35
 
  explicit SieveTextEdit( QWidget *parent );
36
 
  virtual ~SieveTextEdit();
37
 
  
38
 
  void lineNumberAreaPaintEvent(QPaintEvent *event);
39
 
  int lineNumberAreaWidth();
40
 
  
41
 
 
42
 
protected slots:
43
 
  void slotInsertCompletion( const QString& );
44
 
  QString wordUnderCursor();
45
 
  void updateLineNumberAreaWidth(int newBlockCount);
46
 
  void updateLineNumberArea(const QRect &, int);
47
 
 
48
 
protected:
49
 
  void initCompleter();
50
 
  void keyPressEvent(QKeyEvent* e);
51
 
  void resizeEvent(QResizeEvent *event);
52
 
  void contextMenuEvent( QContextMenuEvent *event );
53
 
  
54
 
signals:
55
 
  void findText();
56
 
private:
57
 
  QCompleter *m_completer;
58
 
  SieveLineNumberArea *m_sieveLineNumberArea;
 
35
 
 
36
  public:
 
37
    explicit SieveTextEdit( QWidget *parent );
 
38
    virtual ~SieveTextEdit();
 
39
 
 
40
    void lineNumberAreaPaintEvent(QPaintEvent *event);
 
41
    int lineNumberAreaWidth();
 
42
 
 
43
  protected slots:
 
44
    void slotInsertCompletion( const QString& );
 
45
    QString wordUnderCursor();
 
46
    void updateLineNumberAreaWidth(int newBlockCount);
 
47
    void updateLineNumberArea(const QRect &, int);
 
48
 
 
49
  protected:
 
50
    void initCompleter();
 
51
    void keyPressEvent(QKeyEvent* e);
 
52
    void resizeEvent(QResizeEvent *event);
 
53
    void contextMenuEvent( QContextMenuEvent *event );
 
54
 
 
55
  signals:
 
56
    void findText();
 
57
 
 
58
  private:
 
59
    QCompleter *m_completer;
 
60
    SieveLineNumberArea *m_sieveLineNumberArea;
59
61
};
60
62
 
61
63
}
62
 
#endif /* SIEVETEXTEDIT_H */
 
64
#endif
63
65