]> git.lyx.org Git - features.git/commitdiff
Backport graphics tooltip
authorPavel Sanda <sanda@lyx.org>
Wed, 29 Feb 2012 18:54:26 +0000 (18:54 +0000)
committerPavel Sanda <sanda@lyx.org>
Wed, 29 Feb 2012 18:54:26 +0000 (18:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40812 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetGraphics.cpp
src/insets/InsetGraphics.h
status.20x

index dc79a017e0c763e279c9c0ebff1b72857e9c9d30..8a752e4ce8cd9eba87d5cf89c2c55b9c716b003e 100644 (file)
@@ -1079,6 +1079,12 @@ string InsetGraphics::params2string(InsetGraphicsParams const & params,
        return data.str();
 }
 
+
+docstring InsetGraphics::toolTip(BufferView const &, int, int) const
+{
+       return from_utf8(params().filename.onlyFileName());
+}
+
 namespace graphics {
 
 void getGraphicsGroups(Buffer const & b, set<string> & ids)
index 2a04f0c33cf469d8070c7f0eb50dfc33a8373462..cbd1c587b468dd38022aed1a47eca6b43f95a64a 100644 (file)
@@ -126,6 +126,8 @@ private:
        InsetGraphicsParams params_;
        /// holds the entity name that defines the graphics location (SGML).
        docstring const graphic_label;
+       ///
+       docstring toolTip(BufferView const & bv, int x, int y) const;
        /// The thing that actually draws the image on LyX's screen.
        RenderGraphic * graphic_;
 };
index a2651710b3fb5715a02fa2cbf3b6cbcb42fdb5bf..080fbc18605f2ff42bcabf175b967c29b72c7b13 100644 (file)
@@ -34,7 +34,8 @@ What's new
 
 * USER INTERFACE
 
--
+- Graphics insets show filename as a tooltip now.
+
 
 
 * DOCUMENTATION AND LOCALIZATION