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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • editor
browserwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4 
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef BROWSERWIDGET_H
17 #define BROWSERWIDGET_H
18 
19 
20 #include "ui_browserwidget.h"
21 
22 class KEduVocExpression;
23 class KHTMLPart;
24 
25 
26 namespace Editor
27 {
28 
29 struct DictionaryProvider {
30  QString name;
31  QString url;
32  QStringList languages;
33 };
34 
35 class BrowserWidget : public QWidget, public Ui::BrowserWidget
36 {
37  Q_OBJECT
38 public:
39  explicit BrowserWidget(QWidget* parent = 0);
40 
41 public slots:
47  void setTranslation(KEduVocExpression* entry, int translation);
48 
49 
50 private slots:
51  void showCurrentTranslation();
52  void openUrl(const KUrl& targetUrl);
53  void providerChanged(int);
54 private:
58  void setupProviders();
59 
61  int m_currentTranslation;
63  KEduVocExpression* m_entry;
64 
65  KHTMLPart *m_htmlPart;
66  QList<DictionaryProvider> m_providers;
67  int m_currentProvider;
68 };
69 
70 }
71 
72 #endif
QWidget
Editor::DictionaryProvider
Definition: browserwidget.h:29
Editor::DictionaryProvider::languages
QStringList languages
Definition: browserwidget.h:32
Editor::DictionaryProvider::url
QString url
Definition: browserwidget.h:31
QString
QList
QStringList
Editor::BrowserWidget::BrowserWidget
BrowserWidget(QWidget *parent=0)
Definition: browserwidget.cpp:25
Editor::DictionaryProvider::name
QString name
Definition: browserwidget.h:30
Editor::BrowserWidget
Definition: browserwidget.h:35
QObject::parent
QObject * parent() const
Editor::BrowserWidget::setTranslation
void setTranslation(KEduVocExpression *entry, int translation)
Update the word.
Definition: browserwidget.cpp:120
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal