diff options
author | allexzander <blackslayer4@gmail.com> | 2021-01-29 21:00:21 +0300 |
---|---|---|
committer | allexzander <blackslayer4@gmail.com> | 2021-02-04 11:05:18 +0300 |
commit | 81a090b362f10df8d208924c97148b0bcff135ad (patch) | |
tree | c6466fd57619bafbbafa68b48c494ab07b0e307b /src/gui/foldercreationdialog.h | |
parent | 93b26bc666523d245b323c03567f81f7f7687ccb (diff) |
Allow creation of new folders from the Settings Dialog.
Signed-off-by: allexzander <blackslayer4@gmail.com>
Diffstat (limited to 'src/gui/foldercreationdialog.h')
-rw-r--r-- | src/gui/foldercreationdialog.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/gui/foldercreationdialog.h b/src/gui/foldercreationdialog.h new file mode 100644 index 000000000..c3d219f9a --- /dev/null +++ b/src/gui/foldercreationdialog.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) by Oleksandr Zolotov <alex@nextcloud.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#ifndef FOLDERCREATIONDIALOG_H +#define FOLDERCREATIONDIALOG_H + +#include <QDialog> + +namespace Ui { +class FolderCreationDialog; +} + +class FolderCreationDialog : public QDialog +{ + Q_OBJECT + +public: + explicit FolderCreationDialog(const QString &destination, QWidget *parent = nullptr); + ~FolderCreationDialog(); + +private slots: + void accept() override; + + void slotNewFolderNameEditTextEdited(); + +private: + Ui::FolderCreationDialog *ui; + + QString _destination; +}; + +#endif // FOLDERCREATIONDIALOG_H |