ardour/libs/gtkmm2ext/gtkmm2ext/choice.h
Paul Davis 004a49b0c7 Gtkmm2ext::Choice now inherits from Gtk::Dialog; embed/import rate mismatch dialog no longer hangs in recursive Main::run() call
git-svn-id: svn://localhost/trunk/ardour2@414 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-03-21 21:08:24 +00:00

28 lines
479 B
C++

#ifndef __pbd_gtkmm_choice_h__
#define __pbd_gtkmm_choice_h__
#include <gtkmm/dialog.h>
#include <string>
#include <vector>
namespace Gtkmm2ext {
class Choice : public Gtk::Dialog
{
public:
Choice (std::string prompt, std::vector<std::string> choices);
virtual ~Choice ();
int get_choice ();
protected:
void on_realize ();
private:
int which_choice;
bool choice_made (GdkEventButton* ev, int nbutton);
};
} /* namespace */
#endif // __pbd_gtkmm_choice_h__