Mantid
Loading...
Searching...
No Matches
FilePropertyWidget.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2012 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
11#include "MantidKernel/System.h"
13#include <QPushButton>
14#include <QString>
15#include <QStringList>
16
17namespace MantidQt {
18namespace API {
19
25 Q_OBJECT
26
27public:
28 FilePropertyWidget(Mantid::Kernel::Property *prop, QWidget *parent = nullptr, QGridLayout *layout = nullptr,
29 int row = -1);
31
32 static QString openFileDialog(Mantid::Kernel::Property *baseProp);
33 static QStringList openMultipleFileDialog(Mantid::Kernel::Property *baseProp);
34
35public slots:
36 void browseClicked();
37
38protected:
40 QPushButton *m_browseButton;
41
44
47};
48
49} // namespace API
50} // namespace MantidQt
#define DLLExport
Definitions of the DLLImport compiler directives for MSVC.
Definition: System.h:53
Widget for FileProperty, which has a "Browse" button.
Mantid::API::MultipleFileProperty * m_multipleFileProp
Is a multiple file property.
Mantid::API::FileProperty * m_fileProp
Is a file property.
QPushButton * m_browseButton
"Browse" button
~FilePropertyWidget() override
Destructor.
The most generic widgets for Property's that are only a simple string.
A specialized class for dealing with file properties.
Definition: FileProperty.h:42
A property to allow a user to specify multiple files to load.
Base class for properties.
Definition: Property.h:94
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...