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

Defines | Enumerations | Functions | Variables

paint-selector.cpp File Reference

#include <cstring>
#include <string>
#include <gtk/gtkhbox.h>
#include <gtk/gtkradiobutton.h>
#include <gtk/gtkframe.h>
#include <gtk/gtklabel.h>
#include <gtk/gtkoptionmenu.h>
#include <gtk/gtktooltips.h>
#include <gtk/gtkmenuitem.h>
#include <gtk/gtkseparatormenuitem.h>
#include "../sp-pattern.h"
#include <glibmm/i18n.h>
#include "../widgets/icon.h"
#include "widgets/widget-sizes.h"
#include "xml/repr.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 <style.h>
#include "svg/svg-color.h"
#include "svg/css-ostringstream.h"
#include "path-prefix.h"
#include "io/sys.h"
#include "helper/stock-items.h"
#include "ui/icon-names.h"
#include "widgets/swatch-selector.h"
#include "paint-selector.h"
Include dependency graph for paint-selector.cpp:

Go to the source code of this file.

Defines

#define noSP_PS_VERBOSE
#define XPAD   4
#define YPAD   1

Enumerations

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

Functions

static SPGradientSelectorgetGradientFromData (SPPaintSelector const *psel)
GSList * ink_pattern_list_get (SPDocument *source)
static GtkWidget * ink_pattern_menu (GtkWidget *mnu)
static void ink_pattern_menu_populate_menu (GtkWidget *m, SPDocument *doc)
static bool isPaintModeGradient (SPPaintSelector::Mode mode)
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 *, SPPaintSelector *psel)
static void sp_paint_selector_color_grabbed (SPColorSelector *, SPPaintSelector *psel)
static void sp_paint_selector_color_released (SPColorSelector *, SPPaintSelector *psel)
static void sp_paint_selector_destroy (GtkObject *object)
static void sp_paint_selector_fillrule_toggled (GtkToggleButton *tb, SPPaintSelector *psel)
GType sp_paint_selector_get_type (void)
static void sp_paint_selector_gradient_changed (SPColorSelector *, SPPaintSelector *psel)
static void sp_paint_selector_gradient_dragged (SPColorSelector *, SPPaintSelector *psel)
static void sp_paint_selector_gradient_grabbed (SPColorSelector *, SPPaintSelector *psel)
static void sp_paint_selector_gradient_released (SPColorSelector *, SPPaintSelector *psel)
static void sp_paint_selector_init (SPPaintSelector *slider)
SPPaintSelectorsp_paint_selector_new (FillOrStroke kind)
static void sp_paint_selector_set_mode_color (SPPaintSelector *psel, SPPaintSelector::Mode mode)
static void sp_paint_selector_set_mode_empty (SPPaintSelector *psel)
static void sp_paint_selector_set_mode_gradient (SPPaintSelector *psel, SPPaintSelector::Mode 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, SPPaintSelector::Mode mode)
static void sp_paint_selector_set_mode_swatch (SPPaintSelector *psel, SPPaintSelector::Mode 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, gchar const *px, SPPaintSelector::Mode mode, GtkTooltips *tt, gchar const *tip)
static void sp_paint_selector_style_button_toggled (GtkToggleButton *tb, SPPaintSelector *psel)
static void sp_pattern_list_from_doc (GtkWidget *m, SPDocument *, SPDocument *source, SPDocument *)
 Pick up all patterns from source, except those that are in current_doc (if non-NULL), and add items to the pattern menu.
static void sp_pattern_menu_build (GtkWidget *m, GSList *pattern_list, SPDocument *)
static void sp_psel_pattern_change (GtkWidget *, SPPaintSelector *psel)
static void sp_psel_pattern_destroy (GtkWidget *widget, SPPaintSelector *)

Variables

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

Detailed Description

SPPaintSelector: Generic paint selector widget.

Definition in file paint-selector.cpp.


Generated by  Doxygen 1.6.0   Back to index