22#ifndef SRC_HEADERS_GX_JCONV_SETTINGS_H_
23#define SRC_HEADERS_GX_JCONV_SETTINGS_H_
25#include <gxwmm/gainline.h>
26#include <gxwmm/radiobutton.h>
27#include <gxwmm/iredit.h>
52 int set_val(Gxw::ControlParameter *sample_display, Gxw::ControlParameter *ms_display,
53 double value,
int fs);
54 inline int get_ms(Gxw::ControlParameter *w) {
55 return static_cast<int>(round(w->cp_get_value()*
ms));
58 int channels, Glib::ustring format);
123 void on_enumerate(
const std::string& path,
const std::vector<gx_system::FileName>& l);
129 Glib::RefPtr<Gtk::AccelGroup> accels,
int nchan);
148 Glib::RefPtr<Gtk::AccelGroup> accels,
int nchan);
Gtk::TreeModelColumn< Glib::ustring > displayname
Gtk::TreeModelColumn< std::string > filename
Gxw::RadioButton * wLinear
gx_engine::JConvParameter * jcp
Glib::ustring on_delay_delta_format_value(double v)
void on_ms_length_changed()
bool on_key_press_event(GdkEventKey *event)
Gxw::ValueDisplay * wOffset
Gxw::ValueDisplay * wOffset_ms
Gxw::RadioButton * wRight
void on_m_delay_changed()
gx_engine::GxMachineBase & machine
void on_dircombo_changed()
void load_state(const gx_engine::GxJConvSettings *jcp)
IRWindow(const Glib::RefPtr< gx_gui::GxBuilder > &builder, gx_engine::JConvParameter *jcp, Glib::RefPtr< Gdk::Pixbuf > icon, gx_engine::GxMachineBase &machine, Glib::RefPtr< Gtk::AccelGroup > accels, int nchan)
Glib::RefPtr< Gtk::TreeStore > model
void on_enumerate(const std::string &path, const std::vector< gx_system::FileName > &l)
void file_changed(Glib::ustring filename, int rate, int length, int channels, Glib::ustring format)
Gtk::ToggleButton * wGain_correction
void on_offset_changed(int offset, int fs)
int get_ms(Gxw::ControlParameter *w)
Gxw::Regler * wDelay_delta
Gxw::ValueDisplay * wDelay
void on_max_scale_reached(bool v)
Gtk::Widget * wChannelbox
sigc::connection autogain_conn
void on_delay_changed(int delay, int fs)
void make_state(gx_engine::GxJConvSettings &jc)
Gxw::ValueDisplay * wDelay_ms
void on_gain_button_toggled()
void on_ok_button_clicked()
Gxw::ValueDisplay * wLength_ms
void on_length_changed(int length, int fs)
void on_ms_offset_changed()
void on_cancel_button_clicked()
void reload_impresp_list()
int set_val(Gxw::ControlParameter *sample_display, Gxw::ControlParameter *ms_display, double value, int fs)
std::string current_combo_dir
static IRWindow * create(const std::string &unit_id, Glib::RefPtr< Gdk::Pixbuf > icon, gx_engine::GxMachineBase &machine, Glib::RefPtr< Gtk::AccelGroup > accels, int nchan)
void on_ms_delay_changed()
Gtk::Button * wJump_zoom_mark
bool load_data(Glib::ustring filename, int offset=0, int delay=0, int length=0, const Gainline &gain=gain0)
double calc_normalized_gain(int offset, int length, const Gainline &points)
Glib::RefPtr< gx_gui::GxBuilder > builder
Gxw::ValueDisplay * wLength
void on_apply_button_clicked()
void on_min_scale_reached(bool v)
void on_m_length_changed()
void on_preset_popup_clicked()
void on_m_offset_changed()