/*************************************************************************** dialog page for multiple choice suggestions ----------------------------------------------------------------------- begin : Mon Oct 29 18:09:29 1999 copyright : (C) 1999-2001 Ewald Arnold (C) 2005-2006 Peter Hedlund (C) 2007 Frederik Gladhorn ----------------------------------------------------------------------- ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef MULTIPLECHOICEWIDGET_H #define MULTIPLECHOICEWIDGET_H #include "ui_multiplechoicewidget.h" #include class KEduVocExpression; class KEduVocTranslation; class QStringListModel; class MultipleChoiceWidget : public QWidget, public Ui::multipleChoiceWidget { Q_OBJECT public: explicit MultipleChoiceWidget(QWidget *parent = 0); public slots: void setTranslation(KEduVocExpression* entry, int translation); protected: bool eventFilter(QObject *obj, QEvent *event); private slots: void slotDataChanged( const QModelIndex & topLeft, const QModelIndex & bottomRight ); void slotAddChoiceButton(); void slotRemoveChoiceButton(); private: KEduVocTranslation* m_translation; QStringListModel * m_choicesModel; }; #endif