ardour/gtk2_ardour/yes_no_dialog.h
Nikolay 6a5d4d8e29 [Summary] Implemented Yes-No Dialog
[Reviewed] GZharun
2014-11-12 13:07:37 +02:00

46 lines
1.3 KiB
C++

/*
Copyright (C) 2014 Waves Audio Ltd.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __yes_no_dialog_h__
#define __yes_no_dialog_h__
#include "waves_dialog.h"
#include "ardour_button.h"
class YesNoDialog : public WavesDialog
{
public:
YesNoDialog(std::string window_title, std::string info_lines);
~YesNoDialog();
protected:
void on_esc_pressed ();
void on_enter_pressed ();
private:
void no_button_pressed (WavesButton*);
void yes_button_pressed (WavesButton*);
WavesButton& _yes_button;
WavesButton& _no_button;
Gtk::Label& _info_label;
Gtk::Layout& _layout;
};
#endif /* __yes_no_dialog_h__ */