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 <gtkmm/stock.h>
24 #include "ardour_message.h"
30 ArdourMessage::ArdourMessage (Gtk::Window* parent,
31 string name, string msg,
32 bool grab_focus, bool auto_run)
33 : ArdourDialog (name),
36 label.set_name (X_("PrompterLabel"));
37 label.set_justify (JUSTIFY_CENTER);
40 get_vbox()->pack_start (label);
42 Button* ok_button = add_button (Stock::OK, RESPONSE_ACCEPT);
44 set_name (X_("Prompter"));
45 set_position (Gtk::WIN_POS_MOUSE);
47 set_type_hint (Gdk::WINDOW_TYPE_HINT_MENU);
50 ok_button->grab_focus ();
54 set_transient_for (*parent);
62 ArdourMessage::~ArdourMessage()