diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kanagram/src/leitnersystem.h | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kanagram/src/leitnersystem.h')
-rw-r--r-- | kanagram/src/leitnersystem.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kanagram/src/leitnersystem.h b/kanagram/src/leitnersystem.h index 87e583d9..7d99a667 100644 --- a/kanagram/src/leitnersystem.h +++ b/kanagram/src/leitnersystem.h @@ -10,9 +10,9 @@ // // -#include <qstring.h> -#include <qstringlist.h> -#include <qvaluelist.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqvaluelist.h> #include "leitnerbox.h" #ifndef LEITNERSYSTEM_H @@ -26,42 +26,42 @@ class LeitnerSystem { public: LeitnerSystem(); - LeitnerSystem( QValueList<LeitnerBox>& boxes, QString name ); + LeitnerSystem( TQValueList<LeitnerBox>& boxes, TQString name ); ~LeitnerSystem(); int getNumberOfBoxes(); //returns the number of boxes in the system - QStringList getBoxNameList(); //returns a list with the boxes names + TQStringList getBoxNameList(); //returns a list with the boxes names - QString& getSystemName(); //returns the systems name - void setSystemName( const QString& name ); //sets the systems name + TQString& getSystemName(); //returns the systems name + void setSystemName( const TQString& name ); //sets the systems name LeitnerBox* getBoxWithNumber( int number ); //returns box by number - LeitnerBox* getBoxWithName( const QString& name );//returns box by name + LeitnerBox* getBoxWithName( const TQString& name );//returns box by name int getNumber( LeitnerBox* box ); - const QString& getBox( int i ); + const TQString& getBox( int i ); - const QString& getNextBox( QString& previousBox ); //returns the next box for the next question + const TQString& getNextBox( TQString& previousBox ); //returns the next box for the next question - 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 TQString& getCorrectBox( int box ); //returns the correct word box of "int box" + const TQString& getWrongBox( int box ); //returns the wrong word box of "int box" int getWrongBoxNumber( int box ); int getCorrectBoxNumber( int box ); - void setCorrectBox( const QString& box, const QString& correctWordBox ); - void setWrongBox( const QString& box, const QString& wrongWordBox ); - bool setBoxName( int box, const QString& name ); - bool setBoxName( LeitnerBox* box, const QString& name ); + void setCorrectBox( const TQString& box, const TQString& correctWordBox ); + void setWrongBox( const TQString& box, const TQString& wrongWordBox ); + bool setBoxName( int box, const TQString& name ); + bool setBoxName( LeitnerBox* box, const TQString& name ); //inserts a box with number, name, correct and wrong word box - bool insertBox( const QString& name, int correctWordBox, int wrongWordBox ); - bool insertBox( const QString& name ); + bool insertBox( const TQString& name, int correctWordBox, int wrongWordBox ); + bool insertBox( const TQString& name ); void deleteBox( int box ); void deleteBox( LeitnerBox* box ); private: - QString m_systemName; //the systems name + TQString m_systemName; //the systems name - QValueList<LeitnerBox> m_boxes; + TQValueList<LeitnerBox> m_boxes; }; #endif |