Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

EV_UnixToolbar Class Reference

#include <ev_UnixToolbar.h>

Inheritance diagram for EV_UnixToolbar:
EV_Toolbar EV_GnomeToolbar

List of all members.

Public Member Functions

 EV_UnixToolbar (XAP_UnixApp *pUnixApp, XAP_Frame *pFrame, const char *szToolbarLayoutName, const char *szToolbarLabelSetName)
virtual ~EV_UnixToolbar (void)
bool toolbarEvent (_wd *wd, const UT_UCSChar *pData, UT_uint32 dataLength)
virtual bool synthesize (void)
bool bindListenerToView (AV_View *pView)
virtual bool refreshToolbar (AV_View *pView, AV_ChangeMask mask)
virtual bool repopulateStyles (void)
UT_sint32 destroy (void)
void rebuildToolbar (UT_sint32 oldpos)
XAP_UnixAppgetApp (void)
XAP_FramegetFrame (void)
void setCurrentEvent (GdkEvent *event)
virtual void show (void)
virtual void hide (void)

Public Attributes

XAP_FontPreviewm_pFontPreview
gint m_pFontPreviewPositionX

Protected Member Functions

virtual GtkToolbarStyle getStyle (void)
virtual bool getDetachable (void)
virtual void setDetachable (gboolean)
virtual GtkBox * _getContainer ()
void _releaseListener (void)

Protected Attributes

XAP_UnixAppm_pUnixApp
XAP_Framem_pFrame
EV_UnixToolbar_ViewListenerm_pViewListener
AV_ListenerId m_lid
GdkEvent * m_eEvent
GtkWidget * m_wToolbar
GtkWidget * m_wHandleBox
GtkSizeGroup * m_wHSizeGroup
GtkSizeGroup * m_wVSizeGroup
UT_GenericVector< _wd * > m_vecToolbarWidgets

Constructor & Destructor Documentation

EV_UnixToolbar::EV_UnixToolbar ( XAP_UnixApp pUnixApp,
XAP_Frame pFrame,
const char *  szToolbarLayoutName,
const char *  szToolbarLabelSetName 
)
EV_UnixToolbar::~EV_UnixToolbar ( void   )  [virtual]

Member Function Documentation

GtkBox * EV_UnixToolbar::_getContainer (  )  [protected, virtual]
void EV_UnixToolbar::_releaseListener ( void   )  [protected]
UT_sint32 EV_UnixToolbar::destroy ( void   ) 

This method destroys the container widget here and returns the position in the overall vbox container.

References _getContainer(), _releaseListener(), XAP_Frame::getCurrentView(), getFrame(), m_lid, m_wHandleBox, AV_View::removeListener(), and UT_ASSERT.

Referenced by XAP_UnixFrameImpl::_rebuildToolbar().

XAP_UnixApp * EV_UnixToolbar::getApp ( void   ) 

References m_pUnixApp.

Referenced by s_proxy_activated(), and synthesize().

virtual bool EV_UnixToolbar::getDetachable ( void   )  [inline, protected, virtual]

Reimplemented in EV_GnomeToolbar.

Referenced by hide(), show(), and synthesize().

GtkToolbarStyle EV_UnixToolbar::getStyle ( void   )  [protected, virtual]
void EV_UnixToolbar::hide ( void   )  [virtual]

Reimplemented from EV_Toolbar.

References getDetachable(), m_wHandleBox, and m_wToolbar.

void EV_UnixToolbar::rebuildToolbar ( UT_sint32  oldpos  ) 

This method rebuilds the toolbar and places it in the position it previously occupied.

References _getContainer(), bindListenerToView(), XAP_Frame::getCurrentView(), getFrame(), m_wHandleBox, synthesize(), and UT_UNUSED.

void EV_UnixToolbar::setCurrentEvent ( GdkEvent *  event  )  [inline]

References m_eEvent.

Referenced by _wd::s_callback(), and _wd::s_new_table().

virtual void EV_UnixToolbar::setDetachable ( gboolean   )  [inline, protected, virtual]

Reimplemented in EV_GnomeToolbar.

Referenced by synthesize().

void EV_UnixToolbar::show ( void   )  [virtual]

