31 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_ACCORDIONWIDGET_CONTENTPANE_H
32 #define BORNAGAIN_GUI_COREGUI_VIEWS_ACCORDIONWIDGET_CONTENTPANE_H
36 #include <QHBoxLayout>
39 #include <QPropertyAnimation>
41 #include <QStyleOption>
The ClickableFrame class.
void setHeaderTooltip(QString tooltip)
Set header tooltip.
void clicked()
Clicked signal is emitted when the header is clicked.
QString getHeaderStylesheet()
Get the current header style sheet.
void setHeaderStylesheet(QString stylesheet)
Set a stylesheet for the header frame.
QString getHeaderTooltip()
Get the header tooltip.
int getMaximumHeight()
Get the maximum height of the content pane container frame.
int containerAnimationMaxHeight
void closeContentPane()
Close the content pane.
uint getAnimationDuration()
Get the duration of the open, close animation.
ContentPane(QString header, QWidget *parent=0)
ContentPane constructor.
QString getHeader()
Return the header of the content pane.
int contentPaneFrameStyle
QFrame * getContentFrame()
Get the content frame of the content pane.
void isActive()
Signal will be emitted after the open animation finished.
void setAnimationDuration(uint duration)
Set the duration for the open and close animation.
void openContentPane()
Open the content pane.
std::unique_ptr< QPropertyAnimation > openAnimation
bool getActive()
Check if this Content pane is active.
QString getHeaderHoverStylesheet()
Get the mouse over header style sheet.
void isInactive()
Signal will be emitted after the close animation finished.
void initHeaderFrame(QString header)
void setContentFrame(QFrame *content)
Set the content frame.
void setHeaderFrameStyle(int style)
Set the header frame style.
int getContainerFrameStyle()
Get the container frame style.
void setHeader(QString header)
Set the header of the content pane.
void setMaximumHeight(int maxHeight)
Set the maximum height of the content pane container.
void headerClicked()
Slot that is called when the header has been triggered.
void initDefaults(QString header)
void setHeaderHoverStylesheet(QString stylesheet)
Set a stylesheet for the header frame when the mouse hovers over it.
void setContainerFrameStyle(int style)
Set the container frame style.
int getHeaderFrameStyle()
Get the header frame style.
std::unique_ptr< QPropertyAnimation > closeAnimation
void initContainerContentFrame()
void paintEvent(ATTR_UNUSED QPaintEvent *event)
paintEvent Reimplement paintEvent to use stylesheets in derived Widgets