6 #include <gxwmm/iredit.h> 7 #include <gxwmm/private/iredit_p.h> 28 #include <gxw/GxIREdit.h> 34 float *data,
int chan,
int data_len,
int samplerate,
int cutoff_low,
35 int cutoff_high,
int offset,
const Gainline& gain)
38 gobj(), data, chan, data_len, samplerate, cutoff_low, cutoff_high,
39 offset, gain.points(), gain.size());
46 gx_ir_edit_get_gain(
gobj(), &p, &n);
47 return Gainline(p, n);
52 gx_ir_edit_set_gain(
gobj(), g.points(), g.size());
61 static void IREdit_signal_delay_changed_callback(
GxIREdit*
self, gint p0,gint p1,
void* data)
64 typedef sigc::slot< void,int,int > SlotType;
67 if(Glib::ObjectBase::_get_current_wrapper((GObject*)
self))
69 #ifdef GLIBMM_EXCEPTIONS_ENABLED 72 #endif //GLIBMM_EXCEPTIONS_ENABLED 73 if(sigc::slot_base *
const slot = Glib::SignalProxyNormal::data_to_slot(data))
74 (*
static_cast<SlotType*
>(slot))(p0
77 #ifdef GLIBMM_EXCEPTIONS_ENABLED 81 Glib::exception_handlers_invoke();
83 #endif //GLIBMM_EXCEPTIONS_ENABLED 87 static const Glib::SignalProxyInfo IREdit_signal_delay_changed_info =
90 (GCallback) &IREdit_signal_delay_changed_callback,
91 (GCallback) &IREdit_signal_delay_changed_callback
95 static void IREdit_signal_offset_changed_callback(
GxIREdit*
self, gint p0,gint p1,
void* data)
98 typedef sigc::slot< void,int,int > SlotType;
101 if(Glib::ObjectBase::_get_current_wrapper((GObject*)
self))
103 #ifdef GLIBMM_EXCEPTIONS_ENABLED 106 #endif //GLIBMM_EXCEPTIONS_ENABLED 107 if(sigc::slot_base *
const slot = Glib::SignalProxyNormal::data_to_slot(data))
108 (*
static_cast<SlotType*
>(slot))(p0
111 #ifdef GLIBMM_EXCEPTIONS_ENABLED 115 Glib::exception_handlers_invoke();
117 #endif //GLIBMM_EXCEPTIONS_ENABLED 121 static const Glib::SignalProxyInfo IREdit_signal_offset_changed_info =
124 (GCallback) &IREdit_signal_offset_changed_callback,
125 (GCallback) &IREdit_signal_offset_changed_callback
129 static void IREdit_signal_length_changed_callback(
GxIREdit*
self, gint p0,gint p1,
void* data)
132 typedef sigc::slot< void,int,int > SlotType;
135 if(Glib::ObjectBase::_get_current_wrapper((GObject*)
self))
137 #ifdef GLIBMM_EXCEPTIONS_ENABLED 140 #endif //GLIBMM_EXCEPTIONS_ENABLED 141 if(sigc::slot_base *
const slot = Glib::SignalProxyNormal::data_to_slot(data))
142 (*
static_cast<SlotType*
>(slot))(p0
145 #ifdef GLIBMM_EXCEPTIONS_ENABLED 149 Glib::exception_handlers_invoke();
151 #endif //GLIBMM_EXCEPTIONS_ENABLED 155 static const Glib::SignalProxyInfo IREdit_signal_length_changed_info =
158 (GCallback) &IREdit_signal_length_changed_callback,
159 (GCallback) &IREdit_signal_length_changed_callback
163 static void IREdit_signal_scale_max_reached_callback(
GxIREdit*
self, gboolean p0,
void* data)
166 typedef sigc::slot< void,bool > SlotType;
169 if(Glib::ObjectBase::_get_current_wrapper((GObject*)
self))
171 #ifdef GLIBMM_EXCEPTIONS_ENABLED 174 #endif //GLIBMM_EXCEPTIONS_ENABLED 175 if(sigc::slot_base *
const slot = Glib::SignalProxyNormal::data_to_slot(data))
176 (*
static_cast<SlotType*
>(slot))(p0
178 #ifdef GLIBMM_EXCEPTIONS_ENABLED 182 Glib::exception_handlers_invoke();
184 #endif //GLIBMM_EXCEPTIONS_ENABLED 188 static const Glib::SignalProxyInfo IREdit_signal_scale_max_reached_info =
191 (GCallback) &IREdit_signal_scale_max_reached_callback,
192 (GCallback) &IREdit_signal_scale_max_reached_callback
196 static void IREdit_signal_scale_min_reached_callback(
GxIREdit*
self, gboolean p0,
void* data)
199 typedef sigc::slot< void,bool > SlotType;
202 if(Glib::ObjectBase::_get_current_wrapper((GObject*)
self))
204 #ifdef GLIBMM_EXCEPTIONS_ENABLED 207 #endif //GLIBMM_EXCEPTIONS_ENABLED 208 if(sigc::slot_base *
const slot = Glib::SignalProxyNormal::data_to_slot(data))
209 (*
static_cast<SlotType*
>(slot))(p0
211 #ifdef GLIBMM_EXCEPTIONS_ENABLED 215 Glib::exception_handlers_invoke();
217 #endif //GLIBMM_EXCEPTIONS_ENABLED 221 static const Glib::SignalProxyInfo IREdit_signal_scale_min_reached_info =
224 (GCallback) &IREdit_signal_scale_min_reached_callback,
225 (GCallback) &IREdit_signal_scale_min_reached_callback
237 return dynamic_cast<Gxw::IREdit *
> (Glib::wrap_auto ((GObject*)(
object), take_copy));
253 class_init_func_ = &IREdit_Class::class_init_function;
270 void IREdit_Class::class_init_function(
void* g_class,
void* class_data)
273 CppClassParent::class_init_function(klass, class_data);
290 Gtk::DrawingArea(construct_params)
296 Gtk::DrawingArea((GtkDrawingArea*)(castitem))
309 return iredit_class_.init().get_type();
323 Gtk::DrawingArea(
Glib::ConstructParams(iredit_class_.
init()))
331 gx_ir_edit_set_ir_data(
gobj(), p1, p2, p3, p4);
336 gx_ir_edit_home(
gobj());
341 gx_ir_edit_jump_zoom_mark(
gobj());
346 gx_ir_edit_set_channel(
gobj(), p1);
351 gx_ir_edit_incr_scale(
gobj(), p1);
356 gx_ir_edit_decr_scale(
gobj(), p1);
361 gx_ir_edit_set_log(
gobj(), static_cast<int>(p1));
366 return gx_ir_edit_get_delay(
gobj());
371 gx_ir_edit_set_delay(
gobj(), p1);
376 return gx_ir_edit_get_offset(
gobj());
381 gx_ir_edit_set_offset(
gobj(), p1);
386 return gx_ir_edit_get_length(
gobj());
391 gx_ir_edit_set_length(
gobj(), p1);
397 return Glib::SignalProxy2< void,int,int >(
this, &IREdit_signal_delay_changed_info);
403 return Glib::SignalProxy2< void,int,int >(
this, &IREdit_signal_offset_changed_info);
409 return Glib::SignalProxy2< void,int,int >(
this, &IREdit_signal_length_changed_info);
415 return Glib::SignalProxy1< void,bool >(
this, &IREdit_signal_scale_max_reached_info);
421 return Glib::SignalProxy1< void,bool >(
this, &IREdit_signal_scale_min_reached_info);
425 #ifdef GLIBMM_PROPERTIES_ENABLED 426 Glib::PropertyProxy< int > IREdit::property_y_border_top()
428 return Glib::PropertyProxy< int >(
this,
"y-border-top");
430 #endif //GLIBMM_PROPERTIES_ENABLED 432 #ifdef GLIBMM_PROPERTIES_ENABLED 433 Glib::PropertyProxy_ReadOnly< int > IREdit::property_y_border_top()
const 435 return Glib::PropertyProxy_ReadOnly< int >(
this,
"y-border-top");
437 #endif //GLIBMM_PROPERTIES_ENABLED 439 #ifdef GLIBMM_PROPERTIES_ENABLED 440 Glib::PropertyProxy< int > IREdit::property_y_border_bottom()
442 return Glib::PropertyProxy< int >(
this,
"y-border-bottom");
444 #endif //GLIBMM_PROPERTIES_ENABLED 446 #ifdef GLIBMM_PROPERTIES_ENABLED 447 Glib::PropertyProxy_ReadOnly< int > IREdit::property_y_border_bottom()
const 449 return Glib::PropertyProxy_ReadOnly< int >(
this,
"y-border-bottom");
451 #endif //GLIBMM_PROPERTIES_ENABLED 453 #ifdef GLIBMM_PROPERTIES_ENABLED 454 Glib::PropertyProxy< int > IREdit::property_x_border()
456 return Glib::PropertyProxy< int >(
this,
"x-border");
458 #endif //GLIBMM_PROPERTIES_ENABLED 460 #ifdef GLIBMM_PROPERTIES_ENABLED 461 Glib::PropertyProxy_ReadOnly< int > IREdit::property_x_border()
const 463 return Glib::PropertyProxy_ReadOnly< int >(
this,
"x-border");
465 #endif //GLIBMM_PROPERTIES_ENABLED 467 #ifdef GLIBMM_PROPERTIES_ENABLED 468 Glib::PropertyProxy< int > IREdit::property_label_sep()
470 return Glib::PropertyProxy< int >(
this,
"label-sep");
472 #endif //GLIBMM_PROPERTIES_ENABLED 474 #ifdef GLIBMM_PROPERTIES_ENABLED 475 Glib::PropertyProxy_ReadOnly< int > IREdit::property_label_sep()
const 477 return Glib::PropertyProxy_ReadOnly< int >(
this,
"label-sep");
479 #endif //GLIBMM_PROPERTIES_ENABLED 481 #ifdef GLIBMM_PROPERTIES_ENABLED 482 Glib::PropertyProxy< double > IREdit::property_dot_diameter()
484 return Glib::PropertyProxy< double >(
this,
"dot-diameter");
486 #endif //GLIBMM_PROPERTIES_ENABLED 488 #ifdef GLIBMM_PROPERTIES_ENABLED 489 Glib::PropertyProxy_ReadOnly< double > IREdit::property_dot_diameter()
const 491 return Glib::PropertyProxy_ReadOnly< double >(
this,
"dot-diameter");
493 #endif //GLIBMM_PROPERTIES_ENABLED 495 #ifdef GLIBMM_PROPERTIES_ENABLED 496 Glib::PropertyProxy< double > IREdit::property_segment_distance()
498 return Glib::PropertyProxy< double >(
this,
"segment-distance");
500 #endif //GLIBMM_PROPERTIES_ENABLED 502 #ifdef GLIBMM_PROPERTIES_ENABLED 503 Glib::PropertyProxy_ReadOnly< double > IREdit::property_segment_distance()
const 505 return Glib::PropertyProxy_ReadOnly< double >(
this,
"segment-distance");
507 #endif //GLIBMM_PROPERTIES_ENABLED 509 #ifdef GLIBMM_PROPERTIES_ENABLED 510 Glib::PropertyProxy< double > IREdit::property_limit()
512 return Glib::PropertyProxy< double >(
this,
"limit");
514 #endif //GLIBMM_PROPERTIES_ENABLED 516 #ifdef GLIBMM_PROPERTIES_ENABLED 517 Glib::PropertyProxy_ReadOnly< double > IREdit::property_limit()
const 519 return Glib::PropertyProxy_ReadOnly< double >(
this,
"limit");
521 #endif //GLIBMM_PROPERTIES_ENABLED 523 #ifdef GLIBMM_PROPERTIES_ENABLED 524 Glib::PropertyProxy_ReadOnly< int > IREdit::property_fs()
const 526 return Glib::PropertyProxy_ReadOnly< int >(
this,
"fs");
528 #endif //GLIBMM_PROPERTIES_ENABLED 530 #ifdef GLIBMM_PROPERTIES_ENABLED 531 Glib::PropertyProxy< double > IREdit::property_max_scale_fact()
533 return Glib::PropertyProxy< double >(
this,
"max-scale-fact");
535 #endif //GLIBMM_PROPERTIES_ENABLED 537 #ifdef GLIBMM_PROPERTIES_ENABLED 538 Glib::PropertyProxy_ReadOnly< double > IREdit::property_max_scale_fact()
const 540 return Glib::PropertyProxy_ReadOnly< double >(
this,
"max-scale-fact");
542 #endif //GLIBMM_PROPERTIES_ENABLED 544 #ifdef GLIBMM_PROPERTIES_ENABLED 545 Glib::PropertyProxy< double > IREdit::property_min_scale()
547 return Glib::PropertyProxy< double >(
this,
"min-scale");
549 #endif //GLIBMM_PROPERTIES_ENABLED 551 #ifdef GLIBMM_PROPERTIES_ENABLED 552 Glib::PropertyProxy_ReadOnly< double > IREdit::property_min_scale()
const 554 return Glib::PropertyProxy_ReadOnly< double >(
this,
"min-scale");
556 #endif //GLIBMM_PROPERTIES_ENABLED 558 #ifdef GLIBMM_PROPERTIES_ENABLED 559 Glib::PropertyProxy< double > IREdit::property_scale()
561 return Glib::PropertyProxy< double >(
this,
"scale");
563 #endif //GLIBMM_PROPERTIES_ENABLED 565 #ifdef GLIBMM_PROPERTIES_ENABLED 566 Glib::PropertyProxy_ReadOnly< double > IREdit::property_scale()
const 568 return Glib::PropertyProxy_ReadOnly< double >(
this,
"scale");
570 #endif //GLIBMM_PROPERTIES_ENABLED 572 #ifdef GLIBMM_PROPERTIES_ENABLED 573 Glib::PropertyProxy< Glib::ustring > IREdit::property_no_data_text()
575 return Glib::PropertyProxy< Glib::ustring >(
this,
"no-data-text");
577 #endif //GLIBMM_PROPERTIES_ENABLED 579 #ifdef GLIBMM_PROPERTIES_ENABLED 580 Glib::PropertyProxy_ReadOnly< Glib::ustring > IREdit::property_no_data_text()
const 582 return Glib::PropertyProxy_ReadOnly< Glib::ustring >(
this,
"no-data-text");
584 #endif //GLIBMM_PROPERTIES_ENABLED
Glib::SignalProxy2< void, int, int > signal_length_changed()
GType gx_ir_edit_get_type(void)
void set_ir_data(float *p1, int p2, int p3, int p4)
Glib::SignalProxy2< void, int, int > signal_delay_changed()
static Glib::ObjectBase * wrap_new(GObject *)
GxIREdit * gobj()
Provides access to the underlying C GtkObject.
static GType get_base_type() G_GNUC_CONST
void decr_scale(double p1)
Glib::SignalProxy1< void, bool > signal_scale_max_reached()
struct _GxIREdit GxIREdit
Glib::SignalProxy1< void, bool > signal_scale_min_reached()
Glib::SignalProxy2< void, int, int > signal_offset_changed()
void set_state(float *data, int chan, int data_len, int samplerate, int cutoff_low, int cutoff_high, int offset, const Gainline &gain)
void incr_scale(double p1)
void set_gain(const Gainline &gain)
GxIREditClass BaseClassType
static GType get_type() G_GNUC_CONST
Gxw::IREdit * wrap(GxIREdit *object, bool take_copy=false)
A Glib::wrap() method for this object.