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

kviewshell

kviewshell.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #ifndef KVIEWSHELL_H
00003 #define KVIEWSHELL_H
00004 
00005 #include <qstring.h>
00006 
00007 #include <kparts/mainwindow.h>
00008 
00009 class KRecentFilesAction;
00010 class KURL;
00011 class KViewPart_Iface;
00012 
00013 
00014 class QLabel;
00015 
00016 class KViewShell : public KParts::MainWindow
00017 {
00018   Q_OBJECT
00019 
00020 public:
00021   KStatusBar *statusbar;
00022   KStatusBar *action;
00023 
00024   KViewShell(const QString& defaultMimeType = QString::null);
00025   virtual ~KViewShell();
00026 
00027 public slots:
00028   void openURL(const KURL&);
00029   void addRecentFile();
00030 
00031 
00032 protected slots:
00033   void slotFullScreen();
00034   void slotQuit();
00035   void slotConfigureKeys();
00036   void slotEditToolbar();
00037   void slotFileClose();
00038   void slotNewToolbarConfig();
00039 
00040   void slotChangeZoomText(const QString &);
00041   void slotChangePageText(const QString &);
00042   void slotChangeSizeText(const QString &);
00043 
00044 signals:
00045   void restoreDocument(const KURL &url, int page);
00046   void saveDocumentRestoreInfo(KConfig* config);
00047 
00048 protected:
00049   void readSettings();
00050   void writeSettings();
00051 
00056   void saveProperties(KConfig*);
00057 
00063   void readProperties(KConfig*);
00064 
00065   void checkActions();
00066 
00067   void dragEnterEvent(QDragEnterEvent *event);
00068   void dropEvent(QDropEvent *event);
00069   void keyPressEvent(QKeyEvent * e);
00070 
00071 private:
00072   KViewPart_Iface *view;
00073 
00074   KRecentFilesAction *recent;
00075   QString cwd;
00076 
00077   KAction *closeAction, *reloadAction;
00078   KToggleAction *fullScreenAction;
00079 
00080   // In the attribute, the status of the statusbar (shown of hidden)
00081   // is saved when the kviewshell switches to fullscreen mode. The
00082   // statusbar can then be restored when the application returns to normal mode.
00083   bool isStatusBarShownInNormalMode;
00084   // ditto, for the toolbar
00085   bool isToolBarShownInNormalMode;
00086 };
00087 
00088 
00089 #endif

kviewshell

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

API Reference

Skip menu "API Reference"
  • kviewshell
Generated for API Reference by doxygen 1.5.9
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