2 Copyright (C) 2004 Paul Davis
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <gdkmm/window.h>
24 #include "ardour_message.h"
31 ArdourMessage::ArdourMessage (Gtk::Window* parent,
32 string name, string msg,
33 bool grab_focus, bool auto_run)
34 : ArdourDialog (name),
37 set_keyboard_input (true);
40 label.set_alignment (0.5, 0.5);
41 label.set_name (X_("PrompterLabel"));
43 ok_button.set_name ("EditorGTKButton");
44 ok_button.signal_clicked().connect (bind (mem_fun(*this, &ArdourDialog::stop), 1));
46 packer.set_spacing (10);
47 packer.set_border_width (10);
48 packer.pack_start (label);
49 packer.pack_start (ok_button);
51 set_name (X_("Prompter"));
52 set_position (Gtk::WIN_POS_MOUSE);
58 get_window()->set_decorations (Gdk::WMDecoration (GDK_DECOR_BORDER|GDK_DECOR_RESIZEH));
61 ok_button.grab_focus ();
65 set_transient_for (*parent);
73 ArdourMessage::~ArdourMessage()