10#include <QAbstractItemModel>
12#include <QFutureWatcher>
100 int childCount()
const;
103 const QString &
path()
const {
return keypath; };
106 const QString &
label()
const {
return m_label; };
111 bool removeChild(
int row);
130 UploadForm(
const QString &file2upload, QWidget *parent =
nullptr);
136 void setEmail(
const QString & );
137 void setAuthor(
const QString & );
138 void lastSaveOption(
bool option);
169 QVariant data(
const QModelIndex &
index,
int role)
const override;
171 Qt::ItemFlags flags(
const QModelIndex &
index)
const override;
173 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
175 QModelIndex
index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
177 QModelIndex parent(
const QModelIndex &
index)
const override;
179 int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
181 int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
183 bool setData(
const QModelIndex &
index,
const QVariant &
value,
int role = Qt::EditRole)
override;
185 static const QString &localOnlySt();
186 static const QString &remoteOnlySt();
187 static const QString &localChangedSt();
188 static const QString &remoteChangedSt();
189 static const QString &updatedSt();
190 static const QString &bothChangedSt();
191 static const QString &downloadSt();
192 static const QString &uploadSt();
194 QString fileDescription(
const QModelIndex &
index);
195 QString filePath(
const QModelIndex &
index);
196 QString author(
const QModelIndex &
index);
203 void setupModelData(
RepoItem *parent);
219 bool showWarning =
true)
const;
226 bool isDownloading(
const QModelIndex &
index)
const;
228 void downloadFinished();
243 bool isUploading(
const QModelIndex &
index)
const;
246 void uploadFinished();
#define EXPORT_OPT_MANTIDQT_COMMON
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
Auxiliary Dialog to get the option from the user about removing the entries from the local folder or ...
~DeleteQueryBox() override
A nested class to help RepoModel to implement the QAbstractItemModel.
QString keypath
the path of the script repository
const RepoItem & operator=(const RepoItem &)
RepoItem * parent() const
access to the parent of this entry
RepoItem(const RepoItem &)
const QString & label() const
access to the label provided at construction
QString m_label
the label of this entry
const QString & path() const
access to the script repository path
QList< RepoItem * > childItems
track the list of children for this entry
RepoItem * parentItem
the parent of this entry
RepoModel : Wrapper for ScriptRepository to fit the Model View Qt Framework.
QFutureWatcher< QString > upload_watcher
Mantid::API::ScriptRepository_sptr repo_ptr
pointer to the ScriptRepository
QModelIndex download_index
QFutureWatcher< QString > download_watcher
void executingThread(bool)
QFuture< QString > upload_threads
QString repo_path
ScriptLocalRepository path, to be able to retrieve the absolute path.
RepoItem * rootItem
pointer to the RepoItem root
QFuture< QString > download_threads
The ScriptRepository class is intended to be used mainly by the users, who will be willing to share a...
const QString LOCALCHANGED
const QString REMOTECHANGED
const QString DELETABLEENTRY
const QString BOTHUNCHANGED
const QString BOTHCHANGED
const QString PROTECTEDENTRY
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...
std::shared_ptr< ScriptRepository > ScriptRepository_sptr
shared pointer to the function base class
SCRIPTSTATUS
Represent the possible states for a given file: