1 /* === S I N F G =========================================================== */
2 /*! \file cellrenderer_gradient.cpp
3 ** \brief Template File
5 ** $Id: cellrenderer_gradient.cpp,v 1.1.1.1 2005/01/07 03:34:35 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === H E A D E R S ======================================================= */
31 #include <gtkmm/entry.h>
32 #include <gtkmm/button.h>
33 #include "cellrenderer_gradient.h"
34 #include "widget_gradient.h"
39 /* === U S I N G =========================================================== */
42 //using namespace etl;
43 using namespace sinfg;
44 using namespace studio;
46 /* === M A C R O S ========================================================= */
52 /* === G L O B A L S ======================================================= */
54 /* === P R O C E D U R E S ================================================= */
56 /* === M E T H O D S ======================================================= */
58 CellRenderer_Gradient::CellRenderer_Gradient():
59 Glib::ObjectBase (typeid(CellRenderer_Gradient)),
60 Gtk::CellRendererText (),
61 property_gradient_(*this,"gradient",sinfg::Gradient())
63 //CellRendererText::signal_edited().connect(sigc::mem_fun(*this,&studio::CellRenderer_Gradient::string_edited_));
66 CellRenderer_Gradient::~CellRenderer_Gradient()
72 CellRenderer_Gradient::render_vfunc(
73 const Glib::RefPtr<Gdk::Drawable>& window,
75 const Gdk::Rectangle& background_area,
76 const Gdk::Rectangle& ca,
77 const Gdk::Rectangle& expose_area,
78 Gtk::CellRendererState flags)
82 render_gradient_to_window(window,ca,property_gradient_.get_value());
87 CellRenderer_Gradient::start_editing_vfunc(
90 const Glib::ustring& path,
91 const Gdk::Rectangle& background_area,
92 const Gdk::Rectangle& cell_area,
93 Gtk::CellRendererState flags)