Classes | Defines | Functions | Variables

ev_UnixToolbar.cpp File Reference

#include "ut_compiler.h"
#include <string.h>
#include <stdlib.h>
#include <string>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include <goffice/gtk/go-combo-box.h>
#include <goffice/gtk/go-combo-color.h>
#include "ap_Features.h"
#include "ut_assert.h"
#include "ut_debugmsg.h"
#include "ut_string.h"
#include "ev_UnixToolbar.h"
#include "xap_Types.h"
#include "xap_UnixApp.h"
#include "xap_UnixFrameImpl.h"
#include "ev_Toolbar_Actions.h"
#include "ev_Toolbar_Layouts.h"
#include "ev_Toolbar_Labels.h"
#include "ev_Toolbar_Control.h"
#include "ev_EditEventMapper.h"
#include "xap_UnixTableWidget.h"
#include "ev_UnixToolbar_ViewListener.h"
#include "xav_View.h"
#include "xap_Prefs.h"
#include "fv_View.h"
#include "xap_EncodingManager.h"
#include "xap_UnixDialogHelper.h"
#include "xap_UnixFontPreview.h"
#include "xap_FontPreview.h"
#include "ut_string_class.h"
#include "pt_PieceTable.h"
#include "ap_Toolbar_Id.h"
#include "ap_UnixStockIcons.h"
#include "ev_UnixFontCombo.h"

Classes

class  _wd

Defines

#define PROP_HANDLER_ID   "handler-id"
#define UINT_RGBA_R   GO_COLOR_UINT_R
#define UINT_RGBA_G   GO_COLOR_UINT_G
#define UINT_RGBA_B   GO_COLOR_UINT_B
#define BUILTIN_INDEX   "builtin-index"

Functions

static void s_proxy_activated (GtkMenuItem *, _wd *wd)
static GtkWidget * toolbar_append_item_with_proxy (GtkToolbar *toolbar, GtkWidget *widget, const char *text, gboolean show, const char *action_name, gpointer data)
static GtkWidget * toolbar_append_item (GtkToolbar *toolbar, GtkWidget *widget, const char *text, gboolean show)
static GtkWidget * toolbar_append_button (GtkToolbar *toolbar, const gchar *icon_name, const gchar *label, const gchar *tooltip, GCallback handler, gpointer data, gulong *handler_id)
static GtkWidget * toolbar_append_toggle (GtkToolbar *toolbar, const gchar *icon_name, const gchar *label, const gchar *tooltip, GCallback handler, gpointer data, gboolean show, gulong *handler_id)
static void toolbar_append_separator (GtkToolbar *toolbar)
static gboolean combo_box_set_active_text (GtkComboBox *combo, const gchar *text, gulong handler_id)
static void s_fore_color_changed (GOComboColor *, GOColor color, gboolean, gboolean, gboolean, _wd *wd)
static void s_back_color_changed (GOComboColor *, GOColor color, gboolean, gboolean, gboolean is_default, _wd *wd)
static void setDragIcon (GtkWidget *wwd, GtkImage *img)

Variables

static const GtkTargetEntry s_AbiTBTargets [] = {{(gchar*)"abi-toolbars",0,0}}

Define Documentation

#define BUILTIN_INDEX   "builtin-index"
#define PROP_HANDLER_ID   "handler-id"
#define UINT_RGBA_B   GO_COLOR_UINT_B
#define UINT_RGBA_G   GO_COLOR_UINT_G
#define UINT_RGBA_R   GO_COLOR_UINT_R

Function Documentation

static gboolean combo_box_set_active_text ( GtkComboBox *  combo,
const gchar *  text,
gulong  handler_id 
) [static]

Set active text in a simple combobox.

References ABI_FONT_COMBO, abi_font_combo_insert_font(), ABI_IS_FONT_COMBO, gchar, and PROP_HANDLER_ID.

Referenced by EV_UnixToolbar::refreshToolbar().

static void s_back_color_changed ( GOComboColor *  ,
GOColor  color,
gboolean  ,
gboolean  ,
gboolean  is_default,
_wd wd 
) [static]
static void s_fore_color_changed ( GOComboColor *  ,
GOColor  color,
gboolean  ,
gboolean  ,
gboolean  ,
_wd wd 
) [static]
static void s_proxy_activated ( GtkMenuItem *  item,
_wd wd 
) [static]
static void setDragIcon ( GtkWidget *  wwd,
GtkImage *  img 
) [static]

References gchar.

Referenced by EV_UnixToolbar::synthesize().

static GtkWidget* toolbar_append_button ( GtkToolbar *  toolbar,
const gchar *  icon_name,
const gchar *  label,
const gchar *  tooltip,
GCallback  handler,
gpointer  data,
gulong *  handler_id 
) [static]

Append a GtkToolButton to the toolbar.

References abi_stock_from_toolbar_id(), gchar, and toolbar_append_item().

Referenced by EV_UnixToolbar::synthesize().

static GtkWidget* toolbar_append_item ( GtkToolbar *  toolbar,
GtkWidget *  widget,
const char *  text,
gboolean  show 
) [static]

Append a widget to the toolbar, wrap it in a GtkToolItem if it isn't one already.

References toolbar_append_item_with_proxy().

Referenced by EV_UnixToolbar::synthesize(), toolbar_append_button(), and toolbar_append_toggle().

static GtkWidget* toolbar_append_item_with_proxy ( GtkToolbar *  toolbar,
GtkWidget *  widget,
const char *  text,
gboolean  show,
const char *  action_name,
gpointer  data 
) [static]
static void toolbar_append_separator ( GtkToolbar *  toolbar  )  [static]

Append a GtkSeparatorToolItem to the toolbar.

Referenced by EV_UnixToolbar::synthesize().

static GtkWidget* toolbar_append_toggle ( GtkToolbar *  toolbar,
const gchar *  icon_name,
const gchar *  label,
const gchar *  tooltip,
GCallback  handler,
gpointer  data,
gboolean  show,
gulong *  handler_id 
) [static]

Append a GtkToggleToolButton to the toolbar.

References abi_stock_from_toolbar_id(), gchar, and toolbar_append_item().

Referenced by EV_UnixToolbar::synthesize().


Variable Documentation

const GtkTargetEntry s_AbiTBTargets[] = {{(gchar*)"abi-toolbars",0,0}} [static]