From 94946205548c0f68342d987417da6f26a861da74 Mon Sep 17 00:00:00 2001 From: fgerlits Date: Sun, 10 Apr 2005 09:56:15 +0000 Subject: [PATCH] added new file --- .../Widgets/ZebraTreeModelColumnRecord.h | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 livesupport/modules/widgets/include/LiveSupport/Widgets/ZebraTreeModelColumnRecord.h diff --git a/livesupport/modules/widgets/include/LiveSupport/Widgets/ZebraTreeModelColumnRecord.h b/livesupport/modules/widgets/include/LiveSupport/Widgets/ZebraTreeModelColumnRecord.h new file mode 100644 index 000000000..a6c486f46 --- /dev/null +++ b/livesupport/modules/widgets/include/LiveSupport/Widgets/ZebraTreeModelColumnRecord.h @@ -0,0 +1,90 @@ +/*------------------------------------------------------------------------------ + + Copyright (c) 2004 Media Development Loan Fund + + This file is part of the LiveSupport project. + http://livesupport.campware.org/ + To report bugs, send an e-mail to bugs@campware.org + + LiveSupport 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 of the License, or + (at your option) any later version. + + LiveSupport 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. + + You should have received a copy of the GNU General Public License + along with LiveSupport; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + + Author : $Author: fgerlits $ + Version : $Revision: 1.1 $ + Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/ZebraTreeModelColumnRecord.h,v $ + +------------------------------------------------------------------------------*/ +#ifndef LiveSupport_Widgets_ZebraTreeModelColumnRecord_h +#define LiveSupport_Widgets_ZebraTreeModelColumnRecord_h + +#ifndef __cplusplus +#error This is a C++ include file +#endif + + +/* ============================================================ include files */ + +#ifdef HAVE_CONFIG_H +#include "configure.h" +#endif + +#include + +namespace LiveSupport { +namespace Widgets { + +/* ================================================================ constants */ + + +/* =================================================================== macros */ + + +/* =============================================================== data types */ + +/** + * A basic column record class for tree models with colorable rows. + * + * @author $Author: fgerlits $ + * @version $Revision: 1.1 $ + */ +class ZebraTreeModelColumnRecord : public Gtk::TreeModelColumnRecord +{ + public: + /** + * The column for the color of the row. + */ + Gtk::TreeModelColumn colorColumn; + + /** + * Constructor. + */ + ZebraTreeModelColumnRecord(void) throw () + { + add(colorColumn); + } +}; + + +/* ================================================= external data structures */ + + +/* ====================================================== function prototypes */ + + +} // namespace Widgets +} // namespace LiveSupport + +#endif // LiveSupport_Widgets_ZebraTreeModelColumnRecord_h +