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

clonetiler.cpp File Reference


Detailed Description

Clone tiling dialog

Definition in file clonetiler.cpp.

#include <glib/gmem.h>
#include <gtk/gtk.h>
#include <glibmm/i18n.h>
#include "application/application.h"
#include "application/editor.h"
#include "../desktop.h"
#include "../desktop-handles.h"
#include "dialog-events.h"
#include "display/nr-arena.h"
#include "display/nr-arena-item.h"
#include "../document.h"
#include "../filter-chemistry.h"
#include "helper/unit-menu.h"
#include "helper/units.h"
#include "helper/window.h"
#include "../inkscape.h"
#include "../interface.h"
#include "../macros.h"
#include "../message-stack.h"
#include "preferences.h"
#include "../selection.h"
#include "../sp-filter.h"
#include "../sp-namedview.h"
#include "../sp-use.h"
#include "../style.h"
#include "svg/svg-color.h"
#include "svg/svg.h"
#include "ui/icon-names.h"
#include "ui/widget/color-picker.h"
#include "unclump.h"
#include "../verbs.h"
#include "widgets/icon.h"
#include "xml/repr.h"

Go to the source code of this file.

Defines

#define MIN_ONSCREEN_DISTANCE   50
#define SB_MARGIN   1
#define VB_MARGIN   4

Enumerations

enum  {
  PICK_COLOR, PICK_OPACITY, PICK_R, PICK_G,
  PICK_B, PICK_H, PICK_S, PICK_L
}
enum  {
  TILE_P1, TILE_P2, TILE_PM, TILE_PG,
  TILE_CM, TILE_PMM, TILE_PMG, TILE_PGG,
  TILE_CMM, TILE_P4, TILE_P4M, TILE_P4G,
  TILE_P3, TILE_P31M, TILE_P3M1, TILE_P6,
  TILE_P6M
}

Functions

static void clonetiler_apply (GtkWidget *, void *)
static void clonetiler_change_selection (Inkscape::Application *, Inkscape::Selection *selection, GtkWidget *dlg)
static GtkWidget * clonetiler_checkbox (GtkTooltips *tt, const char *tip, const char *attr)
static void clonetiler_checkbox_toggled (GtkToggleButton *tb, gpointer *data)
void clonetiler_dialog (void)
static gboolean clonetiler_dialog_delete (GtkObject *, GdkEvent *, gpointer)
static void clonetiler_dialog_destroy (GtkObject *, gpointer)
static void clonetiler_disconnect_gsignal (GObject *widget, gpointer source)
static void clonetiler_do_pick_toggled (GtkToggleButton *tb, gpointer)
static void clonetiler_external_change (Inkscape::Application *, GtkWidget *dlg)
static void clonetiler_fill_height_changed (GtkAdjustment *adj, GtkWidget *u)
static void clonetiler_fill_width_changed (GtkAdjustment *adj, GtkWidget *u)
static Geom::Matrix clonetiler_get_transform (int type, int i, int j, double cx, double cy, double w, double h, double shiftx_per_i, double shifty_per_i, double shiftx_per_j, double shifty_per_j, double shiftx_rand, double shifty_rand, double shiftx_exp, double shifty_exp, int shiftx_alternate, int shifty_alternate, int shiftx_cumulate, int shifty_cumulate, int shiftx_excludew, int shifty_excludeh, double scalex_per_i, double scaley_per_i, double scalex_per_j, double scaley_per_j, double scalex_rand, double scaley_rand, double scalex_exp, double scaley_exp, double scalex_log, double scaley_log, int scalex_alternate, int scaley_alternate, int scalex_cumulate, int scaley_cumulate, double rotate_per_i, double rotate_per_j, double rotate_rand, int rotate_alternatei, int rotate_alternatej, int rotate_cumulatei, int rotate_cumulatej)
static bool clonetiler_is_a_clone_of (SPObject *tile, SPObject *obj)
static void clonetiler_keep_bbox_toggled (GtkToggleButton *tb, gpointer)
static GtkWidget * clonetiler_new_tab (GtkWidget *nb, const gchar *label)
static guint clonetiler_number_of_clones (SPObject *obj)
static void clonetiler_pick_switched (GtkToggleButton *, gpointer data)
static void clonetiler_pick_to (GtkToggleButton *tb, gpointer data)
static void clonetiler_remove (GtkWidget *, void *, bool do_undo=true)
static void clonetiler_reset (GtkWidget *, void *)
static void clonetiler_reset_recursive (GtkWidget *w)
static GtkWidget * clonetiler_spinbox (GtkTooltips *tt, const char *tip, const char *attr, double lower, double upper, const gchar *suffix, bool exponent=false)
static void clonetiler_switch_to_create (GtkToggleButton *, GtkWidget *dlg)
static void clonetiler_switch_to_fill (GtkToggleButton *, GtkWidget *dlg)
static void clonetiler_symgroup_changed (GtkMenuItem *, gpointer data)
static void clonetiler_table_attach (GtkWidget *table, GtkWidget *widget, float align, int row, int col)
static GtkWidget * clonetiler_table_x_y_rand (int values)
static void clonetiler_trace_finish ()
static void clonetiler_trace_hide_tiled_clones_recursively (SPObject *from)
static guint32 clonetiler_trace_pick (Geom::Rect box)
static void clonetiler_trace_setup (SPDocument *doc, gdouble zoom, SPItem *original)
static void clonetiler_unclump (GtkWidget *, void *)
static void clonetiler_value_changed (GtkAdjustment *adj, gpointer data)
static void clonetiler_xy_changed (GtkAdjustment *adj, gpointer data)
static void on_delete ()
static void on_picker_color_changed (guint rgba)
static double randomize01 (double val, double rand)
static Geom::Rect transform_rect (Geom::Rect const &r, Geom::Matrix const &m)

Variables

static sigc::connection _color_changed_connection
static sigc::connection _desktop_activated_connection
static sigc::connection _dialogs_hidden_connection
static sigc::connection _dialogs_unhidden_connection
static sigc::connection _shutdown_connection
static
Inkscape::UI::Widget::ColorPicker * 
color_picker
static GtkWidget * dlg = NULL
static gint h = 0
static Glib::ustring const prefs_path = "/dialogs/clonetiler/"
static GtkSizeGroup * table_row_labels = NULL
static NRArena const * trace_arena = NULL
static SPDocumenttrace_doc
static NRArenaItem * trace_root
static unsigned trace_visionkey
static gdouble trace_zoom
static gint w = 0
static win_data wd
static gint x = -1000
static gint y = -1000


Generated by  Doxygen 1.6.0   Back to index