/* ============================================================ * * This file is a part of digiKam project * http://www.digikam.org * * Date : 2005-05-31 * Description : implementation of item folder. * * Copyright (C) 2005 by Renchi Raju * Copyright (C) 2006-2008 by Gilles Caulier * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software Foundation; * either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * ============================================================ */ #ifndef FOLDERITEM_H #define FOLDERITEM_H // TQt includes. #include // Local includes. #include "digikam_export.h" namespace Digikam { class DIGIKAM_EXPORT FolderItem : public TQListViewItem { public: FolderItem(TQListView* parent, const TQString& text, bool special=false); FolderItem(TQListViewItem* parent, const TQString& text, bool special=false); virtual ~FolderItem(); virtual int id() const; void setFocus(bool b); bool focus() const; protected: void paintCell(TQPainter* p, const TQColorGroup & cg, int column, int width, int align); void setup(); private: bool m_focus; bool m_special; }; // ------------------------------------------------------------------------------------ class FolderCheckListItem : public TQCheckListItem { public: FolderCheckListItem(TQListView* parent, const TQString& text, TQCheckListItem::Type tt); FolderCheckListItem(TQListViewItem* parent, const TQString& text, TQCheckListItem::Type tt); virtual ~FolderCheckListItem(); void setFocus(bool b); bool focus() const; protected: void paintCell(TQPainter* p, const TQColorGroup & cg, int column, int width, int align); void setup(); private: bool m_focus; }; } // namespace Digikam #endif /* FOLDERITEM_H */