You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project
|
|
*
|
|
* 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;
|
|
};
|