• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
knhdrviewitem.h
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 1999-2005 the KNode authors.
4  See file AUTHORS for details
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  You should have received a copy of the GNU General Public License
11  along with this program; if not, write to the Free Software Foundation,
12  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13 */
14 
15 #ifndef KNHDRVIEWITEM_H
16 #define KNHDRVIEWITEM_H
17 
18 #include "knarticle.h"
19 
20 #include <k3listview.h>
21 
22 class KNHeaderView;
23 
24 
26 class KNHdrViewItem : public K3ListViewItem {
27 
28  public:
29  explicit KNHdrViewItem( KNHeaderView *ref, KNArticle::Ptr a = KNArticle::Ptr() );
30  explicit KNHdrViewItem( KNHdrViewItem *ref, KNArticle::Ptr a = KNArticle::Ptr() );
31  ~KNHdrViewItem();
32 
33  virtual int compare(Q3ListViewItem *i, int col, bool ascending) const;
34 
35  void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment);
36  int width(const QFontMetrics &fm, const Q3ListView *lv, int column) const;
37 
38  virtual QString text( int col ) const;
39 
40  void expandChildren();
41 
42  void setActive( bool b ) { mActive = b; }
43  bool isActive() const { return mActive; }
44 
45  // DND
46  Q3DragObject* dragObject();
47 
48  KNArticle::Ptr art;
49  int countUnreadInThread();
50 
51  bool showToolTip( int column ) const { return mShowToolTip[column]; }
52 
53  private:
54  void init( KNArticle::Ptr );
55 
56  bool greyOut();
57  bool firstColBold();
58  QColor normalColor();
59  QColor greyColor();
60 
61  bool mActive;
62  bool mShowToolTip[5]; // ### hardcoded column count :-(
63 
64 };
65 
66 #endif
KNHeaderView
Header view, displays the article listing of the currently selected news group or folder...
Definition: headerview.h:130
KNHdrViewItem::isActive
bool isActive() const
Definition: knhdrviewitem.h:43
KNHdrViewItem::text
virtual QString text(int col) const
Definition: knhdrviewitem.cpp:213
KNHdrViewItem::expandChildren
void expandChildren()
Definition: knhdrviewitem.cpp:67
K3ListViewItem
KNHdrViewItem::compare
virtual int compare(Q3ListViewItem *i, int col, bool ascending) const
Definition: knhdrviewitem.cpp:78
KNHdrViewItem::KNHdrViewItem
KNHdrViewItem(KNHeaderView *ref, KNArticle::Ptr a=KNArticle::Ptr())
Definition: knhdrviewitem.cpp:30
KNHdrViewItem
Header view item.
Definition: knhdrviewitem.h:26
KNHdrViewItem::showToolTip
bool showToolTip(int column) const
Definition: knhdrviewitem.h:51
Q3ListViewItem
KNHdrViewItem::width
int width(const QFontMetrics &fm, const Q3ListView *lv, int column) const
Definition: knhdrviewitem.cpp:194
KNHdrViewItem::~KNHdrViewItem
~KNHdrViewItem()
Definition: knhdrviewitem.cpp:53
KNHdrViewItem::art
KNArticle::Ptr art
Definition: knhdrviewitem.h:48
KNHdrViewItem::countUnreadInThread
int countUnreadInThread()
Definition: knhdrviewitem.cpp:272
KNArticle::Ptr
boost::shared_ptr< KNArticle > Ptr
Shared pointer to a KNArticle. To be used instead of raw KNArticle*.
Definition: knarticle.h:39
knarticle.h
KNHdrViewItem::setActive
void setActive(bool b)
Definition: knhdrviewitem.h:42
KNHdrViewItem::dragObject
Q3DragObject * dragObject()
Definition: knhdrviewitem.cpp:245
KNHdrViewItem::paintCell
void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
Definition: knhdrviewitem.cpp:119
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal