Combo_chooser Class Reference

#include <combo.h>

Inheritance diagram for Combo_chooser:

Inheritance graph
[legend]
Collaboration diagram for Combo_chooser:

Collaboration graph
[legend]
List of all members.

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_infoflex_info
std::vector< Combo * > combos
GtkWidget * sbar
guint sbar_sel
int index0
Combo_infoinfo
int info_cnt
void(* sel_changed )()

Detailed Description

Definition at line 144 of file combo.h.


Constructor & Destructor Documentation

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:

Combo_chooser::~Combo_chooser (  )  [virtual]

Definition at line 1292 of file combo.cc.


Member Function Documentation

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]

Implements Object_browser.

Definition at line 157 of file combo.h.

References Shape_draw::draw.

void Combo_chooser::select ( int  new_sel  )  [private]

Definition at line 839 of file combo.cc.

References Exult_server::info, len, and Combo::name.

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]

Definition at line 990 of file combo.cc.

Referenced by mouse_press(), and scrolled().

void Combo_chooser::scroll ( bool  upwards  )  [private]

Definition at line 1008 of file combo.cc.

void Combo_chooser::enable_controls (  )  [private]

Definition at line 1165 of file combo.cc.

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]

Definition at line 178 of file combo.h.

References Object_browser::selected.

void Combo_chooser::set_selected_callback ( void(*)()  fun  )  [inline]

Definition at line 180 of file combo.h.

References sel_changed.

int Combo_chooser::get_count (  ) 

Definition at line 737 of file combo.cc.

int Combo_chooser::add ( Combo newcombo,
int  index 
)

Definition at line 1310 of file combo.cc.

Referenced by Combo_editor::save().

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]

Definition at line 1431 of file combo.cc.

References show().

Here is the call graph for this function:

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]

Definition at line 1086 of file combo.cc.

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]

Definition at line 1129 of file combo.cc.

References scroll().

Here is the call graph for this function:

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:


Member Data Documentation

Flex_file_info* Combo_chooser::flex_info [private]

Definition at line 146 of file combo.h.

std::vector<Combo *> Combo_chooser::combos [private]

Definition at line 147 of file combo.h.

Referenced by drag_begin(), and drag_data_get().

GtkWidget* Combo_chooser::sbar [private]

Definition at line 148 of file combo.h.

guint Combo_chooser::sbar_sel [private]

Definition at line 149 of file combo.h.

int Combo_chooser::index0 [private]

Reimplemented from Object_browser.

Definition at line 150 of file combo.h.

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]

Definition at line 153 of file combo.h.

Referenced by mouse_press().

void(* Combo_chooser::sel_changed)() [private]

Referenced by mouse_press(), and set_selected_callback().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:49:12 2007 for ExultEngine by  doxygen 1.5.1