Files
o3de/Code/Editor/AssetImporter/UI/SelectDestinationDialog.h
T
Steve Pham b4a2edec6a Final update copyright headers to reference license files at the repo root (#1693)
* Final update copyright headers to reference license files at the repo root

Signed-off-by: spham <spham@amazon.com>

* Fix copyright validator unit tests to support the stale O3DE header scenario

Signed-off-by: spham <spham@amazon.com>
2021-06-30 19:51:55 -07:00

59 lines
1.4 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#if !defined(Q_MOC_RUN)
#include <AzQtComponents/Components/StyledLineEdit.h>
#include <QLabel>
#include <QDialog>
#include <QDialogButtonBox>
#endif
class StyledLineEdit;
class QValidator;
class DestinationDialogValidator;
namespace Ui {
class SelectDestinationDialog;
}
class SelectDestinationDialog
: public QDialog
{
Q_OBJECT
public:
SelectDestinationDialog(QString message, QWidget* parent = nullptr);
~SelectDestinationDialog();
Q_SIGNALS:
void GoBack();
void DoCopyFiles();
void DoMoveFiles();
void BrowseDestinationPath(QLineEdit* destinationLineEdit);
void Cancel();
void UpdateImportButtonState(bool enabled);
void SetDestinationDirectory(QString destinationDirectory);
public Q_SLOTS:
void accept();
void reject();
void ShowMessage();
void OnBrowseDestinationFilePath();
void ValidatePath();
private:
void UpdateMessage(QString message);
void InitializeButtons();
void SetPreviousDestinationDirectory();
QString DestinationDirectory() const;
QScopedPointer<Ui::SelectDestinationDialog> m_ui;
DestinationDialogValidator* m_validator;
};