1 /* 2 * noeditorwidget.h 3 * Copyright 2016, Thorbjørn Lindeijer <bjorn@lindeijer.nl> 4 * 5 * This file is part of Tiled. 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the Free 9 * Software Foundation; either version 2 of the License, or (at your option) 10 * any later version. 11 * 12 * This program is distributed in the hope that it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 14 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 15 * more details. 16 * 17 * You should have received a copy of the GNU General Public License along with 18 * this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #pragma once 22 23 #include <QWidget> 24 25 namespace Ui { 26 class NoEditorWidget; 27 } 28 29 namespace Tiled { 30 31 class NoEditorWidget : public QWidget 32 { 33 Q_OBJECT 34 35 public: 36 explicit NoEditorWidget(QWidget *parent = nullptr); 37 ~NoEditorWidget(); 38 39 protected: 40 void changeEvent(QEvent *e); 41 42 private: 43 void newMap(); 44 void newTileset(); 45 void openFile(); 46 47 void retranslateUi(); 48 49 void updateRecentProjectsMenu(); 50 51 void adjustToStyle(); 52 53 Ui::NoEditorWidget *ui; 54 }; 55 56 } // namespace Tiled 57