kjots
kjotsbrowser.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 // 00009 // This program is free software; you can redistribute it and/or modify 00010 // it under the terms of the GNU General Public License as published by 00011 // the Free Software Foundation; either version 2 of the License, or 00012 // (at your option) any later version. 00013 // 00014 // This program is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 // GNU General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU General Public License 00020 // along with this program; if not, write to the Free Software 00021 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 // 00023 00024 #ifndef __KJOTSBROWSER_H 00025 #define __KJOTSBROWSER_H 00026 00027 #include <QTextBrowser> 00028 #include <QPointer> 00029 00030 class Bookshelf; 00031 00032 class KJotsBrowser : public QTextBrowser 00033 { 00034 Q_OBJECT 00035 public: 00036 explicit KJotsBrowser ( QWidget* ); 00037 virtual ~KJotsBrowser (); 00038 00039 void DelayedInitialization ( Bookshelf* ); 00040 00041 protected slots: 00042 void onSelectionChange ( void ); 00043 void linkClicked(const QUrl&); 00044 00045 private: 00046 void disableBrowser ( void ); 00047 00048 QPointer<Bookshelf> bookshelf; 00049 }; 00050 00051 #endif 00052 /* ex: set tabstop=4 softtabstop=4 shiftwidth=4 expandtab: */ 00053 /* kate: tab-indents off; replace-tabs on; tab-width 4; remove-trailing-space on; encoding utf-8;*/
KDE 4.0 API Reference