62 : Gio::SimpleAction(name, Glib::Variant<bool>::
create(state)) {}
64 static Glib::RefPtr<ToggleAction>
create(
const Glib::ustring& name,
bool state=
false) {
65 return Glib::RefPtr<ToggleAction>(
new ToggleAction(name, state)); }
66 Glib::SignalProxyProperty
signal_toggled() {
return property_state().signal_changed(); }
67 bool get_active()
const {
bool v; get_state(v);
return v; }
75 static Glib::RefPtr<RadioAction>
create(
const Glib::ustring& name) {
76 return Glib::RefPtr<RadioAction>(
new RadioAction(name)); }
91 const Glib::ustring& name,
bool is_active=
false);
94 static Glib::RefPtr<UiToggleAction>
create(
96 const Glib::ustring& name,
bool is_active=
false) {
97 return Glib::RefPtr<UiToggleAction>(
111 typedef std::function<bool(
const Glib::ustring&, Glib::RefPtr<Gio::Menu>&,
int,
int)>
search_func;
128 Glib::RefPtr<Gio::SimpleAction>
add_action(
const Glib::ustring& action);
129 Glib::RefPtr<Gio::SimpleAction>
add_action(
const Glib::ustring& action, sigc::slot<
void()> slot);
134 const Glib::ustring& name,
bool is_active=
false);
136 Glib::RefPtr<Gio::Action> action,
137 const Glib::ustring& accelerator,
138 Glib::VariantBase& target);
140 const Glib::ustring& accelerator);
155 sigc::slot<void, const Glib::ustring&, const Glib::ustring&>
display;
164 sigc::slot<void, const Glib::ustring&, const Glib::ustring&> display_)
184 Glib::RefPtr<gx_gui::GxBuilder>
bld;
218 GtkAccelGroup *accel_group, GObject *acceleratable,
219 guint keyval, GdkModifierType modifier,
Liveplay& self);
221 GtkAccelGroup *accel_group, GObject *acceleratable,
222 guint keyval, GdkModifierType modifier,
Liveplay& self);
224 GtkAccelGroup *accel_group, GObject *acceleratable,
225 guint keyval, GdkModifierType modifier,
Liveplay& self);
227 GtkAccelGroup *accel_group, GObject *acceleratable,
228 guint keyval, GdkModifierType modifier,
Liveplay& self);
230 GtkAccelGroup *accel_group, GObject *acceleratable,
231 guint keyval, GdkModifierType modifier,
Liveplay& self);
233 void display(
const Glib::ustring& bank,
const Glib::ustring& preset);
238 Glib::RefPtr<Gio::SimpleActionGroup>& group);
256 bool icon_draw(
const Cairo::RefPtr<Cairo::Context> &cr);
258 bool window_draw(
const Cairo::RefPtr<Cairo::Context> &cr, Gtk::OffscreenWindow& w);
296 static Gtk::Widget *
make_bar(
int left=4,
int right=4,
bool sens=
false);
297 Gtk::Widget *
wrap_bar(
int left=4,
int right=4,
bool sens=
false);
306 void on_my_drag_data_get(
const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection,
int info,
int timestamp);
320 const char *
get_id()
const;
368 using Gtk::VBox::add;
371 bool check_targets(
const std::vector<std::string>& tgts1,
const std::vector<std::string>& tgts2);
372 virtual bool on_drag_motion(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y, guint timestamp);
373 virtual void on_drag_leave(
const Glib::RefPtr<Gdk::DragContext>& context, guint timestamp);
374 virtual void on_drag_data_received(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y,
const Gtk::SelectionData& data, guint info, guint timestamp);
384 gtk_container_get_children(GTK_CONTAINER(gobj())),
385 Glib::OWNERSHIP_SHALLOW);
389 gtk_container_get_children(
const_cast<GtkContainer*
>(GTK_CONTAINER(gobj()))),
390 Glib::OWNERSHIP_SHALLOW);
398 const std::vector<std::string>& targets_,
399 const std::vector<std::string>& othertargets_);
402 inline void reorder(
const std::string& name,
const std::string& before);
455 return (cat && *cat) ? cat :
N_(
"External");
462 if (!name || !*name) {
475 void on_ti_drag_data_get(
const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection,
int info,
int timestamp);
506 std::map<Glib::ustring, Gtk::ToolItemGroup*>
groupmap;
527 typedef std::map<std::string, PluginUI*>::iterator
iterator;
533 void add_bare(
const char *
id, Gtk::Container *box);
537 using std::map<std::string,
PluginUI*>::begin;
538 using std::map<std::string,
PluginUI*>::end;
553 void on_tp_drag_data_received(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y,
const Gtk::SelectionData& data,
int info,
int timestamp);
559 bool mini=
false,
int pos=-1,
bool animate=
false, Gtk::Widget *bare=0);
562 void add_plugin(std::vector<PluginUI*>& p,
const char *
id,
const Glib::ustring& tooltip_=
"");
651 void freeze(Gtk::Window *w,
int width,
int height);
699 const std::string
id;
712 Glib::RefPtr<Gio::SimpleAction>
quit;
734 Glib::RefPtr<UiBoolToggleAction>
tuner;
744 Glib::RefPtr<RadioAction>
skin;
978 Gtk::Window *splash,
const Glib::ustring& title);
bool icon_draw(const Cairo::RefPtr< Cairo::Context > &cr)
Glib::RefPtr< Gdk::Pixbuf > drag_icon_pixbuf
bool window_draw(const Cairo::RefPtr< Cairo::Context > &cr, Gtk::OffscreenWindow &w)
DragIcon(PluginUI &plugin, Glib::RefPtr< Gdk::DragContext > context, gx_system::CmdlineOptions &options, int xoff=0)
void create_drag_icon_pixbuf(const PluginUI &plugin, Glib::RefPtr< Gdk::Visual > rgba, gx_system::CmdlineOptions &options)
void freeze_until_width_update(Gtk::Window *w, int width)
void freeze_and_size_request(Gtk::Window *w, int width, int height)
void freeze(Gtk::Window *w, int width, int height)
bool check_thaw(int width, int height)
void set_slot(sigc::slot< void > w)
Glib::RefPtr< Gio::SimpleAction > quit
Glib::RefPtr< Gio::SimpleAction > online_preset_bank
Glib::RefPtr< ToggleAction > live_play
Glib::RefPtr< UiBoolToggleAction > midi_in_presets
Glib::RefPtr< Gio::SimpleAction > new_bank
Glib::RefPtr< ToggleAction > jackserverconnection
Glib::RefPtr< Gio::SimpleAction > compress
Glib::RefPtr< ToggleAction > midicontroller
Glib::RefPtr< RadioAction > osc_buffer_size
Glib::RefPtr< ToggleAction > tooltips
Glib::RefPtr< RadioAction > skin
Glib::RefPtr< ToggleAction > show_plugin_bar
Glib::RefPtr< ToggleAction > engine_mute
Glib::RefPtr< UiBoolToggleAction > tuner
Glib::RefPtr< Gio::SimpleAction > jackstartup
Glib::RefPtr< Gio::SimpleAction > loadladspa
Glib::RefPtr< ToggleAction > show_values
Glib::RefPtr< ToggleAction > midiout
Glib::RefPtr< RadioAction > preset_list_menu
Glib::RefPtr< ToggleAction > engine_bypass
Glib::RefPtr< ToggleAction > animations
Glib::RefPtr< ToggleAction > jackports
Glib::RefPtr< ToggleAction > show_rack
sigc::connection engine_bypass_conn
Glib::RefPtr< ToggleAction > rack_config
Glib::RefPtr< ToggleAction > organize
Glib::RefPtr< RadioAction > latency
Glib::RefPtr< ToggleAction > meterbridge
sigc::connection engine_mute_conn
Glib::RefPtr< ToggleAction > presets
Glib::RefPtr< Gio::SimpleAction > save_changes
Glib::RefPtr< UiBoolToggleAction > tunermidiout
Glib::RefPtr< UiBoolToggleAction > tunermove
Glib::RefPtr< ToggleAction > rackh
Glib::RefPtr< Gio::SimpleAction > expand
Glib::RefPtr< UiBoolToggleAction > livetuner
Glib::RefPtr< ToggleAction > loggingbox
void set_window(Gtk::Window *window_)
gx_system::CmdlineOptions * options
Glib::RefPtr< Gtk::StyleContext > style_context
bool set_new_skin(const Glib::ustring &skin_name)
void init(gx_system::CmdlineOptions *options_)
void update_show_values()
Glib::RefPtr< Gtk::CssProvider > css_show_values
Glib::RefPtr< Gtk::CssProvider > css_provider
static char bank_idx_to_char(int idx, int bank_size)
static int next_idx(int idx=-1)
KeySwitcher(gx_engine::GxMachineBase &machine_, sigc::slot< void, const Glib::ustring &, const Glib::ustring & > display_)
bool process_bank_key(int key)
void display_empty(const Glib::ustring &bank, const Glib::ustring &preset)
sigc::slot< void, const Glib::ustring &, const Glib::ustring & > display
bool display_selected_bank()
sigc::connection key_timeout
Glib::ustring last_bank_key
static int key_offset_to_bank_idx(int offset, int bank_size)
bool process_preset_key(int key)
gx_engine::GxMachineBase & machine
static char idx_to_char(int idx)
static int key_offset_to_idx(int offset)
static bool on_keyboard_preset_select(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier, Liveplay &self)
static bool on_keyboard_mode_switch(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier, Liveplay &self)
Liveplay(const gx_system::CmdlineOptions &options, gx_engine::GxMachineBase &machine, const std::string &fname, const GxActions &actions, Glib::RefPtr< Gio::SimpleActionGroup > &group)
static bool on_keyboard_toggle_bypass(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier, Liveplay &self)
Gxw::RackTuner & get_tuner()
Gtk::Label * liveplay_preset
void on_selection_done(bool v)
Gxw::HSlider * background_slider
bool window_draw(const Cairo::RefPtr< Cairo::Context > &cr)
bool pointer_motion(GdkEventMotion *event)
const GxActions & actions
Gtk::ToggleButton * liveplay_exit
Gtk::Image * bypass_image
static bool on_keyboard_arrows(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier, Liveplay &self)
Gtk::Grid * midictrl_table
void on_background_changed()
Gxw::HSlider * brightness_slider
static bool on_keyboard_toggle_mute(GtkAccelGroup *accel_group, GObject *acceleratable, guint keyval, GdkModifierType modifier, Liveplay &self)
Gtk::Label * liveplay_bank
gx_engine::GxMachineBase & machine
Gtk::Widget * liveplay_canvas
bool on_delete(GdkEventAny *ev)
void on_live_play(Glib::RefPtr< ToggleAction > act)
Glib::RefPtr< gx_gui::GxBuilder > bld
void on_brightness_changed()
void on_selection_changed()
void set_display_state(TunerSwitcher::SwitcherState s)
Glib::RefPtr< Gtk::Adjustment > background_adj
Gtk::Box * brightness_box
sigc::connection mouse_hide_conn
void display(const Glib::ustring &bank, const Glib::ustring &preset)
void display_tuner(bool v)
sigc::connection midi_conn
void on_engine_state_change(gx_engine::GxEngineState state)
bool transparent_draw(const Cairo::RefPtr< Cairo::Context > &cr)
Glib::RefPtr< Gtk::Adjustment > brightness_adj
Gtk::Scrollbar * monorackscroller
Gtk::ToggleButton * liveplay_button
Gxw::RackTuner * racktuner
Gxw::PaintBox * effects_frame_paintbox
Gtk::Button * expand_button
Gtk::ToggleButton * show_rack_button
Gxw::PaintBox * monoampcontainer
Gtk::Button * ampdetail_expand
Gtk::Image * status_image
Gxw::ValueDisplay * tuner_reference_pitch
Gtk::Widget * ampdetail_mini
Gtk::Button * compress_button
Gtk::ToggleButton * effects_button
Gxw::PaintBox * rackcontainer
Gtk::Box * tuner_box_no_rack
Gtk::Box * stereorackcontainerV
Gtk::ToolPalette * effects_toolpalette
Gxw::PaintBox * amp_background
Gtk::Button * ampdetail_compress
Gxw::FastMeter * fastmeter[2]
Gtk::ToggleButton * tuner_button
Gtk::ToggleButton * presets_button
Gxw::Selector * tuner_tuning
Gxw::Selector * tuner_mode
Gxw::Selector * tuner_temperament
Gtk::Box * preset_box_no_rack
Gtk::ScrolledWindow * stereorackbox
Gtk::ScrolledWindow * vrack_scrolledbox
Gtk::Box * stereorackcontainerH
Gtk::ToggleButton * rack_order_h_button
MainWindowBuilder(const gx_system::CmdlineOptions &options, gx_engine::GxMachineBase &machine)
Gtk::Image * insert_image
Gxw::Switch * tuner_on_off
Gtk::ScrolledWindow * preset_scrolledbox
Gtk::Entry * preset_status
void load_widget_pointers()
Gtk::ToggleButton * config_mode_button
Gtk::Image * logstate_image
Gtk::Widget * ampdetail_normal
void on_select_midi_channel()
bool on_my_enter_in(GdkEventCrossing *focus)
bool refresh_meter_level(float falloff)
void maybe_shrink_horizontally(bool preset_no_rack=false)
bool on_visibility_notify(GdkEventVisibility *ev)
bool on_my_leave_out(GdkEventCrossing *focus)
gx_system::CmdlineOptions & options
Glib::RefPtr< Gtk::SizeGroup > left_column
void on_ladspa_finished(bool reload, bool quit)
void create_default_scratch_preset()
PluginDict::iterator plugins_begin()
void on_select_jack_control()
void set_tuner_ref(Gxw::RackTuner &tuner)
void on_insert_jack_changed(bool s)
void show_selected_preset()
bool on_jackserverconnection(GdkEventButton *ev)
gx_system::CmdlineOptions & get_options()
bool on_log_activated(GdkEventButton *ev)
gx_portmap::PortMapWindow * portmap_window
void delete_select_midi_channel()
GxUiRadioMenu amp_radio_menu
void set_tuner_tet(Gxw::RackTuner &tuner)
TextLoggingBox fLoggingWindow
int gx_wait_latency_warn()
bool on_jackserverconnection_scroll(GdkEventScroll *ev)
void set_tuning(Gxw::RackTuner &tuner)
gx_gui::StackBoxBuilder boxbuilder
Glib::RefPtr< Gdk::Pixbuf > pixbuf_off
void on_miditable_toggle()
Glib::RefPtr< Gdk::Pixbuf > pixbuf_jack_disconnected
bool connect_jack(bool v, Gtk::Window *splash=0)
void amp_controls_visible(Gtk::Range *rr)
void display_preset_msg(const Glib::ustring &bank, const Glib::ustring &preset)
void on_ampdetail_switch(bool compress, bool setparam)
void add_preset_key_accelerators()
PluginDict::iterator plugins_end()
gx_engine::GxMachineBase & machine
void rebuild_preset_menu()
void user_disable_latency_warn(Gtk::CheckButton *disable_warn)
MainWindow(gx_engine::GxMachineBase &machine, gx_system::CmdlineOptions &options, NsmSignals &nsmsig, GxTheme &theme, Gtk::Window *splash, const Glib::ustring &title)
void set_next_preset_controller()
void systray_menu(guint button, guint32 activate_time)
bool on_scroll_toggle_insert(GdkEventScroll *ev)
void setup_tuner_temperament(Gxw::RackTuner &tuner)
void on_show_plugin_bar()
bool on_meter_button_release(GdkEventButton *ev)
Glib::RefPtr< Gdk::Pixbuf > gx_head_icon
bool on_window_state_changed(GdkEventWindowState *event)
PluginUI * get_plugin(const std::string &name)
ladspa::PluginDisplay * ladspalist_window
Glib::RefPtr< Gdk::Pixbuf > pixbuf_log_red
Glib::RefPtr< Gdk::Pixbuf > pixbuf_jack_connected
bool on_log_scrolled(GdkEventScroll *ev)
bool survive_jack_shutdown()
void set_rackbox_expansion()
void on_engine_state_change(gx_engine::GxEngineState state)
void on_rack_configuration()
Glib::RefPtr< Gdk::Pixbuf > pixbuf_on
void change_latency(const Glib::VariantBase &value)
void on_select_preset(const Glib::VariantBase &value)
void maybe_change_resizable(void)
void hide_extended_settings()
bool on_scroll_toggle(GdkEventScroll *ev)
bool on_key_press_event(GdkEventKey *event)
Glib::RefPtr< Gtk::StatusIcon > status_icon
PresetWindow * preset_window
gx_engine::GxMachineBase & get_machine()
void set_switcher_controller()
void jack_session_event()
Glib::RefPtr< Gdk::Pixbuf > pixbuf_log_yellow
void change_expand(Gtk::Widget &w, bool value)
bool delete_ladspalist_window()
void on_msg_level_changed()
Glib::RefPtr< Gdk::Pixbuf > pixbuf_bypass
void on_portmap_activate()
void on_portmap_response(int)
void set_previus_preset_controller()
void on_jack_client_changed()
int rackbox_stacked_vertical() const
void set_bypass_controller()
gx_gui::SelectJackControlPgm * select_jack_control
Glib::RefPtr< Gdk::Pixbuf > pixbuf_insert_off
Glib::RefPtr< Gdk::Pixbuf > pixbuf_log_grey
bool on_toggle_mute(GdkEventButton *ev)
void on_livetuner_toggled()
void clear_box(Gtk::Container &box)
void jack_session_event_ins()
void move_widget(Gtk::Widget &w, Gtk::Box &b1, Gtk::Box &b2)
Glib::ustring preset_list_menu_bank
void setup_tuner(Gxw::RackTuner &tuner)
void change_skin(const Glib::VariantBase &value)
bool on_toggle_insert(GdkEventButton *ev)
Glib::RefPtr< Gdk::Pixbuf > pixbuf_insert_on
SelectMidiChannel * select_midi_channel
void change_osc_buffer(const Glib::VariantBase &value)
void on_configure_event(GdkEventConfigure *ev)
void delete_select_jack_control()
static Glib::RefPtr< Gtk::SizeGroup > szg_label
Gtk::Button * preset_button
bool on_my_leave_out(GdkEventCrossing *focus)
sigc::connection evbox_button
Gtk::Widget * mb_delete_button
Gtk::Button * mb_expand_button
void pack(Gtk::Widget *w)
Gtk::Widget * make_delete_button(RackBox &rb)
void set_config_mode(bool mode, PluginUI &plugin)
MiniRackBox(RackBox &rb, gx_system::CmdlineOptions &options)
Gxw::Switch on_off_switch
bool on_my_enter_in(GdkEventCrossing *focus)
sigc::signal< void > trigger_nsm_gui_is_shown
sigc::signal< void > trigger_nsm_hide_gui
sigc::signal< void > trigger_nsm_show_gui
sigc::signal< void > & signal_trigger_nsm_gui_is_hidden()
sigc::signal< void > & signal_trigger_nsm_save_gui()
sigc::signal< void > trigger_nsm_save_gui
sigc::signal< void > & signal_trigger_nsm_gui_is_shown()
sigc::signal< void > & signal_trigger_nsm_hide_gui()
sigc::signal< void > trigger_nsm_gui_is_hidden
sigc::signal< void > & signal_trigger_nsm_show_gui()
Gtk::ToolItemGroup * add_plugin_category(const char *cat, bool collapse=true)
void check_order(PluginType tp, bool animate)
void compress(bool state)
void reorder(RackContainer *container, const std::string &name, const std::string &before)
PluginUI * activate(const string &id, const string &before, bool animate)
void register_plugin(PluginUI *pui)
PluginUI * deactivate(const string &id, bool animate)
void unit_order_changed(bool stereo)
Glib::ustring add_plugin_menu_entry(PluginUI *pui)
gx_system::CmdlineOptions & get_options()
void set_config_mode(bool state)
RackContainer stereorackcontainer
std::map< std::string, PluginUI * >::iterator iterator
std::vector< std::string > stereotargets
void plugin_preset_popup(const PluginDef *pdef)
gx_engine::GxMachineBase & machine
void on_tp_drag_data_received(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, const Gtk::SelectionData &data, int info, int timestamp)
Glib::ustring category_id(const std::string &group, bool stereo)
void add_plugin(std::vector< PluginUI * > &p, const char *id, const Glib::ustring &tooltip_="")
void plugin_preset_popup(const PluginDef *pdef, const Glib::ustring &name)
void on_plugin_changed(gx_engine::Plugin *pl, gx_engine::PluginChange::pc c)
std::vector< std::string > monotargets
PluginDict(gx_engine::GxMachineBase &machine, gx_system::CmdlineOptions &options, Gtk::ToolPalette &toolpalette, gx_gui::StackBoxBuilder &boxbuilder, UIManager &uimanager)
RackContainer & get_stereorackcontainer()
gx_gui::StackBoxBuilder & boxbuilder
std::map< Glib::ustring, Gtk::ToolItemGroup * > groupmap
void remove_plugin_menu_entry(PluginUI *pui)
RackBox * add_rackbox_internal(PluginUI &plugin, Gtk::Widget *mainwidget, Gtk::Widget *miniwidget, bool mini=false, int pos=-1, bool animate=false, Gtk::Widget *bare=0)
void add_bare(const char *id, Gtk::Container *box)
Gtk::ToolPalette & toolpalette
gx_engine::GxMachineBase & get_machine()
RackContainer monorackcontainer
RackContainer & get_monorackcontainer()
PluginUI * operator[](const std::string &s)
RackBox * add_rackbox(PluginUI &pl, bool mini=false, int pos=-1, bool animate=false)
double stop_at(RackContainer *container, double off, double step_size, double page_size)
bool get_plugins_hidden()
void pluginlist_append(std::vector< PluginUI * > &p)
gx_system::CmdlineOptions & options
const char * get_name() const
sigc::signal< void(bool)> output_widget_state
state of output_widgets_active changed
friend bool plugins_by_name_less(PluginUI *a, PluginUI *b)
void deactivate(bool animate)
void activate(bool animate, const string &before)
virtual void on_plugin_preset_popup()
void remove(bool animate)
PluginType get_type() const
bool on_my_leave_out(GdkEventCrossing *focus)
Glib::RefPtr< ToggleAction > action
void on_ti_drag_begin(const Glib::RefPtr< Gdk::DragContext > &context)
void set_update_state(bool state)
void on_ti_drag_data_delete(const Glib::RefPtr< Gdk::DragContext > &context)
PluginUI(PluginDict &plugin_dict, const char *id_, const Glib::ustring &tooltip_="")
void decativate(bool animate)
bool hidden
Plugin not visible (but might be in rack, e.g. "Rack" is off)
const char * get_id() const
bool on_my_enter_in(GdkEventCrossing *focus)
void on_ti_drag_data_get(const Glib::RefPtr< Gdk::DragContext > &context, Gtk::SelectionData &selection, int info, int timestamp)
Gtk::ToolItemGroup * group
static bool is_registered(gx_engine::GxMachineBase &m, const char *name)
void compress(bool state)
Glib::RefPtr< ToggleAction > get_action()
bool active
Plugin is in rack (effect bar icon not visible)
bool on_rack_handle_press(GdkEventButton *ev)
bool output_widgets_active
send data updates for output variables
gx_engine::Plugin * plugin
void set_config_mode(bool state)
sigc::signal< void(bool)> * get_output_widget_state()
bool on_ti_button_press(GdkEventButton *ev)
void on_ti_drag_end(const Glib::RefPtr< Gdk::DragContext > &context)
const char * get_category()
RackBox * rackbox
rack widget or nullptr
const char * get_shortname() const
void set_action(Glib::RefPtr< ToggleAction > &act)
void add_toolitem(Gtk::ToolItemGroup *gw)
void activate(bool animate)
Glib::ustring get_displayname(bool useshort) const
void set_position(int pos, int post_pre)
void on_my_drag_begin(const Glib::RefPtr< Gdk::DragContext > &context)
void set_config_mode(bool mode)
bool on_my_drag_failed(const Glib::RefPtr< Gdk::DragContext > &context, Gtk::DragResult result)
void on_my_drag_end(const Glib::RefPtr< Gdk::DragContext > &context)
void display(bool v, bool animate)
Gtk::Widget * wrap_bar(int left=4, int right=4, bool sens=false)
static void set_paintbox(Gxw::PaintBox &pb, PluginType tp)
void vis_switch(Gtk::Widget &a, Gtk::Widget &b)
RackBox(PluginUI &plugin, PluginDict &plugin_dict, Gtk::Widget *bare=0)
static Gtk::Widget * make_label(const PluginUI &plugin, gx_system::CmdlineOptions &options, bool useshort=true)
static Gtk::Widget * create_icon_widget(const PluginUI &plugin, gx_system::CmdlineOptions &options)
Gtk::Button * make_expand_button(bool expand)
bool on_my_enter_in(GdkEventCrossing *focus)
bool on_my_leave_out(GdkEventCrossing *focus)
static Gtk::Widget * create_drag_widget(const PluginUI &plugin, gx_system::CmdlineOptions &options)
RackContainer * get_parent()
void pack(Gtk::Widget *mainbox, Gtk::Widget *minibox)
Gtk::Button * make_preset_button()
static void set_paintbox_unit(Gxw::PaintBox &pb, const PluginUI &plugin)
Gxw::Switch on_off_switch
sigc::connection anim_tag
const char * get_id() const
static Gtk::Widget * make_bar(int left=4, int right=4, bool sens=false)
static void set_paintbox_unit_shrink(Gxw::PaintBox &pb, PluginType tp)
void set_visibility(bool v)
Gtk::HBox * make_full_box(gx_system::CmdlineOptions &options)
bool compare_position(int pos, int post_pre)
void on_my_drag_data_get(const Glib::RefPtr< Gdk::DragContext > &context, Gtk::SelectionData &selection, int info, int timestamp)
void ensure_visible(RackBox &child)
virtual void on_drag_leave(const Glib::RefPtr< Gdk::DragContext > &context, guint timestamp)
bool scrollother_timeout()
Glib::ListHandle< const RackBox * > rackbox_const_list
int count
count of visible children
void change_child_count(int n)
double stop_at_bottom(double off, double step_size, double pagesize)
rackbox_const_list get_children() const
void add(RackBox &r, int pos=-1)
std::vector< std::string > targets
double stop_at_top(double off, double step_size)
bool drag_highlight_draw(const Cairo::RefPtr< Cairo::Context > &, int y0)
Glib::ListHandle< RackBox * > rackbox_list
void set_list_targets(const std::vector< Gtk::TargetEntry > &listTargets, const std::vector< std::string > &targets_, const std::vector< std::string > &othertargets_)
std::vector< std::string > othertargets
RackContainer(PluginDict &plugin_dict)
sigc::connection autoscroll_connection
void set_child_count(int n)
bool check_targets(const std::vector< std::string > &tgts1, const std::vector< std::string > &tgts2)
virtual bool on_drag_motion(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint timestamp)
sigc::connection highlight_connection
virtual void on_add(Widget *ch)
virtual void on_drag_data_received(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, const Gtk::SelectionData &data, guint info, guint timestamp)
rackbox_list get_children()
void reorder(const std::string &name, const std::string &before)
void find_index(int x, int y, string *before, int *ypos)
bool get_current_value() const
static Glib::RefPtr< RadioAction > create(const Glib::ustring &name)
void set_current_value(int v)
RadioAction(const Glib::ustring &name)
static SelectMidiChannel * create(gx_system::CmdlineOptions &opt, gx_engine::GxMachineBase &machine)
bool on_delete_event(GdkEventAny *event)
bool on_key_press_event(GdkEventKey *event)
SelectMidiChannel(BaseObjectType *cobject, Glib::RefPtr< gx_gui::GxBuilder > bld, gx_engine::GxMachineBase &m)
gx_engine::GxMachineBase & machine
sigc::signal< void > & signal_close()
Gtk::ComboBox * channelcombo
static SelectMidiChannel * create_from_builder(BaseObjectType *cobject, Glib::RefPtr< gx_gui::GxBuilder > bld, gx_engine::GxMachineBase &m)
sigc::signal< void > close
sigc::signal< void > & signal_msg_level_changed()
int get_unseen_msg_level()
Gtk::ScrolledWindow scrollbox
int highest_unseen_msg_level
sigc::signal< void > msg_level_changed
Gtk::HButtonBox buttonbox
void show_msg(string msgbuf, GxLogger::MsgType msgtype, bool plugged)
Glib::RefPtr< Gtk::TextTag > tags[GxLogger::kMessageTypeCount]
virtual bool on_key_press_event(GdkEventKey *event)
static tab_table tagdefs[GxLogger::kMessageTypeCount]
ToggleAction(const Glib::ustring &name, bool state)
Glib::SignalProxyProperty signal_toggled()
static Glib::RefPtr< ToggleAction > create(const Glib::ustring &name, bool state=false)
bool remove_item(const Glib::ustring &action)
void insert_action_group(Glib::RefPtr< Gio::SimpleActionGroup > &group)
bool foreach_menu(search_func func)
Glib::RefPtr< Gio::Menu > menu
UIManager(const std::string &file, Gtk::MenuBar *bar)
Glib::RefPtr< ToggleAction > add_toggle_action(const Glib::ustring &action, bool state=false)
void set_accelerators_from_menu()
void add_accelerator(Glib::RefPtr< Gio::Action > action, Glib::VariantBase &target, const Glib::ustring &accelerator)
static void set_widget_action(Gtk::Widget *w, const Glib::ustring &action)
static void add_accelerator(Glib::RefPtr< Gtk::AccelGroup > &group, Glib::RefPtr< Gio::Action > action, const Glib::ustring &accelerator, Glib::VariantBase &target)
Gtk::MenuItem * find_item(const Glib::ustring &action)
Glib::RefPtr< Gio::Menu > get_linked_menu(const Glib::ustring &action)
Glib::RefPtr< Gio::SimpleAction > add_action(const Glib::ustring &action, sigc::slot< void()> slot)
Glib::RefPtr< UiBoolToggleAction > add_ui_bool_action(gx_engine::GxMachineBase &machine, const std::string &id, const Glib::ustring &name, bool is_active=false)
Glib::RefPtr< Gio::SimpleActionGroup > actiongroup
std::function< bool(const Glib::ustring &, Glib::RefPtr< Gio::Menu > &, int, int)> search_func
Glib::RefPtr< Gtk::AccelGroup > accelgroup
void set_accelerators_from_menu(Glib::RefPtr< Gio::Menu > &menu)
static void set_widget_action(Gtk::Widget *w, const Glib::RefPtr< Gio::Action > &action)
Glib::RefPtr< Gio::SimpleAction > add_action(const Glib::ustring &action)
bool foreach_menu_(Glib::RefPtr< Gio::Menu > &menu, search_func &func, int &startpos)
Glib::RefPtr< Gio::SimpleActionGroup > & get_action_group()
Glib::RefPtr< RadioAction > add_radio_action(const Glib::ustring &action)
Glib::RefPtr< Gtk::AccelGroup > & get_accel_group()
UiToggleAction(gx_engine::GxMachineBase &machine_, const std::string &id, const Glib::ustring &name, bool is_active=false)
gx_engine::GxMachineBase & machine
static Glib::RefPtr< UiToggleAction > create(gx_engine::GxMachineBase &machine, const std::string &id, const Glib::ustring &name, bool is_active=false)
virtual void create_default_scratch_preset()=0
bool get_plug_visible() const
bool plugins_by_name_less(PluginUI *a, PluginUI *b)
UiToggleAction< bool > UiBoolToggleAction
std::vector< PluginPresetEntry > UnitPresetList