Public Member Functions | |
_wd (EV_UnixToolbar *pUnixToolbar, XAP_Toolbar_Id id, GtkWidget *widget=NULL) | |
~_wd (void) | |
Static Public Member Functions | |
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_UnixToolbar * | m_pUnixToolbar |
XAP_Toolbar_Id | m_id |
GtkWidget * | m_widget |
bool | m_blockSignal |
gulong | m_handlerId |
_wd::_wd | ( | EV_UnixToolbar * | pUnixToolbar, | |
XAP_Toolbar_Id | id, | |||
GtkWidget * | widget = NULL | |||
) | [inline] |
References m_blockSignal, m_handlerId, m_id, m_pUnixToolbar, and m_widget.
_wd::~_wd | ( | void | ) | [inline] |
static void _wd::s_callback | ( | GtkWidget * | , | |
gpointer | user_data | |||
) | [inline, static] |
References m_blockSignal, m_pUnixToolbar, EV_UnixToolbar::setCurrentEvent(), EV_UnixToolbar::toolbarEvent(), and UT_return_if_fail.
Referenced by EV_UnixToolbar::synthesize().
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, 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] |
References m_blockSignal, m_id, m_widget, s_combo_apply_changes(), and UT_return_if_fail.
Referenced by EV_UnixToolbar::synthesize().
static void _wd::s_drag_begin | ( | GtkWidget * | widget, | |
GdkDragContext * | ||||
) | [inline, static] |
References XAP_Frame::dragBegin(), EV_UnixToolbar::getFrame(), m_id, and m_pUnixToolbar.
Referenced by EV_UnixToolbar::synthesize().
static void _wd::s_drag_drop | ( | GtkWidget * | widget, | |
GdkDragContext * | context, | |||
gint | , | |||
gint | , | |||
guint | ||||
) | [inline, static] |
References XAP_Frame::dragDropToIcon(), EV_UnixToolbar::getFrame(), m_id, and m_pUnixToolbar.
Referenced by EV_UnixToolbar::synthesize().
static void _wd::s_drag_drop_toolbar | ( | GtkWidget * | , | |
GdkDragContext * | context, | |||
gint | , | |||
gint | , | |||
guint | , | |||
gpointer | pTB | |||
) | [inline, static] |
References XAP_Frame::dragDropToTB(), EV_UnixToolbar::getFrame(), m_id, and m_pUnixToolbar.
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] |
References EV_UnixToolbar::m_pFontPreview, EV_UnixToolbar::m_pFontPreviewPositionX, m_pUnixToolbar, and UT_DEBUGMSG.
Referenced by EV_UnixToolbar::synthesize().
static void _wd::s_font_popup_opened | ( | GtkComboBox * | , | |
GdkRectangle * | position, | |||
_wd * | wd | |||
) | [inline, static] |
References EV_UnixToolbar::m_pFontPreviewPositionX, m_pUnixToolbar, and UT_DEBUGMSG.
Referenced by EV_UnixToolbar::synthesize().
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 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] |
bool _wd::m_blockSignal |
gulong _wd::m_handlerId |
Referenced by _wd(), EV_UnixToolbar::refreshToolbar(), and EV_UnixToolbar::synthesize().
Referenced by _wd(), EV_UnixToolbar::refreshToolbar(), s_back_color_changed(), s_callback(), s_combo_apply_changes(), s_drag_begin(), s_drag_drop(), s_drag_drop_toolbar(), s_font_popup_closed(), s_font_popup_opened(), s_font_prelight(), s_fore_color_changed(), s_new_table(), and s_proxy_activated().
GtkWidget* _wd::m_widget |