diff options
Diffstat (limited to 'src/detailedentryitem.h')
-rw-r--r-- | src/detailedentryitem.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/detailedentryitem.h b/src/detailedentryitem.h new file mode 100644 index 0000000..50f0671 --- /dev/null +++ b/src/detailedentryitem.h @@ -0,0 +1,55 @@ +/*************************************************************************** + copyright : (C) 2005-2007 by Robby Stephenson + email : [email protected] + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of version 2 of the GNU General Public License as * + * published by the Free Software Foundation; * + * * + ***************************************************************************/ + +#ifndef TELLICO_DETAILEDENTRYITEM_H +#define TELLICO_DETAILEDENTRYITEM_H + +class QTime; +class QTimer; + +#include "entryitem.h" + +namespace Tellico { + +class DetailedListView; + +/** + * @author Robby Stephenson + */ +class DetailedEntryItem : public EntryItem { +public: + enum State { Normal, New, Modified }; + + DetailedEntryItem(DetailedListView* parent, Data::EntryPtr entry); + ~DetailedEntryItem(); + + void setState(State state); + + virtual QColor backgroundColor(int column); + virtual void paintCell(QPainter* p, const QColorGroup& cg, + int column, int width, int align); + +private: + /** + * Paints a focus indicator on the rectangle (current item). Disable for current items. + */ + void paintFocus(QPainter*, const QColorGroup&, const QRect&); + + State m_state; + QTime* m_time; + QTimer* m_timer; +}; + +} + +#endif |