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

UNNAMED_READER/corelibrary

readerWidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Stefan Kebekus <kebekus@kde.org>                *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  *   This program is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU General Public License     *
00015  *   along with this program; if not, write to the                         *
00016  *   Free Software Foundation, Inc.,                                       *
00017  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00018  ***************************************************************************/
00019 
00020 
00021 #ifndef _READERWIDGET_H_
00022 #define _READERWIDGET_H_
00023 
00024 #include "dropObserver.h"
00025 
00026 #include <KUrl>
00027 #include <QTimer>
00028 #include <QWidget>
00029 
00030 class Ui_readerWidget;
00031 
00032 
00033 namespace UNNAMED_READER {
00034 
00052 class KDE_EXPORT readerWidget : public QWidget, public dropObserver
00053 {
00054  Q_OBJECT
00055  DROPOBSERVER
00056     
00057  public:
00075   readerWidget(QWidget *parent, KUrl url, bool *ok=0);
00076   
00080   virtual ~readerWidget();
00081 
00085   KUrl document() const {return documentURL;}
00086 
00093   QString documentTitle() const;
00094 
00102   QString humanReadableDocumentFileName() const;
00103 
00114   bool askToClose(void);
00115 
00130   void goTo(QString reference);
00131 
00135   bool isFullyLoaded() const {return !fakeTimer.isActive();}
00136 
00140   void reload();
00141 
00148   void showFullScreen();
00149 
00156   void showPresentation();
00157 
00163   readerWidget *duplicate();
00164 
00165  signals:
00170   void documentFullyLoaded(readerWidget *this_widget);
00171 
00172  protected:
00175   Ui_readerWidget *dlg;
00176 
00177  private slots:
00178   /* This method fakes that the document has been loaded */
00179   void fakeFinishedLoading();
00180 
00181  private:
00182   /* A copy of the URL given in the constructor, with the reference
00183      part set to QString::null */
00184   KUrl documentURL;
00185 
00186   /* Time to fake loading of document */
00187   QTimer fakeTimer;
00188 };
00189 
00190 
00191 } // end: namespace UNNAMED_READER
00192 
00193 #endif // _MAINWINDOW_H_

UNNAMED_READER/corelibrary

Skip menu "UNNAMED_READER/corelibrary"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  •   corelibrary
Generated for API Reference 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