1 /* 2 * OpenSCAD (www.openscad.org) 3 * Copyright (C) 2009-2011 Clifford Wolf <clifford@clifford.at> and 4 * Marius Kintel <marius@kintel.net> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * As a special exception, you have permission to link this program 12 * with the CGAL library and distribute executables, as long as you 13 * follow the requirements of the GNU GPL in regard to all of the 14 * software in the executable aside from CGAL. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 * 25 */ 26 #pragma once 27 28 #include <QStringList> 29 #include <QFileInfoList> 30 31 namespace UIUtils { 32 static const int maxRecentFiles = 10; 33 34 QFileInfo openFile(QWidget *parent = nullptr); 35 36 QFileInfoList openFiles(QWidget *parent = nullptr); 37 38 QStringList recentFiles(); 39 40 QStringList exampleCategories(); 41 42 QFileInfoList exampleFiles(const QString &category); 43 44 void openURL(const QString& url); 45 46 void openHomepageURL(); 47 48 void openUserManualURL(); 49 50 void openCheatSheetURL(); 51 } 52