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

parley

  • sources
  • kde-4.12
  • 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 struct DictionaryProvider {
29  QString name;
30  QString url;
31  QStringList languages;
32 };
33 
34 class BrowserWidget : public QWidget, public Ui::BrowserWidget
35 {
36  Q_OBJECT
37 public:
38  explicit BrowserWidget(QWidget* parent = 0);
39 
40 public slots:
46  void setTranslation(KEduVocExpression* entry, int translation);
47 
48 
49 private slots:
50  void showCurrentTranslation();
51  void openUrl(const KUrl& targetUrl);
52  void providerChanged(int);
53 private:
57  void setupProviders();
58 
60  int m_currentTranslation;
62  KEduVocExpression* m_entry;
63 
64  KHTMLPart *m_htmlPart;
65  QList<DictionaryProvider> m_providers;
66  int m_currentProvider;
67 };
68 
69 }
70 
71 #endif
Editor::DictionaryProvider
Definition: browserwidget.h:28
Editor::DictionaryProvider::languages
QStringList languages
Definition: browserwidget.h:31
Editor::DictionaryProvider::url
QString url
Definition: browserwidget.h:30
QWidget
Editor::BrowserWidget::BrowserWidget
BrowserWidget(QWidget *parent=0)
Definition: browserwidget.cpp:25
Editor::DictionaryProvider::name
QString name
Definition: browserwidget.h:29
Editor::BrowserWidget
Definition: browserwidget.h:34
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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