mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
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:
parent
adf46ceb55
commit
435dce17c0
@ -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)
|
||||||
|
@ -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_;
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user