Use Minimalistic for branches

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19973 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2007-09-01 11:40:09 +00:00
parent 087fc75a9d
commit ed6f900552
4 changed files with 19 additions and 3 deletions

View File

@ -82,6 +82,7 @@ End
InsetLayout ERT
LabelString ERT
Decoration minimalistic
Font
Color latex
Family typewriter
@ -92,3 +93,12 @@ InsetLayout ERT
EndFont
End
InsetLayout Branch
Decoration minimalistic
LabelFont
Color Red
Size Small
EndFont
End

View File

@ -46,6 +46,7 @@ InsetBranch::InsetBranch(BufferParams const & bp,
InsetBranchParams const & params)
: InsetCollapsable(bp), params_(params)
{
setLayout(bp);
init();
}

View File

@ -59,10 +59,10 @@ InsetCollapsable::Geometry InsetCollapsable::geometry() const
return ButtonOnly;
case Minimalistic:
return NoButton;
return status() == Open ? NoButton : ButtonOnly ;
case Conglomerate:
return status() == Open ? SubLabel : Corners;
return status() == Open ? SubLabel : Corners ;
}
// dummy return value to shut down a warning,
@ -261,6 +261,11 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
button_dim.y2 = top + dimc.height();
pi.pain.buttonText(xx, top + dimc.asc, layout_.labelstring, layout_.labelfont, mouse_hover_);
} else {
button_dim.x1 = 0;
button_dim.y1 = 0;
button_dim.x2 = 0;
button_dim.y2 = 0;
}
int textx, texty;

View File

@ -92,7 +92,7 @@ public:
* -------------+-------------------------------
* Classic | *) TopButton, <--x) ButtonOnly
* | LeftButton
* Minimalistic | NoButton NoButton
* Minimalistic | ButtonOnly NoButton
* Conglomerate | SubLabel Corners
* ---------------------------------------------
* *) toggled by openinlined_