• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kjots

  • sources
  • kde-4.14
  • kdepim
  • kjots
kjotsedit.h
Go to the documentation of this file.
1 //
2 // kjots
3 //
4 // Copyright (C) 1997 Christoph Neerfeld <Christoph.Neerfeld@home.ivm.de>
5 // Copyright (C) 2002, 2003 Aaron J. Seigo <aseigo@kde.org>
6 // Copyright (C) 2003 Stanislav Kljuhhin <crz@hot.ee>
7 // Copyright (C) 2005-2006 Jaison Lee <lee.jaison@gmail.com>
8 // Copyright (C) 2007-2008 Stephen Kelly <steveire@gmail.com>
9 //
10 // This program is free software; you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation; either version 2 of the License, or
13 // (at your option) any later version.
14 //
15 // This program is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
19 //
20 // You should have received a copy of the GNU General Public License
21 // along with this program; if not, write to the Free Software
22 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 //
24 
25 #ifndef KJOTSEDIT_H
26 #define KJOTSEDIT_H
27 
28 #include <KRichTextWidget>
29 
30 class QItemSelection;
31 class QItemSelectionModel;
32 
33 class KActionCollection;
34 
35 class KJotsEdit : public KRichTextWidget
36 {
37 Q_OBJECT
38 public:
39  explicit KJotsEdit ( QItemSelectionModel *selectionModel, QWidget* );
40  virtual ~KJotsEdit ();
41 
42  void delayedInitialization ( KActionCollection* );
43  virtual bool canInsertFromMimeData ( const QMimeData *) const;
44  virtual void insertFromMimeData ( const QMimeData *);
45 
46 protected:
48  virtual void mouseReleaseEvent(QMouseEvent *);
49 
50  virtual void focusOutEvent( QFocusEvent* );
51 
52  virtual bool event( QEvent *event );
53 
54 protected slots:
55  void mousePopupMenuImplementation(const QPoint& pos);
56  void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
57  void tryDisableEditing();
58  void onBookshelfSelection ( void );
59  void onAutoBullet ( void );
60  void onLinkify ( void );
61  void addCheckmark( void );
62  void onAutoDecimal( void );
63  void DecimalList( void );
64  void pastePlainText( void );
65 
66  void savePage();
67  void insertDate();
68 
69 private:
70  void createAutoDecimalList();
71  KActionCollection *actionCollection;
72  bool allowAutoDecimal;
73  QItemSelectionModel *m_selectionModel;
74 
75 };
76 
77 #endif // __KJOTSEDIT_H
78 /* ex: set tabstop=4 softtabstop=4 shiftwidth=4 expandtab: */
79 /* kate: tab-indents off; replace-tabs on; tab-width 4; remove-trailing-space on; encoding utf-8;*/
KJotsEdit::focusOutEvent
virtual void focusOutEvent(QFocusEvent *)
Definition: kjotsedit.cpp:386
QEvent
QWidget
KJotsEdit::event
virtual bool event(QEvent *event)
Definition: kjotsedit.cpp:377
KJotsEdit::onLinkify
void onLinkify(void)
Definition: kjotsedit.cpp:268
KJotsEdit::onAutoBullet
void onAutoBullet(void)
Definition: kjotsedit.cpp:201
KJotsEdit::canInsertFromMimeData
virtual bool canInsertFromMimeData(const QMimeData *) const
Definition: kjotsedit.cpp:289
QPoint
QMouseEvent
KJotsEdit::mouseReleaseEvent
virtual void mouseReleaseEvent(QMouseEvent *)
Override to make ctrl+click follow links.
Definition: kjotsedit.cpp:349
KJotsEdit::selectionChanged
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Definition: kjotsedit.cpp:128
KJotsEdit
Definition: kjotsedit.h:35
QMimeData
KJotsEdit::onBookshelfSelection
void onBookshelfSelection(void)
Definition: kjotsedit.cpp:155
KRichTextWidget
KJotsEdit::tryDisableEditing
void tryDisableEditing()
Definition: kjotsedit.cpp:135
KJotsEdit::KJotsEdit
KJotsEdit(QItemSelectionModel *selectionModel, QWidget *)
Definition: kjotsedit.cpp:61
KJotsEdit::onAutoDecimal
void onAutoDecimal(void)
Definition: kjotsedit.cpp:254
KJotsEdit::pastePlainText
void pastePlainText(void)
Definition: kjotsedit.cpp:368
KJotsEdit::delayedInitialization
void delayedInitialization(KActionCollection *)
Definition: kjotsedit.cpp:110
QItemSelection
KJotsEdit::savePage
void savePage()
Definition: kjotsedit.cpp:392
KJotsEdit::insertDate
void insertDate()
Definition: kjotsedit.cpp:122
KJotsEdit::insertFromMimeData
virtual void insertFromMimeData(const QMimeData *)
Definition: kjotsedit.cpp:300
KJotsEdit::mousePopupMenuImplementation
void mousePopupMenuImplementation(const QPoint &pos)
Definition: kjotsedit.cpp:86
KJotsEdit::DecimalList
void DecimalList(void)
Definition: kjotsedit.cpp:236
QItemSelectionModel
KJotsEdit::addCheckmark
void addCheckmark(void)
Definition: kjotsedit.cpp:282
KJotsEdit::~KJotsEdit
virtual ~KJotsEdit()
Definition: kjotsedit.cpp:82
QFocusEvent
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kjots

Skip menu "kjots"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal