Add tooltip for graphics insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40796 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2012-02-25 23:05:28 +00:00
parent 77a31ee0f2
commit f27d015fa4
2 changed files with 8 additions and 0 deletions

View File

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

View 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_;
};