Add log window to windows menu.

git-svn-id: svn://localhost/ardour2/branches/3.0@5861 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2009-10-22 18:11:22 +00:00
parent c19c39362d
commit 7363b3cea0
6 changed files with 21 additions and 17 deletions

View file

@ -429,6 +429,7 @@
<menuitem action='toggle-bundle-manager'/> <menuitem action='toggle-bundle-manager'/>
<menuitem action='toggle-audio-connection-manager'/> <menuitem action='toggle-audio-connection-manager'/>
<menuitem action='toggle-midi-connection-manager'/> <menuitem action='toggle-midi-connection-manager'/>
<menuitem action='toggle-log-window'/>
<separator/> <separator/>
</menu> </menu>
<menu name='Help' action='Help'> <menu name='Help' action='Help'>

View file

@ -686,7 +686,8 @@ class ARDOUR_UI : public Gtkmm2ext::UI
void audioengine_setup (); void audioengine_setup ();
void display_message (const char *prefix, gint prefix_len, void display_message (const char *prefix, gint prefix_len,
Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag, const char *msg); Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag,
const char *msg);
Gtk::Label status_bar_label; Gtk::Label status_bar_label;
Gtk::ToggleButton error_log_button; Gtk::ToggleButton error_log_button;

View file

@ -100,7 +100,7 @@ ARDOUR_UI::setup_windows ()
return 0; return 0;
} }
void void
ARDOUR_UI::display_message (const char *prefix, gint prefix_len, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char *msg) ARDOUR_UI::display_message (const char *prefix, gint prefix_len, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char *msg)
{ {
ustring text; ustring text;

View file

@ -571,6 +571,9 @@ Editor::register_actions ()
ActionManager::session_sensitive_actions.push_back (act); ActionManager::session_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "toggle-midi-connection-manager", _("MIDI Connection Manager"), bind (mem_fun (*this, &Editor::show_global_port_matrix), ARDOUR::DataType::MIDI)); act = ActionManager::register_action (editor_actions, "toggle-midi-connection-manager", _("MIDI Connection Manager"), bind (mem_fun (*this, &Editor::show_global_port_matrix), ARDOUR::DataType::MIDI));
ActionManager::session_sensitive_actions.push_back (act); ActionManager::session_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "toggle-log-window", _("Log"),
mem_fun (ARDOUR_UI::instance(), &ARDOUR_UI::toggle_errors));
ActionManager::session_sensitive_actions.push_back (act);
act = ActionManager::register_action (editor_actions, "tab-to-transient-forwards", _("Move Forward to Transient"), bind (mem_fun(*this, &Editor::tab_to_transient), true)); act = ActionManager::register_action (editor_actions, "tab-to-transient-forwards", _("Move Forward to Transient"), bind (mem_fun(*this, &Editor::tab_to_transient), true));
ActionManager::session_sensitive_actions.push_back (act); ActionManager::session_sensitive_actions.push_back (act);

View file

@ -141,8 +141,7 @@ class UI : public Receiver, public AbstractUI<UIRequest>
protected: protected:
virtual void handle_fatal (const char *); virtual void handle_fatal (const char *);
virtual void display_message (const char *prefix, gint prefix_len, virtual void display_message (const char *prefix, gint prefix_len,
Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag,
Glib::RefPtr<Gtk::TextBuffer::Tag> mtag,
const char *msg); const char *msg);
private: private: