Mantid
Loading...
Searching...
No Matches
ManageUserDirectories.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 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
9#include "DllOption.h"
10#include <QDialog>
11#include <QtGlobal>
12
13#include "ui_ManageUserDirectories.h"
14
15namespace MantidQt {
16namespace API {
17
23 using BaseClass = QDialog;
24 Q_OBJECT
25
26public:
27 static ManageUserDirectories *openManageUserDirectories();
28
29public:
30 ManageUserDirectories(QWidget *parent = nullptr);
31
32 void enableSaveToFile(bool enabled);
33
34public:
36 QPushButton *cancelButton() const { return m_uiForm.pbCancel; }
37
38private:
39 virtual void initLayout();
40 void loadProperties();
41 void saveProperties();
42 QListWidget *listWidget(QObject *object);
43
44private slots:
45 void helpClicked();
46 void cancelClicked();
47 void confirmClicked();
48 void addDirectory();
49 void browseToDirectory();
50 void remDir();
51 void moveUp();
52 void moveDown();
53 void selectSaveDir();
54
55private:
56 Ui::ManageUserDirectories m_uiForm;
58};
59
60} // namespace API
61} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
Access and update the user directory settings within the Mantid config service.
QPushButton * cancelButton() const
Testing accessors.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...