BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
gui2::SLDEditorToolBar Class Reference

Material editor toolbar. More...

Inheritance diagram for gui2::SLDEditorToolBar:
[legend]
Collaboration diagram for gui2::SLDEditorToolBar:
[legend]

Signals

void resetViewport ()
 

Public Member Functions

 SLDEditorToolBar (SLDEditorActions *actions, QWidget *parent=nullptr)
 
 ~SLDEditorToolBar ()=default
 

Detailed Description

Material editor toolbar.

Definition at line 27 of file sldeditortoolbar.h.

Constructor & Destructor Documentation

◆ SLDEditorToolBar()

gui2::SLDEditorToolBar::SLDEditorToolBar ( SLDEditorActions actions,
QWidget *  parent = nullptr 
)

Definition at line 24 of file sldeditortoolbar.cpp.

24  : QToolBar(parent)
25 {
27 
28  auto reset_view = new QToolButton;
29  reset_view->setToolTip("Set axes to default range.");
30  reset_view->setIcon(QIcon(":/icons/aspect-ratio.svg"));
31  addWidget(reset_view);
32  connect(reset_view, &QToolButton::clicked, [this]() { resetViewport(); });
33 }
DAREFLCORE_EXPORT void SetToolBarStyleTextBesides(QToolBar *toolbar)
Set common style for a toolbar.
Definition: styleutils.cpp:39

References resetViewport(), and gui2::StyleUtils::SetToolBarStyleTextBesides().

Here is the call graph for this function:

◆ ~SLDEditorToolBar()

gui2::SLDEditorToolBar::~SLDEditorToolBar ( )
default

Member Function Documentation

◆ resetViewport

void gui2::SLDEditorToolBar::resetViewport ( )
signal

The documentation for this class was generated from the following files: