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> 40 Glib::RefPtr<gx_gui::GxBuilder> builder;
41 Glib::ustring filename;
44 unsigned int audio_size;
47 Gtk::Window* gtk_window;
48 sigc::connection autogain_conn;
53 double value,
int fs);
57 void file_changed(Glib::ustring filename,
int rate,
int length,
58 int channels, Glib::ustring format);
59 static Gainline gain0;
60 bool load_data(Glib::ustring filename,
int offset = 0,
int delay = 0,
int length = 0,
const Gainline& gain = gain0);
65 double calc_normalized_gain(
int offset,
int length,
const Gainline& points);
69 void on_window_hide();
72 void on_delay_changed(
int delay,
int fs);
73 void on_offset_changed(
int offset,
int fs);
74 void on_length_changed(
int length,
int fs);
75 void on_max_scale_reached(
bool v);
76 void on_min_scale_reached(
bool v);
86 Gxw::ValueDisplay *wDelay, *wDelay_ms, *wOffset, *wOffset_ms, *wLength, *wLength_ms;
87 void on_m_delay_changed();
88 void on_ms_delay_changed();
89 void on_m_offset_changed();
90 void on_ms_offset_changed();
91 void on_m_length_changed();
92 void on_ms_length_changed();
95 Glib::ustring on_delay_delta_format_value(
double v);
97 Gtk::Button *wHome, *wJump_zoom_mark, *wIncr, *wDecr;
99 void on_jump_zoom_mark();
103 Gtk::Button *wReset, *wOpen;
104 void on_reset_clicked();
107 Gtk::Button *wOk, *wApply, *wCancel;
108 void on_apply_button_clicked();
109 void on_cancel_button_clicked();
110 void on_ok_button_clicked();
112 Gtk::ToggleButton *wGain_correction;
113 void on_gain_button_toggled();
115 Gtk::Label *wSamples, *wSampleRate, *wFormat, *wChan, *wFilename;
116 Gtk::Widget *wChannelbox;
118 void on_help_clicked();
121 void on_preset_popup_clicked();
122 void reload_impresp_list();
123 void on_enumerate(
const std::string& path,
const std::vector<gx_system::FileName>& l);
124 bool on_key_press_event(GdkEventKey *event);
129 Glib::RefPtr<Gtk::AccelGroup> accels,
int nchan);
132 class ModelColumns :
public Gtk::TreeModel::ColumnRecord {
134 ModelColumns() { add(displayname); add(filename); }
135 Gtk::TreeModelColumn<Glib::ustring> displayname;
136 Gtk::TreeModelColumn<std::string> filename;
138 Gtk::ComboBox *wcombo;
139 ModelColumns columns;
140 Glib::RefPtr<Gtk::TreeStore> model;
141 std::string current_combo_dir;
142 void on_combo_changed();
143 void on_dircombo_changed();
144 Gtk::ComboBox *dircombo;
149 Glib::RefPtr<Gtk::AccelGroup> accels,
int nchan);
154 #endif // SRC_HEADERS_GX_JCONV_SETTINGS_H_
static IRWindow * create(const std::string &unit_id, Glib::RefPtr< Gdk::Pixbuf > icon, gx_engine::GxMachineBase &machine, Glib::RefPtr< Gtk::AccelGroup > accels, int nchan)