exprtypes[idx] = type.stripWhiteSpace();
}
+void KEduVocExpression::setLeitnerBox( const QString& box )
+{
+ leitnerBox = box;
+}
+
+QString& KEduVocExpression::getLeitnerBox()
+{
+ return leitnerBox;
+}
+
*/
void incQueryCount (int index, bool rev_count = false);
+ /** sets the box of the Leitner system which actually contains the expression
+ *
+ * @param box the box's name
+ */
+ void setLeitnerBox(const QString& box);
+
+ /** returns the name of the Leitner system's box actually containing the expression
+ *
+ * @result the box's name
+ */
+ QString& getLeitnerBox();
+
protected:
void Init();
vector<Comparison> comparisons;
vector<MultipleChoice> mcs;
+ QString leitnerBox;
int lesson;
bool inquery;
bool active;
return m_boxes[ box ].getWrongWordBox()->getBoxName();
}
+const QString& LeitnerSystem::getCorrectBox( QString& box )
+{
+ return getBoxWithName( box )->getCorrectWordBox()->getBoxName();
+}
+
+const QString& LeitnerSystem::getWrongBox( QString& box )
+{
+ return getBoxWithName( box )->getWrongWordBox()->getBoxName();
+}
+
int LeitnerSystem::getWrongBoxNumber( int box )
{
return getNumber( m_boxes[ box ].getWrongWordBox() );
const QString& getCorrectBox( int box ); //returns the correct word box of "int box"
const QString& getWrongBox( int box ); //returns the wrong word box of "int box"
+ const QString& getCorrectBox( QString& box );
+ const QString& getWrongBox( QString& box );
int getWrongBoxNumber( int box );
int getCorrectBoxNumber( int box );