Reimplemented from EV_Toolbar.

References getDetachable(), m_wHandleBox, and m_wToolbar.

bool EV_UnixToolbar::synthesize ( void   )  [virtual]

Reimplemented from EV_Toolbar.

References _getContainer(), ABI_FONT_COMBO, abi_font_combo_new(), abi_font_combo_set_fonts(), ABI_IS_FONT_COMBO, abi_stock_from_toolbar_id(), abi_table_new(), abi_table_set_labels(), ABITABLE_WIDGET, ABIWORD_COLOR_BACK, ABIWORD_COLOR_FORE, ABIWORD_INSERT_TABLE, UT_GenericVector< T >::addItem(), AP_TOOLBAR_ID_INSERT_TABLE, DELETEP, EV_TBIT_BOGUS, EV_TBIT_ColorBack, EV_TBIT_ColorFore, EV_TBIT_ComboBox, EV_TBIT_DropDown, EV_TBIT_EditText, EV_TBIT_GroupButton, EV_TBIT_MenuButton, EV_TBIT_PushButton, EV_TBIT_Spacer, EV_TBIT_StaticLabel, EV_TBIT_ToggleButton, EV_TLF_Normal, EV_TLF_Spacer, gchar, EV_Toolbar_ActionSet::getAction(), getApp(), EV_Toolbar_Control::getContents(), XAP_Toolbar_ControlFactory::getControl(), XAP_UnixApp::getControlFactory(), getDetachable(), XAP_Frame::getFrameImpl(), EV_Toolbar_Label::getIconName(), UT_GenericVector< T >::getItemCount(), EV_Toolbar_Action::getItemType(), EV_Toolbar_LabelSet::getLabel(), EV_Toolbar_Layout::getLayoutItem(), EV_Toolbar_Layout::getLayoutItemCount(), XAP_Frame::getMainMenu(), EV_UnixMenuBar::getMenuBar(), UT_GenericVector< T >::getNthItem(), EV_Toolbar_Label::getStatusMsg(), XAP_UnixApp::getStringSet(), getStyle(), XAP_App::getToolbarActionSet(), EV_Toolbar_Action::getToolbarId(), EV_Toolbar_LayoutItem::getToolbarId(), EV_Toolbar_Label::getToolbarLabel(), EV_Toolbar_LayoutItem::getToolbarLayoutFlags(), EV_Toolbar_Label::getToolTip(), XAP_StringSet::getValueUTF8(), GTK_COMBO_BOX_TEXT, gtk_combo_box_text_append_text(), gtk_combo_box_text_new(), gtk_combo_box_text_new_with_entry(), _wd::m_handlerId, _wd::m_id, m_pFrame, EV_Toolbar::m_pToolbarLabelSet, EV_Toolbar::m_pToolbarLayout, m_pUnixApp, m_vecToolbarWidgets, m_wHandleBox, _wd::m_widget, m_wToolbar, m_wVSizeGroup, EV_Toolbar_Control::populate(), PROP_HANDLER_ID, s, s_AbiTBTargets, s_back_color_changed(), _wd::s_callback(), _wd::s_combo_changed(), _wd::s_drag_begin(), _wd::s_drag_drop(), _wd::s_focus_out_event_cb(), _wd::s_font_popup_closed(), _wd::s_font_popup_opened(), _wd::s_font_prelight(), s_fore_color_changed(), pt_PieceTable::s_getLocalisedStyleName(), _wd::s_insert_text_cb(), _wd::s_key_press_event_cb(), _wd::s_new_table(), setDetachable(), setDragIcon(), style, toolbar_append_button(), toolbar_append_item(), toolbar_append_separator(), toolbar_append_toggle(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_continue_if_fail, UT_DEBUGMSG, and v.

Referenced by rebuildToolbar().


Member Data Documentation

GdkEvent* EV_UnixToolbar::m_eEvent [protected]

Referenced by setCurrentEvent().

GtkSizeGroup* EV_UnixToolbar::m_wHSizeGroup [protected]
GtkSizeGroup* EV_UnixToolbar::m_wVSizeGroup [protected]

Referenced by synthesize(), and ~EV_UnixToolbar().


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