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

parley

CommonEntryPage.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003                          edit common properties
00004 
00005     -----------------------------------------------------------------------
00006 
00007     begin         : Mon Jun 28 21:02:16 1999
00008 
00009     copyright     : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
00010                     (C) 2005-2007 Peter Hedlund <peter.hedlund@kdemail.net>
00011                     (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00012 
00013     -----------------------------------------------------------------------
00014 
00015  ***************************************************************************/
00016 
00017 /***************************************************************************
00018  *                                                                         *
00019  *   This program is free software; you can redistribute it and/or modify  *
00020  *   it under the terms of the GNU General Public License as published by  *
00021  *   the Free Software Foundation; either version 2 of the License, or     *
00022  *   (at your option) any later version.                                   *
00023  *                                                                         *
00024  ***************************************************************************/
00025 
00026 #ifndef CommonEntryPage_included
00027 #define CommonEntryPage_included
00028 
00029 
00030 #include "ui_CommonEntryPageForm.h"
00031 
00032 // kvtquery.h is still needed for usages
00033 #include "practice/testentrymanager.h"
00034 
00035 #include <keduvocwordtype.h>
00036 #include <keduvocdocument.h>
00037 
00038 class CommonEntryPage : public QWidget, public Ui::CommonEntryPageForm
00039 {
00040     Q_OBJECT
00041 public:
00042     explicit CommonEntryPage(KEduVocDocument *doc, QWidget* parent = 0);
00043 
00044     void setData(const QList<int>& entries, int currentTranslation);
00045     void commitData();
00046 
00047     bool isModified();
00048 
00049 signals:
00050     void signalTypeSelected(const QString &);
00051 
00052 private:
00053     void updateMainTypeBoxContents();
00054     void setLessonBox(int lesson);
00055     void setUsageSelection(const QStringList& selectionList);
00056 
00057 private slots:
00058     // to get noted upon modification
00059     void slotDataChanged();
00060     void slotDataChanged(int);
00061     void slotDataChanged(const QString&);
00062 
00064     void slotUsageChanged();
00066     void slotTypeBoxChanged(const QString &mainType);
00067 
00072     void phoneticSelected(const QChar& c);
00073     void invokeTypeDlg();
00074     void invokePronDlg();
00075     void invokeUsageDlg();
00076     void slotSubDialogClosed();
00077 
00078 signals:
00079     void sigModified();
00080 
00081 private:
00082     KEduVocDocument     *m_doc;
00083 
00084     KDialog             *subDialog;
00085 
00087     int               m_currentTranslation;
00089     QList<int>        m_entries;
00090     bool m_usageIsModified;
00091     KEduVocWordType   m_wordTypes;
00092 };
00093 #endif // CommonEntryPage_included

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"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
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