TermListItem.h

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

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