BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
dataloadertoolbar.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/dataloader/dataloadertoolbar.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
17 #include <QAction>
18 
19 namespace gui2 {
20 
21 DataLoaderToolBar::DataLoaderToolBar(QWidget* parent) : QToolBar(parent)
22 {
24 
25  // add files
26  auto action = new QAction("Add files", this);
27  action->setIcon(QIcon(":/icons/import.svg"));
28  action->setToolTip("Adds more files to the list.\n "
29  "All of them will be parsed in the same way.");
30  connect(action, &QAction::triggered, [this]() { this->addFilesRequest(); });
31  addAction(action);
32 
33  // remove files
34  action = new QAction("Remove files", this);
35  action->setIcon(QIcon(":/icons/beaker-remove-outline.svg"));
36  action->setToolTip("Remove selected files from the list.");
37  connect(action, &QAction::triggered, [this]() { this->removeFilesRequest(); });
38  addAction(action);
39 }
40 
41 } // namespace gui2
DataLoaderToolBar(QWidget *parent=nullptr)
Defines class CLASS?
Defines class CLASS?
DAREFLCORE_EXPORT void SetToolBarStyleTextBesides(QToolBar *toolbar)
Set common style for a toolbar.
Definition: styleutils.cpp:39
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20