• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

kjots

kjotsedit.h

Go to the documentation of this file.
00001 //
00002 //  kjots
00003 //
00004 //  Copyright (C) 1997 Christoph Neerfeld <Christoph.Neerfeld@home.ivm.de>
00005 //  Copyright (C) 2002, 2003 Aaron J. Seigo <aseigo@kde.org>
00006 //  Copyright (C) 2003 Stanislav Kljuhhin <crz@hot.ee>
00007 //  Copyright (C) 2005-2006 Jaison Lee <lee.jaison@gmail.com>
00008 //  Copyright (C) 2007 Stephen Kelly <steveire@gmail.com>
00009 //
00010 //  This program is free software; you can redistribute it and/or modify
00011 //  it under the terms of the GNU General Public License as published by
00012 //  the Free Software Foundation; either version 2 of the License, or
00013 //  (at your option) any later version.
00014 //
00015 //  This program is distributed in the hope that it will be useful,
00016 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 //  GNU General Public License for more details.
00019 //
00020 //  You should have received a copy of the GNU General Public License
00021 //  along with this program; if not, write to the Free Software
00022 //  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00023 //
00024 
00025 #ifndef __KJOTSEDIT_H
00026 #define __KJOTSEDIT_H
00027 
00028 #include <KTextEdit>
00029 #include <QPointer>
00030 
00031 class QFont;
00032 class QTextCharFormat;
00033 
00034 class KActionCollection;
00035 class Bookshelf;
00036 class KJotsPage;
00037 
00038 class KJotsEdit : public KTextEdit
00039 {
00040 Q_OBJECT
00041 public:
00042     explicit KJotsEdit ( QWidget* );
00043     virtual ~KJotsEdit ();
00044 
00045     void DelayedInitialization ( KActionCollection*, Bookshelf* );
00046     virtual bool canInsertFromMimeData ( const QMimeData *) const;
00047     virtual void insertFromMimeData ( const QMimeData *);
00048 
00049 protected:
00050     virtual void contextMenuEvent( QContextMenuEvent* );
00051 
00052 protected slots:
00053     void onBookshelfSelection ( void );
00054     void onSelectionChanged ( void );
00055     void onTextChanged ( void );
00056     void onItalics ( void );
00057     void onUnderline ( void );
00058     void onBold ( void );
00059     void onStrikeOut ( void );
00060     void updateCurrentCharFormat(const QTextCharFormat &format);
00061     void fontChanged(const QFont &f);
00062     void mergeFormatOnWordOrSelection(const QTextCharFormat &format);
00063     void onAutoBullet ( void );
00064     void onRule ( void );
00065     void onLinkify ( void );
00066     void onFonts ( void );
00067 
00068 private:
00069     void disableEditing ( void );
00070 
00071     QPointer<Bookshelf> bookshelf;
00072     QPointer<KJotsPage> currentPage;
00073     KActionCollection *actionCollection;
00074 };
00075 
00076 #endif // __KJOTSEDIT_H
00077 /* ex: set tabstop=4 softtabstop=4 shiftwidth=4 expandtab: */
00078 /* kate: tab-indents off; replace-tabs on; tab-width 4; remove-trailing-space on; encoding utf-8;*/

kjots

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

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdelirc
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • kjots
  • klaptopdaemon
  • kmilo
  • ksim
  • ktimer
  • kwallet
  • superkaramba
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal