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

parley

configurepracticewidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     -----------------------------------------------------------------------
00004 
00005     copyright     : (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00006 
00007     -----------------------------------------------------------------------
00008 
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
00017  *                                                                         *
00018  ***************************************************************************/
00019 
00020 #ifndef CONFIGUREPRACTICEWIDGET_H
00021 #define CONFIGUREPRACTICEWIDGET_H
00022 
00023 #include "ui_configurepracticewidget.h"
00024 #include "ui_conjugationoptionswidget.h"
00025 
00026 class KEduVocDocument;
00027 class QStackedLayout;
00028 class QTreeWidget;
00029 
00034 class ConfigurePracticeWidget
00035     : public QWidget, public Ui::ConfigurePracticeWidget
00036 {
00037 Q_OBJECT
00038 public:
00039     ConfigurePracticeWidget(KEduVocDocument* doc, QWidget *parent);
00040 
00044     void updateSettings();
00048     void updateWidgets();
00049 
00050     bool hasChanged();
00051     bool isDefault();
00052 
00053 private slots:
00054     void fromLanguageSelected(int identifierFromIndex);
00055 
00056     void flashCardsRadioToggled(bool checked);
00057     void comparisonRadioToggled(bool checked);
00058     void conjugationRadioToggled(bool checked);
00059     void writtenRadioToggled(bool checked);
00060     void multipleChoiceRadioToggled(bool checked);
00061     void otherRadioToggled(bool checked);
00062 
00063     void monolingualPracticeSelected(bool selected);
00064     void bilingualPracticeSelected(bool selected);
00065 
00066 private:
00067     void setupTenses();
00068 
00069     enum StackedWidgets {
00070         Empty,
00071         WrittenPractice,
00072         Conjugation,
00073         Comparison,
00074         MultipleChoice,
00075         FlashCards
00076     };
00077     QStackedLayout* m_optionsStackedLayout;
00078     Ui::ConjugationOptionsWidget m_conjugationUi;
00079     KEduVocDocument* m_doc;
00080     bool m_bilingual;
00081 };
00082 
00083 #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