Build with Qt 4.7. Add some debug directives.
[mverbiste] / gui / conjugation.h
index f940a3c..411dcc9 100644 (file)
 
 #include <vector>
 #include <string>
+#include <QtCore/QVector>
+#include <QtCore/QString>
 
 typedef std::vector<std::string> VS;
 typedef std::vector<VS> VVS;
 typedef std::vector<VVS> VVVS;
 
-
+#ifndef QT_NO_DEBUG
+#include <QtCore/QElapsedTimer>
+#include <QtCore/QDebug>
+#endif
 
 /** Obtains the conjugation of the given infinitive.
     @param  fvd             verb dictionary from which to obtain
@@ -48,6 +53,9 @@ void getConjugation(const verbiste::FrenchVerbDictionary &fvd,
                         const std::string &infinitive,
                         const std::string &tname,
                         VVVS &dest,
+                    #ifndef QT_NO_DEBUG
+                        QElapsedTimer &timer,
+                    #endif
                         bool includePronouns = false);
 
 
@@ -94,5 +102,13 @@ std::string createTableCellText(verbiste::FrenchVerbDictionary &fvd,
                                 const std::string &openMark,
                                 const std::string &closeMark);
 
-
+/**
+ * Qt version of createTableCellText() above.
+ * Return a vertor of QStrings, which are conjugations.
+ **/
+QVector<QString> qgetConjugates(verbiste::FrenchVerbDictionary &fvd,
+                                const VVS &tense,
+                                const std::string &lowerCaseUTF8UserText,
+                                const std::string &openMark,
+                                const std::string &closeMark);
 #endif  /* _H_conjugation */