Classes | Defines | Functions | Variables

ev_UnixToolbar.cpp File Reference

#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 "ap_Toolbar_Id.h"
#include "ap_UnixStockIcons.h"
#include "ev_UnixFontCombo.h"

Classes

class  _wd

Defines

#define PROP_HANDLER_ID   "handler-id"
#define BUILTIN_INDEX   "builtin-index"

Functions

static void s_proxy_activated (GtkAction *action, _wd *wd)
static GtkWidget * toolbar_append_item (GtkToolbar *toolbar, GtkWidget *widget, const char *text, const char *private_text, gboolean show, const char *action_name, const char *stock_id, gpointer data)
static GtkWidget * toolbar_append_button (GtkToolbar *toolbar, const gchar *icon_name, const gchar *label, const gchar *tooltip, const gchar *private_text, GCallback handler, gpointer data, gulong *handler_id)
static GtkWidget * toolbar_append_toggle (GtkToolbar *toolbar, const gchar *icon_name, const gchar *label, const gchar *tooltip, const gchar *private_text, 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"

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.

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 ( GtkAction *  action,
_wd wd 
) [static]
static void setDragIcon ( GtkWidget *  wwd,
GtkImage *  img 
) [static]

References gchar.

static GtkWidget* toolbar_append_button ( GtkToolbar *  toolbar,
const gchar *  icon_name,
const gchar *  label,
const gchar *  tooltip,
const gchar *  private_text,
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().

static GtkWidget* toolbar_append_item ( GtkToolbar *  toolbar,
GtkWidget *  widget,
const char *  text,
const char *  private_text,
gboolean  show,
const char *  action_name,
const char *  stock_id,
gpointer  data 
) [static]

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

References s_proxy_activated(), and UT_ASSERT.

Referenced by toolbar_append_button(), and toolbar_append_toggle().

static void toolbar_append_separator ( GtkToolbar *  toolbar  )  [static]

Append a GtkSeparatorToolItem to the toolbar.

static GtkWidget* toolbar_append_toggle ( GtkToolbar *  toolbar,
const gchar *  icon_name,
const gchar *  label,
const gchar *  tooltip,
const gchar *  private_text,
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().


Variable Documentation

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