Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

paint-selector.cpp File Reference


Detailed Description

SPPaintSelector: Generic paint selector widget.

Definition in file paint-selector.cpp.

#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <libnr/nr-values.h>
#include <libnr/nr-matrix.h>
#include <libnr/nr-matrix-div.h>
#include <libnr/nr-matrix-fns.h>
#include <libnr/nr-matrix-ops.h>
#include <gtk/gtksignal.h>
#include <gtk/gtkhbox.h>
#include <gtk/gtkradiobutton.h>
#include <gtk/gtkhseparator.h>
#include <gtk/gtkframe.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkoptionmenu.h>
#include <gtk/gtktooltips.h>
#include <gtk/gtkmenuitem.h>
#include <gtk/gtkimage.h>
#include "../sp-item.h"
#include "../sp-pattern.h"
#include <glibmm/i18n.h>
#include "../widgets/icon.h"
#include "../inkscape-stock.h"
#include "widgets/widget-sizes.h"
#include "xml/repr.h"
#include "sp-color-selector.h"
#include "sp-color-notebook.h"
#include "sp-linear-gradient-fns.h"
#include "sp-radial-gradient-fns.h"
#include "gradient-selector.h"
#include <inkscape.h>
#include <document-private.h>
#include <desktop-style.h>
#include <selection.h>
#include <style.h>
#include "svg/svg.h"
#include "svg/css-ostringstream.h"
#include "paint-selector.h"

Go to the source code of this file.

Defines

#define __SP_PAINT_SELECTOR_C__
#define noSP_PS_VERBOSE
#define XPAD   4
#define YPAD   1

Enumerations

enum  {
  MODE_CHANGED, GRABBED, DRAGGED, RELEASED,
  CHANGED, FILLRULE_CHANGED, LAST_SIGNAL
}

Functions

static GtkWidget * ink_pattern_menu (GtkWidget *mnu)
void sp_gradient_selector_attrs_to_gradient (SPGradient *gr, SPPaintSelector *psel)
static void sp_paint_selector_class_init (SPPaintSelectorClass *klass)
static void sp_paint_selector_clear_frame (SPPaintSelector *psel)
static void sp_paint_selector_color_changed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_color_dragged (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_color_grabbed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_color_released (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_destroy (GtkObject *object)
static void sp_paint_selector_fillrule_toggled (GtkToggleButton *tb, SPPaintSelector *psel)
void sp_paint_selector_get_color_alpha (SPPaintSelector *psel, SPColor *color, gfloat *alpha)
void sp_paint_selector_get_gradient_properties (SPPaintSelector *psel, SPGradientUnits *units, SPGradientSpread *spread)
SPGradientsp_paint_selector_get_gradient_vector (SPPaintSelector *psel)
SPPattern * sp_paint_selector_get_pattern (SPPaintSelector *psel)
GtkType sp_paint_selector_get_type (void)
static void sp_paint_selector_gradient_changed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_gradient_dragged (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_gradient_grabbed (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_gradient_released (SPColorSelector *csel, SPPaintSelector *psel)
static void sp_paint_selector_init (SPPaintSelector *slider)
GtkWidget * sp_paint_selector_new (bool is_fill)
void sp_paint_selector_set_color_alpha (SPPaintSelector *psel, const SPColor *color, float alpha)
void sp_paint_selector_set_fillrule (SPPaintSelector *psel, SPPaintSelectorFillRule fillrule)
void sp_paint_selector_set_flat_color (SPPaintSelector *psel, SPDesktop *desktop, const gchar *color_property, const gchar *opacity_property)
void sp_paint_selector_set_gradient_linear (SPPaintSelector *psel, SPGradient *vector)
void sp_paint_selector_set_gradient_properties (SPPaintSelector *psel, SPGradientUnits units, SPGradientSpread spread)
void sp_paint_selector_set_gradient_radial (SPPaintSelector *psel, SPGradient *vector)
void sp_paint_selector_set_mode (SPPaintSelector *psel, SPPaintSelectorMode mode)
static void sp_paint_selector_set_mode_color (SPPaintSelector *psel, SPPaintSelectorMode mode)
static void sp_paint_selector_set_mode_empty (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_gradient (SPPaintSelector *psel, SPPaintSelectorMode mode)
static void sp_paint_selector_set_mode_multiple (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_none (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_pattern (SPPaintSelector *psel, SPPaintSelectorMode mode)
static void sp_paint_selector_set_mode_unset (SPPaintSelector *psel)
static void sp_paint_selector_set_style_buttons (SPPaintSelector *psel, GtkWidget *active)
void sp_paint_selector_show_fillrule (SPPaintSelector *psel, bool is_fill)
static GtkWidget * sp_paint_selector_style_button_add (SPPaintSelector *psel, const gchar *px, SPPaintSelectorMode mode, GtkTooltips *tt, const gchar *tip)
static void sp_paint_selector_style_button_toggled (GtkToggleButton *tb, SPPaintSelector *psel)
static void sp_psel_pattern_change (GtkWidget *widget, SPPaintSelector *psel)
static void sp_psel_pattern_destroy (GtkWidget *widget, SPPaintSelector *psel)
SPPaintSelectorMode sp_style_determine_paint_selector_mode (SPStyle *style, bool isfill)
void sp_update_pattern_list (SPPaintSelector *psel, SPPattern *pattern)

Variables

static GtkVBoxClass * parent_class
static guint psel_signals [LAST_SIGNAL] = {0}


Generated by  Doxygen 1.6.0   Back to index