2 #ifndef _LIBGNOMECANVASMM_WAVEVIEW_H
3 #define _LIBGNOMECANVASMM_WAVEVIEW_H
11 * Copyright (C) 1998 EMC Capital Management Inc.
12 * Developed by Havoc Pennington <hp@pobox.com>
14 * Copyright (C) 1999 The Gtk-- Development Team
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Library General Public
18 * License as published by the Free Software Foundation; either
19 * version 2 of the License, or (at your option) any later version.
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Library General Public License for more details.
26 * You should have received a copy of the GNU Library General Public
27 * License along with this library; if not, write to the Free
28 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 #include <libgnomecanvasmm/item.h>
32 #include "canvas-waveview.h"
33 #include <libgnomecanvas/gnome-canvas-util.h>
34 #include <libgnomecanvas/libgnomecanvas.h>
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 typedef struct _GnomeCanvasWaveView GnomeCanvasWaveView;
40 typedef struct _GnomeCanvasWaveViewClass GnomeCanvasWaveViewClass;
41 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
48 { class WaveView_Class; } // namespace Canvas
59 class WaveView : public Item
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63 typedef WaveView CppObjectType;
64 typedef WaveView_Class CppClassType;
65 typedef GnomeCanvasWaveView BaseObjectType;
66 typedef GnomeCanvasWaveViewClass BaseClassType;
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71 #ifndef DOXYGEN_SHOULD_SKIP_THIS
74 friend class WaveView_Class;
75 static CppClassType waveview_class_;
78 WaveView(const WaveView&);
79 WaveView& operator=(const WaveView&);
82 explicit WaveView(const Glib::ConstructParams& construct_params);
83 explicit WaveView(GnomeCanvasWaveView* castitem);
85 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
88 #ifndef DOXYGEN_SHOULD_SKIP_THIS
89 static GType get_type() G_GNUC_CONST;
90 static GType get_base_type() G_GNUC_CONST;
93 ///Provides access to the underlying C GtkObject.
94 GnomeCanvasWaveView* gobj() { return reinterpret_cast<GnomeCanvasWaveView*>(gobject_); }
96 ///Provides access to the underlying C GtkObject.
97 const GnomeCanvasWaveView* gobj() const { return reinterpret_cast<GnomeCanvasWaveView*>(gobject_); }
101 //C++ methods used to invoke GTK+ virtual functions:
104 //GTK+ Virtual Functions (override these to change behaviour):
106 //Default Signal Handlers::
112 WaveView(Group& parent);
114 static GnomeCanvasWaveViewCache* create_cache();
116 Glib::PropertyProxy<void*> property_data_src();
117 Glib::PropertyProxy_ReadOnly<void*> property_data_src() const;
118 Glib::PropertyProxy<uint32_t> property_channel();
119 Glib::PropertyProxy_ReadOnly<uint32_t> property_channel() const;
120 Glib::PropertyProxy<void*> property_length_function();
121 Glib::PropertyProxy_ReadOnly<void*> property_length_function() const;
122 Glib::PropertyProxy<void*> property_sourcefile_length_function();
123 Glib::PropertyProxy_ReadOnly<void*> property_sourcefile_length_function() const;
124 Glib::PropertyProxy<void*> property_peak_function();
125 Glib::PropertyProxy_ReadOnly<void*> property_peak_function() const;
126 Glib::PropertyProxy<void*> property_gain_function();
127 Glib::PropertyProxy_ReadOnly<void*> property_gain_function() const;
128 Glib::PropertyProxy<void*> property_gain_src();
129 Glib::PropertyProxy_ReadOnly<void*> property_gain_src() const;
130 Glib::PropertyProxy<void*> property_cache();
131 Glib::PropertyProxy_ReadOnly<void*> property_cache() const;
132 Glib::PropertyProxy<bool> property_cache_updater();
133 Glib::PropertyProxy_ReadOnly<bool> property_cache_updater() const;
134 Glib::PropertyProxy<double> property_samples_per_unit();
135 Glib::PropertyProxy_ReadOnly<double> property_samples_per_unit() const;
136 Glib::PropertyProxy<double> property_amplitude_above_axis();
137 Glib::PropertyProxy_ReadOnly<double> property_amplitude_above_axis() const;
138 Glib::PropertyProxy<double> property_x();
139 Glib::PropertyProxy_ReadOnly<double> property_x() const;
140 Glib::PropertyProxy<double> property_y();
141 Glib::PropertyProxy_ReadOnly<double> property_y() const;
142 Glib::PropertyProxy<double> property_height();
143 Glib::PropertyProxy_ReadOnly<double> property_height() const;
144 Glib::PropertyProxy<guint> property_wave_color();
145 Glib::PropertyProxy_ReadOnly<guint> property_wave_color() const;
146 Glib::PropertyProxy<gint> property_rectified();
147 Glib::PropertyProxy_ReadOnly<gint> property_rectified() const;
148 Glib::PropertyProxy<guint> property_region_start();
149 Glib::PropertyProxy_ReadOnly<guint> property_region_start() const;
152 } /* namespace Canvas */
153 } /* namespace Gnome */
158 /** @relates Gnome::Canvas::WaveView
159 * @param object The C instance
160 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
161 * @result A C++ instance that wraps this C instance.
163 Gnome::Canvas::WaveView* wrap(GnomeCanvasWaveView* object, bool take_copy = false);
165 #endif /* _LIBGNOMECANVASMM_WAVEVIEW_H */