33 Gtk::TreeModelColumn<Glib::ustring>
name;
34 Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> >
edit_pb;
35 Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> >
del_pb;
46 Gtk::TreeModelColumn<Glib::ustring>
name;
52 Gtk::TreeModelColumn<Glib::ustring>
name;
53 Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> >
type_pb;
54 Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> >
edit_pb;
55 Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> >
del_pb;
56 Gtk::TreeModelColumn<int>
tp;
62 MyTreeView(BaseObjectType* cobject): Gtk::TreeView(cobject) {}
68 using Gtk::TreeView::on_drag_motion;
132 void target_drag_data_received(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y,
const Gtk::SelectionData& data, guint info, guint timestamp);
137 bool select_func(
const Glib::RefPtr<Gtk::TreeModel>& model,
const Gtk::TreePath& path,
bool path_currently_selected);
138 void set_cell_text(Gtk::Widget *widget, Gtk::CellRenderer *cell,
const Glib::ustring& text,
bool selected);
140 void text_func(Gtk::CellRenderer *cell,
const Gtk::TreeModel::iterator& iter);
141 void on_editing_started(
const Gtk::CellEditable* edit,
const Glib::ustring& path, Glib::RefPtr<Gtk::TreeModel>& model);
144 void start_edit(
const Gtk::TreeModel::Path& pt, Gtk::TreeViewColumn& col, Gtk::CellRenderer& cell);
149 void on_bank_edited(
const Glib::ustring& path,
const Glib::ustring& newtext, Gtk::TreeView* w);
150 bool is_row_separator(
const Glib::RefPtr<Gtk::TreeModel>& model,
const Gtk::TreeModel::iterator& iter);
162 std::vector< std::tuple<std::string,std::string,std::string> >
olp;
166 void on_bank_drag_data_received(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y,
const Gtk::SelectionData& data, guint info, guint timestamp);
167 void on_bank_drag_data_get(
const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection,
int info,
int timestamp);
176 void on_preset_drag_data_get(
const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection,
int info,
int timestamp);
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > del_pb
Gtk::TreeModelColumn< int > tp
Gtk::TreeModelColumn< Glib::ustring > name
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > edit_pb
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > type_pb
static MyTreeView * create_from_builder(BaseObjectType *cobject)
virtual bool on_button_press_event(GdkEventButton *button_event)
sigc::signal< void()> & signal_row_clicked()
like Gtk::TreeSelection::signal_changed, but is also emitted when the selection didn't change
sigc::signal< void()> m_signal_row_clicked
MyTreeView(BaseObjectType *cobject)
Gtk::TreeModelColumn< Glib::ustring > name
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > del_pb
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > edit_pb
PresetStore::PresetModelColumns col
virtual bool row_draggable_vfunc(const TreeModel::Path &path) const
Glib::RefPtr< Gtk::AccelGroup > accelgroup
void set_cell_text(Gtk::Widget *widget, Gtk::CellRenderer *cell, const Glib::ustring &text, bool selected)
void set_row_for_presetfile(Gtk::TreeIter i, gx_system::PresetFileGui *f)
void on_bank_edited(const Glib::ustring &path, const Glib::ustring &newtext, Gtk::TreeView *w)
Glib::RefPtr< Gdk::Pixbuf > pb_del
MyTreeView * presets_target_treeview
Gtk::TreeModel::iterator edit_iter
PresetWindow(Glib::RefPtr< gx_gui::GxBuilder > bld, gx_engine::GxMachineBase &machine, const gx_system::CmdlineOptions &options, GxActions &actions, UIManager &uimanager)
const gx_system::CmdlineOptions & options
void display_paned(bool show_preset, int paned_child_height)
void target_drag_data_received(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, const Gtk::SelectionData &data, guint info, guint timestamp)
void create_preset_menu()
void on_bank_drag_data_received(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, const Gtk::SelectionData &data, guint info, guint timestamp)
void show_online_preset()
void load_widget_pointers(Glib::RefPtr< gx_gui::GxBuilder > bld)
Gtk::Button * save_preset
Gtk::Label * preset_title
sigc::connection on_map_conn
bool on_target_drag_motion(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint timestamp)
Gtk::TreeViewColumn * preset_column_spacer
void on_preset_row_activated(const Gtk::TreePath &path, Gtk::TreeViewColumn *column)
Glib::ustring get_current_bank()
gx_engine::GxMachineBase & machine
void on_edit_canceled(Gtk::TreeViewColumn *col)
void reset_edit(Gtk::TreeViewColumn &col)
Gtk::TreeViewColumn * bank_column_spacer
Glib::RefPtr< PresetStore > pstore
Glib::ustring resolve_hostname()
Gtk::TreeViewColumn * preset_column_delete
bool run_message_dialog(Gtk::Widget &w, const Glib::ustring &msg)
Gtk::ScrolledWindow * presets_target_scrolledbox
void highlight_current_bank(Gtk::CellRenderer *cell, const Gtk::TreeModel::iterator &iter)
Glib::ustring get_combo_selection()
bool select_func(const Glib::RefPtr< Gtk::TreeModel > &model, const Gtk::TreePath &path, bool path_currently_selected)
bool is_row_separator(const Glib::RefPtr< Gtk::TreeModel > &model, const Gtk::TreeModel::iterator &iter)
void text_func(Gtk::CellRenderer *cell, const Gtk::TreeModel::iterator &iter)
void popup_pos(int &x, int &y, bool &push_in)
bool on_bank_drag_motion(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint timestamp)
bool on_bank_query_tooltip(int x, int y, bool kb_tooltip, Glib::RefPtr< Gtk::Tooltip > tooltip)
bool bank_drag_moveable(Gtk::TreePath pt)
Gtk::ScrolledWindow * preset_scrolledbox
Gtk::CellRendererText * bank_cellrenderer
Gtk::TreeViewColumn * preset_column_preset
void on_presetlist_changed()
void start_edit(const Gtk::TreeModel::Path &pt, Gtk::TreeViewColumn &col, Gtk::CellRenderer &cell)
BankModelColumns bank_col
Gtk::Button * new_preset_bank
void on_bank_reordered(const Gtk::TreeModel::Path &path)
std::vector< std::tuple< std::string, std::string, std::string > > olp
Gtk::Button * online_preset
Gtk::TreeViewColumn * bank_column_flags
bool animate_preset_show()
void on_preset_reordered(const Gtk::TreeModel::Path &path)
Gtk::ToggleButton * organize_presets
bool download_file(Glib::ustring from_uri, Glib::ustring to_path)
void on_bank_drag_data_get(const Glib::RefPtr< Gdk::DragContext > &context, Gtk::SelectionData &selection, int info, int timestamp)
void downloadPreset(Gtk::Menu *presetMenu, std::string uri)
Gtk::TreeViewColumn * bank_column_edit
bool on_preset_drag_motion(const Glib::RefPtr< Gdk::DragContext > &context, int x, int y, guint timestamp)
Gtk::TreeViewColumn * bank_column_delete
Gtk::TreeViewColumn * preset_column_edit
Glib::RefPtr< Gdk::Pixbuf > pb_versiondiff
void on_preset_combo_changed()
Glib::RefPtr< Gdk::Pixbuf > pb_scratch
bool on_preset_button_release(GdkEventButton *ev)
TargetModelColumns target_col
Gtk::TreeIter get_current_bank_iter()
bool animate_preset_hide()
void on_preset_drag_data_get(const Glib::RefPtr< Gdk::DragContext > &context, Gtk::SelectionData &selection, int info, int timestamp)
Gtk::CellRendererText * preset_cellrenderer
bool on_bank_button_release(GdkEventButton *ev)
bool bank_find_drop_position(int x, int y, Gtk::TreeModel::Path &pt, Gtk::TreeViewDropPosition &dst)
Gtk::TreeViewColumn * bank_column_bank
Glib::RefPtr< Gdk::Pixbuf > pb_factory
Glib::RefPtr< Gdk::Pixbuf > pb_edit
Glib::RefPtr< Gdk::Pixbuf > pb_readonly
MyTreeView * bank_treeview
MyTreeView * preset_treeview
void on_editing_started(const Gtk::CellEditable *edit, const Glib::ustring &path, Glib::RefPtr< Gtk::TreeModel > &model)
void on_preset_select(bool v, bool animated, int preset_window_height)
void on_selection_changed()
Gtk::ComboBox * banks_combobox
void on_preset_edited(const Glib::ustring &path, const Glib::ustring &newtext)
Gtk::TreeModelColumn< Glib::ustring > name
const std::string & get_preset_dir() const