Public Member Functions | Static Public Member Functions | Public Attributes

_wd Class Reference

List of all members.

Public Member Functions

 _wd (EV_UnixMenu *pUnixMenu, XAP_Menu_Id id)
 ~_wd (void)
 _wd (EV_UnixToolbar *pUnixToolbar, XAP_Toolbar_Id id, GtkWidget *widget=NULL)
 ~_wd (void)

Static Public Member Functions

static void s_onActivate (GtkWidget *, gpointer callback_data)
static void s_onMenuItemSelect (GtkWidget *, gpointer data)
static void s_onMenuItemDeselect (GtkWidget *, gpointer data)
static void s_onInitMenu (GtkMenuItem *, gpointer callback_data)
static void s_onDestroyMenu (GtkMenuItem *, gpointer callback_data)
static void s_onDestroyPopupMenu (GtkMenuItem *menuItem, gpointer callback_data)
static void s_callback (GtkWidget *, gpointer user_data)
static void s_new_table (GtkWidget *, int rows, int cols, gpointer *user_data)
static void s_drag_begin (GtkWidget *widget, GdkDragContext *)
static void s_drag_drop (GtkWidget *widget, GdkDragContext *context, gint, gint, guint)
static void s_drag_drop_toolbar (GtkWidget *, GdkDragContext *context, gint, gint, guint, gpointer pTB)
static void s_insert_text_cb (GtkEditable *editable, gchar *new_text, gint new_text_length, gint, gpointer)
static gboolean s_key_press_event_cb (GtkWidget *widget, GdkEventKey *event, _wd *wd)
static gboolean s_focus_out_event_cb (GtkWidget *widget, GdkEventFocus *, _wd *wd)
static void s_font_prelight (GtkComboBox *combo, const gchar *text, _wd *wd)
static void s_font_popup_opened (GtkComboBox *, GdkRectangle *position, _wd *wd)
static void s_font_popup_closed (GtkComboBox *, _wd *wd)
static void s_combo_changed (GtkComboBox *combo, _wd *wd)
static void s_combo_apply_changes (GtkComboBox *combo, _wd *wd)

Public Attributes

EV_UnixMenum_pUnixMenu
XAP_Menu_Id m_id
EV_UnixToolbarm_pUnixToolbar
XAP_Toolbar_Id m_id
GtkWidget * m_widget
bool m_blockSignal
gulong m_handlerId

Constructor & Destructor Documentation

_wd::_wd ( EV_UnixMenu pUnixMenu,
XAP_Menu_Id  id 
) [inline]

References m_id, and m_pUnixMenu.

_wd::~_wd ( void   )  [inline]
_wd::_wd ( EV_UnixToolbar pUnixToolbar,
XAP_Toolbar_Id  id,
GtkWidget *  widget = NULL 
) [inline]
_wd::~_wd ( void   )  [inline]

Member Function Documentation

static void _wd::s_callback ( GtkWidget *  ,
gpointer  user_data 
) [inline, static]
static void _wd::s_combo_apply_changes ( GtkComboBox *  combo,
_wd wd 
) [inline, static]

Actually apply changes after a combo has been frobbed. This is not meant to be used as a signal handler, but rather to implement common functionality after the decision has been made whether to apply or not.

References XAP_EncodingManager::fontsizes_mapping, gchar, GTK_COMBO_BOX_TEXT, gtk_combo_box_text_get_active_text(), UT_UCS4String::length(), UT_Bijection::lookupByTarget(), m_id, EV_UnixToolbar::m_pFontPreview, EV_UnixToolbar::m_pFontPreviewPositionX, m_pUnixToolbar, pt_PieceTable::s_getUnlocalisedStyleName(), text, EV_UnixToolbar::toolbarEvent(), UT_UCS4String::ucs4_str(), and UT_DEBUGMSG.

Referenced by s_combo_changed(), s_focus_out_event_cb(), and s_key_press_event_cb().

static void _wd::s_combo_changed ( GtkComboBox *  combo,
_wd wd 
) [inline, static]
static void _wd::s_drag_begin ( GtkWidget *  widget,
GdkDragContext *   
) [inline, static]
static void _wd::s_drag_drop ( GtkWidget *  widget,
GdkDragContext *  context,
gint  ,
gint  ,
guint   
) [inline, static]
static void _wd::s_drag_drop_toolbar ( GtkWidget *  ,
GdkDragContext *  context,
gint  ,
gint  ,
guint  ,
gpointer  pTB 
) [inline, static]
static gboolean _wd::s_focus_out_event_cb ( GtkWidget *  widget,
GdkEventFocus *  ,
_wd wd 
) [inline, static]

Apply changes after editing of the font size is done.

References s_combo_apply_changes().

Referenced by EV_UnixToolbar::synthesize().

static void _wd::s_font_popup_closed ( GtkComboBox *  ,
_wd wd 
) [inline, static]
static void _wd::s_font_popup_opened ( GtkComboBox *  ,
GdkRectangle *  position,
_wd wd 
) [inline, static]
static void _wd::s_font_prelight ( GtkComboBox *  combo,
const gchar *  text,
_wd wd 
) [inline, static]
static void _wd::s_insert_text_cb ( GtkEditable *  editable,
gchar *  new_text,
gint  new_text_length,
gint  ,
gpointer   
) [inline, static]

Only accept numeric input in the toolbar's font size combo.

References gchar.

Referenced by EV_UnixToolbar::synthesize().

static gboolean _wd::s_key_press_event_cb ( GtkWidget *  widget,
GdkEventKey *  event,
_wd wd 
) [inline, static]

Apply font size upon <return>

References GDK_KEY_Return, and s_combo_apply_changes().

Referenced by EV_UnixToolbar::synthesize().

static void _wd::s_new_table ( GtkWidget *  ,
int  rows,
int  cols,
gpointer user_data 
) [inline, static]
static void _wd::s_onActivate ( GtkWidget *  ,
gpointer  callback_data 
) [inline, static]
static void _wd::s_onDestroyMenu ( GtkMenuItem *  ,
gpointer  callback_data 
) [inline, static]
static void _wd::s_onDestroyPopupMenu ( GtkMenuItem *  menuItem,
gpointer  callback_data 
) [inline, static]
static void _wd::s_onInitMenu ( GtkMenuItem *  ,
gpointer  callback_data 
) [inline, static]
static void _wd::s_onMenuItemDeselect ( GtkWidget *  ,
gpointer  data 
) [inline, static]
static void _wd::s_onMenuItemSelect ( GtkWidget *  ,
gpointer  data 
) [inline, static]

Member Data Documentation

GtkWidget* _wd::m_widget

The documentation for this class was generated from the following files: