mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
77a31ee0f2
commit
f27d015fa4
@ -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)
|
||||
|
@ -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_;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user