!XT (BREAK-16) (Sandbox) Remove double-newlines at the end of files.
[CRYENGINE.git] / Code / Sandbox / EditorQt / LevelEditor / SaveLevelDialog.h
blobbc2951f8d97a0e9ad77e614b62fb44d4b6ac8f77
1 // Copyright 2001-2018 Crytek GmbH / Crytek Group. All rights reserved.
2 #pragma once
3 #include "Controls/EditorDialog.h"
5 #include <memory>
7 class CSaveLevelDialog : public CEditorDialog
9 Q_OBJECT
11 public:
12 CSaveLevelDialog(const QString& title = tr("Save Level As"));
13 ~CSaveLevelDialog();
15 // return the levelFile as EnginePath after accept
16 QString GetAcceptedLevelFile() const;
18 // return the levelFile as UserPath after accept
19 QString GetAcceptedUserLevelFile() const;
21 // return the levelFile as AbsolutePath after accept
22 QString GelAcceptedAbsoluteLevelFile() const;
24 // select this file
25 // used for the last used file
26 void SelectLevelFile(const QString& levelFile);
28 signals:
29 // Triggered after the first paint - used to scroll to the last level in the tree
30 void AfterFirstPaint();
32 // QWidget interface
33 protected:
34 virtual void paintEvent(QPaintEvent* event) override;
36 private:
37 struct Implementation;
38 std::unique_ptr<Implementation> p;