diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-12-31 01:37:50 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-12-31 01:37:50 +0100 |
commit | 4340068a84d1532d9f5ca4de4d12cbf1b7a7bd52 (patch) | |
tree | d19500716c8c4fe9cdec4361ffae47d47f806f0a /application/dialogs/NewComponentDialog.h | |
parent | c7032ce68ac3e48c1aace5742cc719e80dbf719b (diff) | |
download | PrismLauncher-4340068a84d1532d9f5ca4de4d12cbf1b7a7bd52.tar.gz PrismLauncher-4340068a84d1532d9f5ca4de4d12cbf1b7a7bd52.tar.bz2 PrismLauncher-4340068a84d1532d9f5ca4de4d12cbf1b7a7bd52.zip |
NOISSUE add button for creating empty, properly registered, components
Diffstat (limited to 'application/dialogs/NewComponentDialog.h')
-rw-r--r-- | application/dialogs/NewComponentDialog.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/application/dialogs/NewComponentDialog.h b/application/dialogs/NewComponentDialog.h new file mode 100644 index 00000000..2797e0b9 --- /dev/null +++ b/application/dialogs/NewComponentDialog.h @@ -0,0 +1,48 @@ +/* Copyright 2013-2017 MultiMC Contributors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +#include <QDialog> + +#include <QString> +#include <QStringList> + +namespace Ui +{ +class NewComponentDialog; +} + +class NewComponentDialog : public QDialog +{ + Q_OBJECT + +public: + explicit NewComponentDialog(const QString & initialName = QString(), const QString & initialUid = QString(), QWidget *parent = 0); + virtual ~NewComponentDialog(); + void setBlacklist(QStringList badUids); + + QString name() const; + QString uid() const; + +private slots: + void updateDialogState(); + +private: + Ui::NewComponentDialog *ui; + + QString originalPlaceholderText; + QStringList uidBlacklist; +}; |