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

parley

browserwidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00004 
00005  ***************************************************************************/
00006 
00007 /***************************************************************************
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  ***************************************************************************/
00015 
00016 #ifndef BROWSERWIDGET_H
00017 #define BROWSERWIDGET_H
00018 
00019 
00020 #include "ui_browserwidget.h"
00021 
00022 class KEduVocExpression;
00023 class KHTMLPart;
00024 
00025 struct DictionaryProvider {
00026     QString name;
00027     QString url;
00028     QStringList languages;
00029 };
00030 
00031 class BrowserWidget : public QWidget, public Ui::BrowserWidget
00032 {
00033     Q_OBJECT
00034 public:
00035     explicit BrowserWidget(QWidget* parent = 0);
00036 
00037 public slots:
00043     void setTranslation(KEduVocExpression* entry, int translation);
00044 
00045 
00046 private slots:
00047     void showCurrentTranslation();
00048     void openUrl(const KUrl& targetUrl);
00049     void providerChanged(int);
00050 private:
00054     void setupProviders();
00055 
00057     int               m_currentTranslation;
00059     KEduVocExpression* m_entry;
00060 
00061     KHTMLPart *m_htmlPart;
00062     QList<DictionaryProvider> m_providers;
00063     int m_currentProvider;
00064 };
00065 #endif

parley

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

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
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