diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-10-06 18:45:09 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-10-06 18:45:09 +0000 |
| commit | 86343e070a018d6636c38b1e74ea8cf7b1c4af77 (patch) | |
| tree | e4c772a236d5285a3d2a1eec42a0e9f1f625f464 /src | |
| parent | Order of message setting for tools (diff) | |
| download | inkscape-86343e070a018d6636c38b1e74ea8cf7b1c4af77.tar.gz inkscape-86343e070a018d6636c38b1e74ea8cf7b1c4af77.zip | |
Add 3d Box displayName and description
(bzr r12665)
Diffstat (limited to 'src')
| -rw-r--r-- | src/box3d.cpp | 9 | ||||
| -rw-r--r-- | src/box3d.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp index 193051ee5..ff99fccba 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -1325,6 +1325,15 @@ SPGroup *box3d_convert_to_group(SPBox3D *box) return SP_GROUP(doc->getObjectByRepr(grepr)); } +const char *SPBox3D::displayName() { + return _("3D Box"); +} + +gchar *SPBox3D::description() { + // We could put more details about the 3d box here + return g_strdup(""); +} + static inline void box3d_push_back_corner_pair(SPBox3D *box, std::list<std::pair<Geom::Point, Geom::Point> > &pts, int c1, int c2) { pts.push_back(std::make_pair(box3d_get_corner_screen(box, c1, false), diff --git a/src/box3d.h b/src/box3d.h index be5f1926c..1dec1e792 100644 --- a/src/box3d.h +++ b/src/box3d.h @@ -61,6 +61,8 @@ public: virtual const char* display_name(); virtual Geom::Affine set_transform(Geom::Affine const &transform); virtual void convert_to_guides(); + virtual const char* displayName(); + virtual gchar *description(); }; void box3d_position_set (SPBox3D *box); |
