along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id$
*/
#ifndef __ardour_mixer_ui_h__
#include <ardour/ardour.h>
#include <ardour/io.h>
-#include "keyboard_target.h"
#include "route_redirect_selection.h"
#include "enums.h"
class RouteGroup;
class Session;
class AudioDiskstream;
- class AudioEngine;
};
class MixerStrip;
class Mixer_UI : public Gtk::Window
{
public:
- Mixer_UI (ARDOUR::AudioEngine&);
+ Mixer_UI ();
~Mixer_UI();
void connect_to_session (ARDOUR::Session *);
void hide_strip (MixerStrip *);
void ensure_float (Gtk::Window&);
+ void toggle_auto_rebinding ();
+ void set_auto_rebinding(bool);
RouteRedirectSelection& selection() { return _selection; }
+ static const char* get_order_key();
+
private:
- ARDOUR::AudioEngine& engine;
ARDOUR::Session *session;
bool _visible;
Gtk::HBox out_packer;
Gtk::HPaned list_hpane;
+ // for restoring window geometry.
+ int m_root_x, m_root_y, m_width, m_height;
+
+ void set_window_pos_and_size ();
+ void get_window_pos_and_size ();
+
bool on_key_press_event (GdkEventKey*);
void pane_allocation_handler (Gtk::Allocation&, Gtk::Paned*);
void unselect_all_audiobus_strips ();
void select_all_audiobus_strips ();
+ void auto_rebind_midi_controls ();
+ bool auto_rebinding;
+
void strip_select_op (bool audiotrack, bool select);
void select_strip_op (MixerStrip*, bool select);
void track_list_change (const Gtk::TreeModel::Path&,const Gtk::TreeModel::iterator&);
void track_list_delete (const Gtk::TreeModel::Path&);
+ void track_list_reorder (const Gtk::TreeModel::Path& path, const Gtk::TreeModel::iterator& iter, int* new_order);
void initial_track_display ();
void show_track_list_menu ();
Width _strip_width;
+ void sync_order_keys ();
+ bool ignore_route_reorder;
+ bool ignore_sync;
+
static const int32_t default_width = 478;
static const int32_t default_height = 765;
};