Files
ardour/libs/gtkmm2/gtk/src/optionmenu.hg
Paul Davis 449aab3c46 rollback to 3428, before the mysterious removal of libs/* at 3431/3432
git-svn-id: svn://localhost/ardour2/branches/3.0@3435 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-06-02 21:41:35 +00:00

68 lines
2.2 KiB
Plaintext

/* $Id: optionmenu.hg,v 1.6 2006/04/12 11:11:25 murrayc Exp $ */
/* optionmenu.h
*
* Copyright (C) 1998-2002 The gtkmm Development Team
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
// This is for including the config header before any code (such as
// the #ifndef GTKMM_DISABLE_DEPRECATED in deprecated classes) is generated:
_CONFIGINCLUDE(gtkmmconfig.h)
#include <gtkmm/button.h>
_DEFS(gtkmm,gtk)
_PINCLUDE(gtkmm/private/button_p.h)
namespace Gtk
{
class Menu;
/** A widget used to choose from a list of valid choices.
*
* A Gtk::OptionMenu is a widget that allows the user to choose from a list
* of valid choices. The Gtk::OptionMenu displays the selected choice. When
* activated the GtkOptionMenu displays a popup Gtk::Menu which allows the
* user to make a new choice.
*
* @deprecated Use the ComboBox widget instead.
*/
class OptionMenu : public Button
{
_CLASS_GTKOBJECT(OptionMenu,GtkOptionMenu,GTK_OPTION_MENU,Gtk::Button,GtkButton)
_IS_DEPRECATED
public:
OptionMenu();
_CUSTOM_DTOR()
_WRAP_METHOD(void set_menu(Menu& menu), gtk_option_menu_set_menu)
_WRAP_METHOD(Menu* get_menu(), gtk_option_menu_get_menu)
_WRAP_METHOD(const Menu* get_menu() const, gtk_option_menu_get_menu, constversion)
_WRAP_METHOD(void remove_menu(), gtk_option_menu_remove_menu)
_WRAP_METHOD(int get_history() const, gtk_option_menu_get_history)
_WRAP_METHOD(void set_history(guint index), gtk_option_menu_set_history)
_WRAP_SIGNAL(void changed(), "changed")
private:
void init_accels_handler_();
};
} /* namespace Gtk */