git mv Code\Sandbox\Editor Code/Editor

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-06-29 12:41:59 -07:00
parent 9f0bbf3b74
commit e34e36cb35
1415 changed files with 0 additions and 0 deletions
@@ -0,0 +1,71 @@
/*
* 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 <QDialog>
#include "NewsShared/LogType.h"
#include "NewsShared/ErrorCodes.h"
#endif
namespace News {
class ResourceManifest;
class ArticleViewContainer;
}
namespace Ui {
class WelcomeScreenDialog;
}
class QStringListModel;
class RecentFileList;
class WelcomeScreenDialog
: public QDialog
{
Q_OBJECT
public:
WelcomeScreenDialog(QWidget* pParent = nullptr);
~WelcomeScreenDialog();
const QString& GetLevelPath();
void SetRecentFileList(RecentFileList* pList);
bool eventFilter(QObject *watched, QEvent *event) override;
public Q_SLOTS:
void done(int result) override;
private:
typedef std::pair<QString, QString> TNamePathPair;
typedef std::vector<TNamePathPair> TNameFullPathArray;
Ui::WelcomeScreenDialog* ui;
QString m_levelPath;
TNameFullPathArray m_levels;
RecentFileList* m_pRecentList;
const char* m_levelExtension = nullptr;
bool m_messageScrollReported = false;
void RemoveLevelEntry(int index);
void OnShowToolTip(const QModelIndex& index);
void OnShowContextMenu(const QPoint& point);
void OnNewLevelBtnClicked(bool checked);
void OnNewLevelLabelClicked(const QString& checked);
void OnOpenLevelBtnClicked(bool checked);
void OnRecentLevelTableItemClicked(const QModelIndex& index);
void OnCloseBtnClicked(bool checked);
void SyncFail(News::ErrorCode error);
void SyncSuccess();
private Q_SLOTS:
void previewAreaScrolled();
};