X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_compselect.h;fp=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_compselect.h;h=c21eb0880e6506015c43cc2e8cf5f6d46f0914e9;hb=3a3c4bca3a17137bec5d7960560934b91ef4146e;hp=0000000000000000000000000000000000000000;hpb=41257b650db1defb40ac20072ffeef70d5985f5e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_compselect.h b/synfig-studio/trunk/src/gtkmm/widget_compselect.h new file mode 100644 index 0000000..c21eb08 --- /dev/null +++ b/synfig-studio/trunk/src/gtkmm/widget_compselect.h @@ -0,0 +1,73 @@ +/* === S I N F G =========================================================== */ +/*! \file widget_compselect.h +** \brief Template Header +** +** $Id: widget_compselect.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** +** \legal +** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** +** This software and associated documentation +** are CONFIDENTIAL and PROPRIETARY property of +** the above-mentioned copyright holder. +** +** You may not copy, print, publish, or in any +** other way distribute this software without +** a prior written agreement with +** the copyright holder. +** \endlegal +*/ +/* ========================================================================= */ + +/* === S T A R T =========================================================== */ + +#ifndef __SINFG_STUDIO_WIDGET_COMPSELECT_H +#define __SINFG_STUDIO_WIDGET_COMPSELECT_H + +/* === H E A D E R S ======================================================= */ + +#include +#include +#include "app.h" + +/* === M A C R O S ========================================================= */ + +/* === T Y P E D E F S ===================================================== */ + +/* === C L A S S E S & S T R U C T S ======================================= */ + +namespace Gtk { class Menu; }; + +namespace studio { + +class Widget_CompSelect : public Gtk::OptionMenu +{ + Gtk::Menu instance_list_menu; + + + etl::loose_handle selected_instance; + void set_selected_instance_(etl::handle x); + + void new_instance(etl::handle x); + + void delete_instance(etl::handle x); + + void set_selected_instance(etl::loose_handle x); + + void set_selected_instance_signal(etl::handle x); + +public: + + Widget_CompSelect(); + ~Widget_CompSelect(); + + etl::loose_handle get_selected_instance() { return selected_instance; } + + void refresh(); +}; // END of class Widget_CompSelect + +}; // END of namespace studio + +/* === E N D =============================================================== */ + +#endif