: paypal_pixmap (paypal_xpm)
#endif
{
+ set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN);
+
string path;
string t;
if [ -x ./ardour.bin ] ; then
# scons executable
export LD_LIBRARY_PATH=../libs/ardour
- exec ./ardour.bin --novst $*
+ exec ./ardour.bin --novst --display=localhost:0.0 $*
else
# autofoo/make executable
export LD_LIBRARY_PATH=../libs/ardour
<menuitem action='GotoEditor'/>
<menuitem action='GotoMixer'/>
<menuitem action='ToggleOptionsEditor'/>
- <menuitem action='ToggleAudioLibrary'/>
+ <menuitem action='ToggleSoundFileBrowser'/>
<menuitem action='ToggleConnections'/>
<menuitem action='ToggleLocations'/>
<menuitem action='ToggleBigClock'/>
+ <separator/>
+ <menuitem action='About'/>
</menu>
<menu name='Options' action='Options'>
<menuitem action='SendMTC'/>
: Dialog (title, modal, use_seperator)
{
session = 0;
+
+ set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);
}
ArdourDialog::~ArdourDialog ()
void
ARDOUR_UI::detach_tearoff (Box* b, Widget* w)
{
- editor->ensure_float (transport_tearoff->tearoff_window());
+// editor->ensure_float (transport_tearoff->tearoff_window());
b->remove (*w);
}
option_editor->set_session (s);
}
+ if (sfdb) {
+ sfdb->set_session (s);
+ }
Blink.connect (mem_fun(*this, &ARDOUR_UI::transport_rec_enable_blink));
Blink.connect (mem_fun(*this, &ARDOUR_UI::solo_blink));
RefPtr<ToggleAction> tact = RefPtr<ToggleAction>::cast_dynamic(act);
if (tact->get_active()) {
+ sfdb->show_all();
sfdb->present();
} else {
sfdb->hide ();
}
}
}
+
ActionManager::register_action (common_actions, X_("GotoMixer"), _("Mixer"), mem_fun(*this, &ARDOUR_UI::goto_mixer_window));
ActionManager::register_toggle_action (common_actions, X_("ToggleSoundFileBrowser"), _("Sound File Browser"), mem_fun(*this, &ARDOUR_UI::toggle_sound_file_browser));
ActionManager::register_toggle_action (common_actions, X_("ToggleOptionsEditor"), _("Options Editor"), mem_fun(*this, &ARDOUR_UI::toggle_options_window));
- ActionManager::register_toggle_action (common_actions, X_("ToggleAudioLibrary"), _("Audio Library"), mem_fun(*this, &ARDOUR_UI::toggle_sound_file_browser));
act = ActionManager::register_toggle_action (common_actions, X_("ToggleInspector"), _("Track/Bus Inspector"), mem_fun(*this, &ARDOUR_UI::toggle_route_params_window));
ActionManager::session_sensitive_actions.push_back (act);
act = ActionManager::register_toggle_action (common_actions, X_("ToggleConnections"), _("Connections"), mem_fun(*this, &ARDOUR_UI::toggle_connection_editor));
mouse_mode_tearoff->torn_off()) {
top_hbox.remove (toolbar_frame);
}
-
- ensure_float (*w);
}
void
{
Gtk::Label* label;
- path_table.set_homogeneous (true);
+ path_table.set_homogeneous (false);
path_table.set_border_width (12);
path_table.set_row_spacings (5);
path_table.attach(sfdb_path_view, 1, 3, 2, 3, Gtk::FILL|Gtk::EXPAND, FILL);
sfdb_path_view.append_column(_("Paths"), sfdb_path_columns.paths);
+ sfdb_path_view.set_size_request(-1, 100);
vector<string> nfstrings = internationalize (native_format_strings);
switch (c) {
case 0:
break;
-
+
case 'v':
just_version = true;
break;
std::string length2string (const int32_t frames, const int32_t sample_rate);
-SoundFileBox::SoundFileBox (ARDOUR::Session* session)
+SoundFileBox::SoundFileBox ()
:
+ _session(0),
current_pid(0),
fields(Gtk::ListStore::create(label_columns)),
main_box (false, 3),
play_btn.signal_clicked().connect (mem_fun (*this, &SoundFileBox::play_btn_clicked));
stop_btn.signal_clicked().connect (mem_fun (*this, &SoundFileBox::stop_btn_clicked));
- if (!session) {
- play_btn.set_sensitive(false);
- } else {
- session->AuditionActive.connect(mem_fun (*this, &SoundFileBox::audition_status_changed));
- }
-
add_field_btn.signal_clicked().connect
(mem_fun (*this, &SoundFileBox::add_field_clicked));
remove_field_btn.signal_clicked().connect
stop_btn.hide();
}
+void
+SoundFileBox::set_session(ARDOUR::Session* s)
+{
+ _session = s;
+
+ if (!_session) {
+ play_btn.set_sensitive(false);
+ } else {
+ _session->AuditionActive.connect(mem_fun (*this, &SoundFileBox::audition_status_changed));
+ }
+}
+
int
SoundFileBox::setup_labels (string filename)
{
SoundFileBrowser::SoundFileBrowser (std::string title)
:
ArdourDialog(title),
- chooser(Gtk::FILE_CHOOSER_ACTION_OPEN),
- preview(session)
+ chooser(Gtk::FILE_CHOOSER_ACTION_OPEN)
{
get_vbox()->pack_start(chooser);
chooser.set_preview_widget(preview);
chooser.signal_update_preview().connect(mem_fun(*this, &SoundFileBrowser::update_preview));
+}
- show_all();
+void
+SoundFileBrowser::set_session (ARDOUR::Session* s)
+{
+ preview.set_session(s);
}
void
{
add_button (Gtk::Stock::OPEN, Gtk::RESPONSE_OK);
add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
-
- show_all();
}
SoundFileOmega::SoundFileOmega (std::string title)
embed_btn.signal_clicked().connect (mem_fun (*this, &SoundFileOmega::embed_clicked));
import_btn.signal_clicked().connect (mem_fun (*this, &SoundFileOmega::import_clicked));
-
- show_all();
}
void
class SoundFileBox : public Gtk::VBox
{
public:
- SoundFileBox (ARDOUR::Session* session);
+ SoundFileBox ();
virtual ~SoundFileBox () {};
bool update (std::string filename);
+ void set_session (ARDOUR::Session* s);
protected:
+ ARDOUR::Session* _session;
+
struct LabelModelColumns : public Gtk::TreeModel::ColumnRecord
{
public:
SoundFileBrowser (std::string title);
virtual ~SoundFileBrowser () {};
+ virtual void set_session (ARDOUR::Session*);
protected:
Gtk::FileChooserWidget chooser;
SoundFileBox preview;