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) {}
66 using Gtk::TreeView::on_drag_motion;
82 Gtk::TreeModel::iterator edit_iter;
83 Glib::RefPtr<Gdk::Pixbuf> pb_edit;
84 Glib::RefPtr<Gdk::Pixbuf> pb_del;
85 Glib::RefPtr<Gdk::Pixbuf> pb_scratch;
86 Glib::RefPtr<Gdk::Pixbuf> pb_versiondiff;
87 Glib::RefPtr<Gdk::Pixbuf> pb_readonly;
88 Glib::RefPtr<Gdk::Pixbuf> pb_factory;
89 Glib::RefPtr<PresetStore> pstore;
92 sigc::connection bank_row_del_conn;
93 sigc::connection preset_row_del_conn;
98 bool in_current_preset;
99 sigc::connection on_map_conn;
102 Gtk::Button *close_preset;
103 Gtk::Button *save_preset;
104 Gtk::Button *new_preset_bank;
105 Gtk::ToggleButton *organize_presets;
106 Gtk::Button *online_preset;
108 Gtk::CellRendererText *bank_cellrenderer;
110 Gtk::CellRendererText *preset_cellrenderer;
111 Gtk::ComboBox *banks_combobox;
113 Gtk::Label *preset_title;
114 Gtk::ScrolledWindow *presets_target_scrolledbox;
115 Gtk::TreeViewColumn *bank_column_edit;
116 Gtk::TreeViewColumn *bank_column_delete;
117 Gtk::TreeViewColumn *preset_column_edit;
118 Gtk::TreeViewColumn *preset_column_delete;
119 Gtk::VPaned *main_vpaned;
120 Gtk::ScrolledWindow *preset_scrolledbox;
121 GtkSizeGroup *left_column;
123 void load_widget_pointers(Glib::RefPtr<gx_gui::GxBuilder> bld);
124 void target_drag_data_received(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y,
const Gtk::SelectionData& data, guint info, guint timestamp);
125 bool on_target_drag_motion(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y, guint timestamp);
126 Glib::ustring get_combo_selection();
128 void on_preset_combo_changed();
129 void reload_target();
130 bool select_func(
const Glib::RefPtr<Gtk::TreeModel>& model,
const Gtk::TreePath& path,
bool path_currently_selected);
131 void highlight_current_bank(Gtk::CellRenderer *cell,
const Gtk::TreeModel::iterator& iter);
132 void text_func(Gtk::CellRenderer *cell,
const Gtk::TreeModel::iterator& iter);
133 void on_editing_started(
const Gtk::CellEditable* edit,
const Glib::ustring& path, Glib::RefPtr<Gtk::TreeModel>& model);
134 bool edit_cell(Gtk::TreeModel::Path pt, Gtk::TreeViewColumn&
col, Gtk::CellRenderer& cell);
135 void reset_edit(Gtk::TreeViewColumn& col);
136 void on_edit_canceled(Gtk::TreeViewColumn *col);
137 void start_edit(
const Gtk::TreeModel::Path& pt, Gtk::TreeViewColumn& col, Gtk::CellRenderer& cell);
138 Gtk::TreeIter get_current_bank_iter() {
return bank_treeview->get_selection()->get_selected(); }
139 Glib::ustring get_current_bank();
140 bool run_message_dialog(Gtk::Widget& w,
const Glib::ustring& msg);
141 bool on_bank_button_release(GdkEventButton *ev);
142 void on_bank_edited(
const Glib::ustring& path,
const Glib::ustring& newtext, Gtk::TreeView* w);
143 bool is_row_separator(
const Glib::RefPtr<Gtk::TreeModel>& model,
const Gtk::TreeModel::iterator& iter);
145 void on_preset_save();
147 void on_online_preset();
148 void replace_inline(std::string& l,
const std::string& s,
const std::string& r);
149 void show_online_preset();
150 void popup_pos(
int& x,
int& y,
bool& push_in );
151 void downloadPreset(Gtk::Menu *presetMenu,std::string uri);
152 bool download_file(Glib::ustring from_uri, Glib::ustring to_path);
153 Glib::ustring resolve_hostname();
154 void create_preset_menu(
bool is_new);
155 void read_preset_menu();
156 std::vector< std::tuple<std::string,std::string,std::string> > olp;
157 bool on_bank_drag_motion(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y, guint timestamp);
158 void on_bank_drag_data_received(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y,
const Gtk::SelectionData& data, guint info, guint timestamp);
159 void on_bank_drag_data_get(
const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection,
int info,
int timestamp);
160 void on_bank_changed();
161 bool on_bank_query_tooltip(
int x,
int y,
bool kb_tooltip, Glib::RefPtr<Gtk::Tooltip> tooltip);
162 void reload_banks(
const Glib::ustring& sel_bank);
164 void on_bank_reordered(
const Gtk::TreeModel::Path& path);
165 bool on_preset_button_release(GdkEventButton *ev);
166 bool on_preset_button_press(GdkEventButton *ev);
167 void on_preset_row_activated(
const Gtk::TreePath& path, Gtk::TreeViewColumn* column);
168 void on_preset_edited(
const Glib::ustring& path,
const Glib::ustring& newtext);
169 void on_cursor_changed();
170 void on_preset_changed();
171 bool on_preset_drag_motion(
const Glib::RefPtr<Gdk::DragContext>& context,
int x,
int y, guint timestamp);
172 void on_preset_drag_data_get(
const Glib::RefPtr<Gdk::DragContext>& context, Gtk::SelectionData& selection,
int info,
int timestamp);
173 void on_preset_reordered(
const Gtk::TreeModel::Path& path);
176 void on_presets_close();
177 bool animate_preset_show();
178 bool animate_preset_hide();
180 void display_paned(
bool show_preset,
int paned_child_height);
181 void on_selection_changed();
186 void on_preset_select(
bool v,
bool animated,
int preset_window_height);
const std::string & get_preset_dir() const
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > type_pb
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > edit_pb
static MyTreeView * create_from_builder(BaseObjectType *cobject)
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > del_pb
virtual bool row_draggable_vfunc(const TreeModel::Path &path) const
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > edit_pb
PresetStore::PresetModelColumns col
Gtk::TreeModelColumn< Glib::RefPtr< Gdk::Pixbuf > > del_pb
Gtk::TreeModelColumn< Glib::ustring > name
Gtk::TreeModelColumn< int > tp
Gtk::TreeModelColumn< Glib::ustring > name
Gtk::TreeModelColumn< Glib::ustring > name