00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_STUDIO_WIDGET_COMPSELECT_H
00026 #define __SYNFIG_STUDIO_WIDGET_COMPSELECT_H
00027
00028
00029
00030 #include <gtkmm/optionmenu.h>
00031 #include <gtkmm/menu.h>
00032 #include "app.h"
00033
00034
00035
00036
00037
00038
00039
00040 namespace Gtk { class Menu; };
00041
00042 namespace studio {
00043
00044 class Widget_CompSelect : public Gtk::OptionMenu
00045 {
00046 Gtk::Menu instance_list_menu;
00047
00048
00049 etl::loose_handle<studio::Instance> selected_instance;
00050 void set_selected_instance_(etl::handle<studio::Instance> x);
00051
00052 void new_instance(etl::handle<studio::Instance> x);
00053
00054 void delete_instance(etl::handle<studio::Instance> x);
00055
00056 void set_selected_instance(etl::loose_handle<studio::Instance> x);
00057
00058 void set_selected_instance_signal(etl::handle<studio::Instance> x);
00059
00060 public:
00061
00062 Widget_CompSelect();
00063 ~Widget_CompSelect();
00064
00065 etl::loose_handle<studio::Instance> get_selected_instance() { return selected_instance; }
00066
00067 void refresh();
00068 };
00069
00070 };
00071
00072
00073
00074 #endif