#include <combo.h>
Inheritance diagram for Combo_chooser:


Public Member Functions | |
| Combo_chooser (Vga_file *i, Flex_file_info *flinfo, unsigned char *palbuf, int w, int h, Shape_group *g=0) | |
| virtual | ~Combo_chooser () |
| void | unselect (bool need_render=true) |
| int | is_selected () |
| void | set_selected_callback (void(*fun)()) |
| int | get_count () |
| int | add (Combo *newcombo, int index) |
| void | remove () |
| void | edit () |
| virtual void | move (bool upwards) |
| virtual void | search (const char *srch, int dir) |
Static Public Member Functions | |
| static gint | configure (GtkWidget *widget, GdkEventConfigure *event, gpointer data) |
| static gint | expose (GtkWidget *widget, GdkEventExpose *event, gpointer data) |
| static gint | mouse_press (GtkWidget *widget, GdkEventButton *event, gpointer data) |
| static void | drag_data_get (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *data, guint info, guint time, gpointer data) |
| static gint | selection_clear (GtkWidget *widget, GdkEventSelection *event, gpointer data) |
| static gint | drag_begin (GtkWidget *widget, GdkDragContext *context, gpointer data) |
| static void | scrolled (GtkAdjustment *adj, gpointer data) |
| static gint | drag_motion (GtkWidget *widget, GdkEventMotion *event, gpointer data) |
Private Member Functions | |
| virtual void | show (int x, int y, int w, int h) |
| virtual void | show () |
| void | select (int new_sel) |
| virtual void | load () |
| virtual void | render () |
| virtual void | set_background_color (guint32 c) |
| virtual int | get_selected_id () |
| void | scroll (int newindex) |
| void | scroll (bool upwards) |
| void | enable_controls () |
Private Attributes | |
| Flex_file_info * | flex_info |
| std::vector< Combo * > | combos |
| GtkWidget * | sbar |
| guint | sbar_sel |
| int | index0 |
| Combo_info * | info |
| int | info_cnt |
| void(* | sel_changed )() |
Definition at line 144 of file combo.h.
| Combo_chooser::Combo_chooser | ( | Vga_file * | i, | |
| Flex_file_info * | flinfo, | |||
| unsigned char * | palbuf, | |||
| int | w, | |||
| int | h, | |||
| Shape_group * | g = 0 | |||
| ) |
Definition at line 1193 of file combo.cc.
References Ucscript::frame, Mouse_release(), and on_combo_key_press().
Here is the call graph for this function:

| void Combo_chooser::show | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [private, virtual] |
Implements Object_browser.
Definition at line 819 of file combo.cc.
References Rectangle::h, Exult_server::info, Shape_draw::show(), Rectangle::w, Rectangle::x, and Rectangle::y.
Referenced by expose(), and mouse_press().
Here is the call graph for this function:

| virtual void Combo_chooser::show | ( | ) | [inline, private, virtual] |
| void Combo_chooser::select | ( | int | new_sel | ) | [private] |
| void Combo_chooser::load | ( | ) | [private, virtual] |
Reimplemented from Object_browser.
Definition at line 904 of file combo.cc.
References Shape_file_info::get_ifile(), ExultStudio::get_instance(), ExultStudio::get_vgafile(), len, and Combo::read().
Here is the call graph for this function:

| void Combo_chooser::render | ( | ) | [private, virtual] |
Implements Object_browser.
Definition at line 935 of file combo.cc.
References border, and Exult_server::info.
Referenced by configure(), and mouse_press().
| virtual void Combo_chooser::set_background_color | ( | guint32 | c | ) | [inline, private, virtual] |
Reimplemented from Object_browser.
Definition at line 163 of file combo.h.
References Shape_draw::set_background_color().
Here is the call graph for this function:

| virtual int Combo_chooser::get_selected_id | ( | ) | [inline, private, virtual] |
Reimplemented from Object_browser.
Definition at line 165 of file combo.h.
References info, Combo_info::num, and Object_browser::selected.
| void Combo_chooser::scroll | ( | int | newindex | ) | [private] |
| void Combo_chooser::unselect | ( | bool | need_render = true |
) |
Definition at line 867 of file combo.cc.
References Exult_server::info.
Referenced by mouse_press().
| int Combo_chooser::is_selected | ( | ) | [inline] |
| void Combo_chooser::set_selected_callback | ( | void(*)() | fun | ) | [inline] |
| int Combo_chooser::add | ( | Combo * | newcombo, | |
| int | index | |||
| ) |
| void Combo_chooser::remove | ( | ) |
Definition at line 1340 of file combo.cc.
References EStudio::Alert(), Combo_editor::file_index, ExultStudio::get_combowin(), ExultStudio::get_instance(), Combo_editor::is_visible(), EStudio::Prompt(), and Combo::remove().
Referenced by on_combo_key_press().
Here is the call graph for this function:

