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

parley

synonymwidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00003  ***************************************************************************/
00004 
00005 /***************************************************************************
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  ***************************************************************************/
00013 
00014 #ifndef SYNONYMWIDGET_H
00015 #define SYNONYMWIDGET_H
00016 
00017 #include "ui_synonymwidget.h"
00018 
00019 #include <QModelIndex>
00020 
00021 class KEduVocExpression;
00022 class KEduVocTranslation;
00023 class QStringListModel;
00024 
00025 class SynonymWidget : public QWidget, public Ui::SynonymWidget
00026 {
00027     Q_OBJECT
00028 public:
00029     enum SynonymWidgetType {
00030         Synonym,
00031         Antonym,
00032         FalseFriend
00033     };
00034 
00035     explicit SynonymWidget(SynonymWidgetType type, QWidget *parent = 0);
00036 
00037 public slots:
00038     void setTranslation(KEduVocExpression* entry, int translation);
00039 
00040 private slots:
00041     void togglePair();
00042     void updateList();
00043 
00044 private:
00045     // the one that was selected before
00046     KEduVocTranslation* m_lastTranslation;
00047     // the one the user clicked on latest
00048     KEduVocTranslation* m_currentTranslation;
00049     QStringListModel * m_listModel;
00050     SynonymWidgetType m_type;
00051 };
00052 
00053 #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