class InsetCollapsable : public InsetText {
public:
///
- InsetCollapsable(Buffer const &, InsetText::UsePlain = InsetText::PlainLayout);
+ InsetCollapsable(Buffer *, InsetText::UsePlain = InsetText::PlainLayout);
///
InsetCollapsable(InsetCollapsable const & rhs);
///
///
bool hasSettings() const { return true; }
/// can we go further down on mouse click?
- bool descendable() const;
+ bool descendable(BufferView const & bv) const;
///
void setLabel(docstring const & l);
///
bool isOpen(BufferView const & bv) const
{ return geometry(bv) != ButtonOnly; }
///
+ enum CollapseStatus {
+ Collapsed,
+ Open
+ };
+ ///
+ virtual void setStatus(Cursor & cur, CollapseStatus st);
+ ///
CollapseStatus status(BufferView const & bv) const;
/** Of the old CollapseStatus we only keep the values
* Open and Collapsed.
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///
- void setStatus(Cursor & cur, CollapseStatus st);
- ///
bool setMouseHover(bool mouse_hover);
///
- ColorCode backgroundColor() const { return getLayout().bgcolor(); }
+ ColorCode backgroundColor(PainterInfo const &) const
+ { return getLayout().bgcolor(); }
///
ColorCode labelColor() const { return getLayout().labelfont().color(); }
///
virtual bool usePlainLayout() const { return true; }
///
virtual docstring contextMenu(BufferView const & bv, int x, int y) const;
+ ///
+ docstring floatName(std::string const & type) const;
protected:
///
void doDispatch(Cursor & cur, FuncRequest & cmd);
///
Inset * editXY(Cursor & cur, int x, int y);
///
- docstring floatName(std::string const & type) const;
- ///
mutable CollapseStatus status_;
private:
///