| void Combo_chooser::edit | ( | ) |
Definition at line 1374 of file combo.cc.
References EStudio::Alert(), ExultStudio::get_combowin(), ExultStudio::get_instance(), Combo_editor::is_visible(), ExultStudio::open_combo_window(), and Combo_editor::set_combo().
Referenced by mouse_press().
Here is the call graph for this function:

| gint Combo_chooser::configure | ( | GtkWidget * | widget, | |
| GdkEventConfigure * | event, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 1399 of file combo.cc.
References border, Shape_draw::enable_drop(), Object_browser::group, render(), and Object_browser::vscroll.
Here is the call graph for this function:

| gint Combo_chooser::expose | ( | GtkWidget * | widget, | |
| GdkEventExpose * | event, | |||
| gpointer | data | |||
| ) | [static] |
| gint Combo_chooser::mouse_press | ( | GtkWidget * | widget, | |
| GdkEventButton * | event, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 1510 of file combo.cc.
References Combo_info::box, Object_browser::create_popup(), edit(), Rectangle::has_point(), info, info_cnt, render(), scroll(), sel_changed, Object_browser::selected, show(), and unselect().
Here is the call graph for this function:

| void Combo_chooser::drag_data_get | ( | GtkWidget * | widget, | |
| GdkDragContext * | context, | |||
| GtkSelectionData * | data, | |||
| guint | info, | |||
| guint | time, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 1026 of file combo.cc.
References combos, U7_combo_data::frame, Rectangle::h, Combo::hot_index, info, len, Combo::members, Combo_info::num, Object_browser::selected, U7_combo_data::shape, Store_u7_comboid(), Combo::tilefoot, Combo_member::tx, U7_combo_data::tx, Combo_member::ty, U7_combo_data::ty, Combo_member::tz, U7_combo_data::tz, U7_TARGET_COMBOID, U7_TARGET_COMBOID_NAME, Rectangle::w, Rectangle::x, and Rectangle::y.
Here is the call graph for this function:

| gint Combo_chooser::selection_clear | ( | GtkWidget * | widget, | |
| GdkEventSelection * | event, | |||
| gpointer | data | |||
| ) | [static] |
| gint Combo_chooser::drag_begin | ( | GtkWidget * | widget, | |
| GdkDragContext * | context, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 1102 of file combo.cc.
References combos, Combo_member::framenum, Vga_file::get_shape(), Combo::hot_index, info, Combo::members, Combo_info::num, Object_browser::selected, Shape_draw::set_drag_icon(), Combo_member::shapenum, and Combo::shapes_file.
Here is the call graph for this function:

| void Combo_chooser::scrolled | ( | GtkAdjustment * | adj, | |
| gpointer | data | |||
| ) | [static] |
| void Combo_chooser::move | ( | bool | upwards | ) | [virtual] |
Reimplemented from Object_browser.
Definition at line 1584 of file combo.cc.
References Combo_editor::file_index, ExultStudio::get_combowin(), ExultStudio::get_instance(), and Combo_editor::is_visible().
Here is the call graph for this function:

| void Combo_chooser::search | ( | const char * | srch, | |
| int | dir | |||
| ) | [virtual] |
Reimplemented from Object_browser.
Definition at line 1619 of file combo.cc.
References ExultStudio::get_instance().
Here is the call graph for this function:

| gint Combo_chooser::drag_motion | ( | GtkWidget * | widget, | |
| GdkEventMotion * | event, | |||
| gpointer | data | |||
| ) | [static] |
Definition at line 1491 of file combo.cc.
References Shape_draw::dragging, Object_browser::selected, Shape_draw::start_drag(), U7_TARGET_COMBOID, and U7_TARGET_COMBOID_NAME.
Here is the call graph for this function:

Flex_file_info* Combo_chooser::flex_info [private] |
std::vector<Combo *> Combo_chooser::combos [private] |
GtkWidget* Combo_chooser::sbar [private] |
guint Combo_chooser::sbar_sel [private] |
int Combo_chooser::index0 [private] |
Combo_info* Combo_chooser::info [private] |
Definition at line 152 of file combo.h.
Referenced by drag_begin(), drag_data_get(), get_selected_id(), and mouse_press().
int Combo_chooser::info_cnt [private] |
void(* Combo_chooser::sel_changed)() [private] |
Referenced by mouse_press(), and set_selected_callback().
1.5.1