parley
lessonview.cpp
Go to the documentation of this file.
76 parent->actionCollection()->addAction("remove_grades_lesson_children", actionRemoveGradesLessonChildren);
77 actionRemoveGradesLessonChildren->setText(i18n("Remove Confidence Levels From This Unit And All Subunits"));
79 actionRemoveGradesLessonChildren->setWhatsThis(i18n("Remove confidence levels from this unit and all subunits."));
146 void LessonView::selectionChanged(const QItemSelection & selected, const QItemSelection & deselected)
154 KEduVocLesson *container = static_cast<KEduVocLesson*>(selected.indexes().value(0).internalPointer());
203 KMessageBox::warningYesNo(this, i18np("There is %1 word left in this unit. Do you want to delete it?", "There are %1 words left in this unit. Do you want to delete them?", count)) == KMessageBox::Yes) {
217 int numEntries = KInputDialog::getInteger(i18n("Entries per Unit"), i18n("The unit will be split into smaller unit. How many entries in each unit do you want?"), Prefs::entriesPerLesson(), 1, 1000, 1, &ok, this);
246 connect(model, SIGNAL(columnsInserted(const QModelIndex &, int, int)), this, SLOT(columnsInserted()));
QModelIndexList indexes() const
void setTranslation(KEduVocExpression *entry, int translationId)
Definition: lessonview.cpp:160
void slotRemoveGradesLessonChildren()
Remove the grades for the selected lesson and its children.
Definition: lessonview.cpp:234
void columnsInserted()
get notified of new columns only to hide them (grades not shown by default).
Definition: lessonview.cpp:252
void setSeparator(bool b)
QModelIndex currentIndex() const
QItemSelectionModel * selectionModel() const
void addAction(QAction *action)
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
void collapseAll()
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: readonlycontainermodel.cpp:49
void expandAllLesson()
Expand all the lessons and its corresponding sub-lessons.
Definition: lessonview.cpp:259
void selectedLessonChanged(KEduVocLesson *lesson)
A lesson was selected.
virtual void setModel(ContainerModel *model)
Set the model for the view.
Definition: containerview.cpp:42
void slotCreateNewLesson()
Append a lesson to the model and automatically set an edit up so the user can change "New unit" into ...
Definition: lessonview.cpp:174
void setExpanded(const QModelIndex &index, bool expanded)
bool isValid() const
int count(const T &value) const
void collapseAllLesson()
Collapse all the lessons and its corresponding sub-lessons.
Definition: lessonview.cpp:264
virtual void select(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
void splitLesson(const QModelIndex &containerIndex, int entriesPerLesson, SplitLessonOrder order)
Divide a lesson into smaller ones.
Definition: lessonmodel.cpp:83
void * internalPointer() const
void clearSelection()
QModelIndex parent() const
void setColumnHidden(int column, bool hide)
QModelIndex appendContainer(const QModelIndex &parent, const QString &containerName=QString())
Definition: containermodel.cpp:43
virtual void scrollTo(const QModelIndex &index, ScrollHint hint)
void expandAll()
virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: containermodel.cpp:187
Definition: editor.h:50
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
Definition: lessonview.cpp:146
void slotRemoveGradesLesson()
Remove the grades for the selected lesson.
Definition: lessonview.cpp:226
void deleteContainer(const QModelIndex &containerIndex)
Definition: containermodel.cpp:199
void edit(const QModelIndex &index)
void setCurrentIndex(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
QAbstractItemModel * model() const
QModelIndex currentIndex() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void signalShowContainer(KEduVocContainer *selected)
Emitted when a new container is selected.
void currentChanged(const QModelIndex ¤t, const QModelIndex &previous)
Definition: lessonview.cpp:133
void slotSplitLesson()
Creates many small lessons with the contents of the original lesson.
Definition: lessonview.cpp:208
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.