diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-11-29 22:42:44 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-11-29 22:42:44 +0000 |
| commit | e3795e5386883dc41203d7d8aa23a9ac7daeba71 (patch) | |
| tree | 7aa0ba8641f5e3e08a545e0bd8de0fe868a7c66d /src/display/canvas-grid.h | |
| parent | Adding icon for color management (diff) | |
| download | inkscape-e3795e5386883dc41203d7d8aa23a9ac7daeba71.tar.gz inkscape-e3795e5386883dc41203d7d8aa23a9ac7daeba71.zip | |
show gridtype name in document properties
(bzr r4145)
Diffstat (limited to 'src/display/canvas-grid.h')
| -rw-r--r-- | src/display/canvas-grid.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/display/canvas-grid.h b/src/display/canvas-grid.h index 3c19d39d8..f05d3b5cb 100644 --- a/src/display/canvas-grid.h +++ b/src/display/canvas-grid.h @@ -6,7 +6,7 @@ * * Generic (and quite unintelligent) grid item for gnome canvas * - * Copyright (C) Johan Engelen 2006 <johan@shouraizou.nl> + * Copyright (C) Johan Engelen 2006-2007 <johan@shouraizou.nl> * Copyright (C) Lauris Kaplinski 2000 * */ @@ -67,9 +67,12 @@ GtkType grid_canvasitem_get_type (void); class CanvasGrid { public: - CanvasGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument *in_doc); virtual ~CanvasGrid(); + // TODO: see effect.h and effect.cpp from live_effects how to link enums to SVGname to typename properly. (johan) + const char * getName(); + const char * getSVGName(); + GridType getGridType(); static const char * getName(GridType type); static const char * getSVGName(GridType type); static GridType getGridTypeFromSVGName(const char * typestr); @@ -96,16 +99,20 @@ public: static void on_repr_attr_changed (Inkscape::XML::Node * repr, const gchar *key, const gchar *oldval, const gchar *newval, bool is_interactive, void * data); protected: + CanvasGrid(SPNamedView * nv, Inkscape::XML::Node * in_repr, SPDocument *in_doc, GridType type); + GSList * canvasitems; // list of created canvasitems SPNamedView * namedview; Gtk::VBox vbox; + Gtk::Label namelabel; + + GridType gridtype; private: CanvasGrid(const CanvasGrid&); CanvasGrid& operator=(const CanvasGrid&); - }; |
