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_drag_end (GtkWidget *widget, GdkDragContext *) |
| 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_UnixMenu * | m_pUnixMenu |
| XAP_Menu_Id | m_id |
| EV_UnixToolbar * | m_pUnixToolbar |
| XAP_Toolbar_Id | m_id |
| GtkWidget * | m_widget |
| bool | m_blockSignal |
| gulong | m_handlerId |
| _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] |
References m_blockSignal, m_handlerId, m_id, m_pUnixToolbar, and m_widget.
| _wd::~_wd | ( | void | ) | [inline] |
| static void _wd::s_onActivate | ( | GtkWidget * | , | |
| gpointer | callback_data | |||
| ) | [inline, static] |
References m_id, m_pUnixMenu, EV_UnixMenu::menuEvent(), and UT_return_if_fail.
Referenced by EV_UnixMenu::s_createNormalMenuEntry().
| static void _wd::s_onMenuItemSelect | ( | GtkWidget * | , | |
| gpointer | data | |||
| ) | [inline, static] |
| static void _wd::s_onMenuItemDeselect | ( | GtkWidget * | , | |
| gpointer | data | |||
| ) | [inline, static] |
References EV_UnixMenu::getFrame(), m_pUnixMenu, XAP_Frame::setStatusMessage(), UT_ASSERT, and UT_return_if_fail.
Referenced by EV_UnixMenu::s_createNormalMenuEntry().
| static void _wd::s_onInitMenu | ( | GtkMenuItem * | , | |
| gpointer | callback_data | |||
| ) | [inline, static] |
References XAP_Frame::getCurrentView(), EV_UnixMenu::getFrame(), m_pUnixMenu, EV_UnixMenu::refreshMenu(), and UT_return_if_fail.
Referenced by EV_UnixMenu::synthesizeMenu(), and EV_UnixMenuPopup::synthesizeMenuPopup().
| static void _wd::s_onDestroyMenu | ( | GtkMenuItem * | , | |
| gpointer | callback_data | |||
| ) | [inline, static] |
References EV_UnixMenu::getFrame(), m_pUnixMenu, XAP_Frame::setStatusMessage(), and UT_return_if_fail.
Referenced by s_onDestroyPopupMenu(), and EV_UnixMenu::synthesizeMenu().
| static void _wd::s_onDestroyPopupMenu | ( | GtkMenuItem * | menuItem, | |
| gpointer | callback_data | |||
| ) | [inline, static] |
| 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_new_table | ( | GtkWidget * | , | |
| int | rows, | |||
| int | cols, | |||
| gpointer * | user_data | |||
| ) | [inline, static] |
| 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.
Referenced by EV_UnixToolbar::synthesize().
| static void _wd::s_drag_end | ( | GtkWidget * | widget, | |
| GdkDragContext * | ||||
| ) | [inline, static] |
References XAP_Frame::dragEnd(), EV_UnixToolbar::getFrame(), m_id, and m_pUnixToolbar.
Referenced by EV_UnixToolbar::synthesize().
| 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 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_prelight | ( | GtkComboBox * | combo, | |
| const gchar * | text, | |||
| _wd * | wd | |||
| ) | [inline, static] |
| 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_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_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_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, 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().
Referenced by _wd(), s_onActivate(), s_onDestroyMenu(), s_onInitMenu(), s_onMenuItemDeselect(), and s_onMenuItemSelect().
Referenced by _wd(), EV_UnixToolbar::refreshToolbar(), EV_UnixToolbar::repopulateStyles(), s_combo_apply_changes(), s_combo_changed(), s_drag_begin(), s_drag_drop(), s_drag_drop_toolbar(), s_drag_end(), s_onActivate(), s_onMenuItemSelect(), EV_UnixToolbar::synthesize(), and EV_UnixToolbar::toolbarEvent().
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_drag_end(), 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 |
| bool _wd::m_blockSignal |
| gulong _wd::m_handlerId |
Referenced by _wd(), EV_UnixToolbar::refreshToolbar(), and EV_UnixToolbar::synthesize().
1.5.5