Backport graphics tooltip

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40812 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2012-02-29 18:54:26 +00:00
parent adf46ceb55
commit 435dce17c0
3 changed files with 10 additions and 1 deletions

View File

@ -1079,6 +1079,12 @@ string InsetGraphics::params2string(InsetGraphicsParams const & params,
return data.str(); return data.str();
} }
docstring InsetGraphics::toolTip(BufferView const &, int, int) const
{
return from_utf8(params().filename.onlyFileName());
}
namespace graphics { namespace graphics {
void getGraphicsGroups(Buffer const & b, set<string> & ids) void getGraphicsGroups(Buffer const & b, set<string> & ids)

View File

@ -126,6 +126,8 @@ private:
InsetGraphicsParams params_; InsetGraphicsParams params_;
/// holds the entity name that defines the graphics location (SGML). /// holds the entity name that defines the graphics location (SGML).
docstring const graphic_label; 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. /// The thing that actually draws the image on LyX's screen.
RenderGraphic * graphic_; RenderGraphic * graphic_;
}; };

View File

@ -34,7 +34,8 @@ What's new
* USER INTERFACE * USER INTERFACE
- - Graphics insets show filename as a tooltip now.
* DOCUMENTATION AND LOCALIZATION * DOCUMENTATION AND LOCALIZATION