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 "ardour_message.h"
29 ArdourMessage::ArdourMessage (Gtk::Window* parent,
30 string name, string msg,
31 bool grab_focus, bool auto_run)
32 : ArdourDialog (name),
35 set_keyboard_input (true);
38 label.set_alignment (0.5, 0.5);
39 label.set_name (X_("PrompterLabel"));
41 ok_button.set_name ("EditorGTKButton");
42 ok_button.clicked.connect (bind (slot (*this, &ArdourDialog::stop), 1));
44 packer.set_spacing (10);
45 packer.set_border_width (10);
46 packer.pack_start (label);
47 packer.pack_start (ok_button);
49 set_name (X_("Prompter"));
50 set_position (GTK_WIN_POS_MOUSE);
56 get_window().set_decorations (GdkWMDecoration (GDK_DECOR_BORDER|GDK_DECOR_RESIZEH));
59 ok_button.grab_focus ();
63 set_transient_for (*parent);
71 ArdourMessage::~ArdourMessage()