ResultListItem.h

Go to the documentation of this file.
00001 #ifndef RESULT_LIST_ITEM_H
00002 #define RESULT_LIST_ITEM_H
00003 
00004 #include <iostream.h>
00005 #include <qfontmetrics.h>
00006 #include <qlistview.h>
00007 #include <qmap.h>
00008 #include <qobject.h>
00009 #include <qpe/resource.h>
00010 #include <qwidget.h>
00011 #include "Term.h"
00012 
00013 class ResultListItem : public QListViewItem {
00014 
00015 public:
00016 
00017     ResultListItem( QListView* parent, Term* term, const QString& firstLanguage, const QString& testLanguage, const QString& vocabTitle, const QString& location, bool isAltShown = true );
00018     ~ResultListItem();
00019 
00020     Term* getTerm();
00021     void setup();
00022     void updateUi();
00023     void setFont( int column, const QFont& font ); 
00024     QFont font( int column ) const;
00025     virtual void paintCell( QPainter * p, const QColorGroup & cg, int column, int width, int align );
00026 
00027 private:
00028 
00029     Term*               term;
00030     QString             firstLanguage;
00031     QString             testLanguage;
00032     QString             vocabTitle;
00033     QString             location;
00034     bool                altShown;
00035 
00036     QMap<int,QFont>     fonts;
00037 
00038 };
00039 
00040 #endif
00041 
00042 

Generated on Sun Mar 1 17:30:47 2009 for toMOTko by  doxygen 1.5.6