1 /* 2 SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com> 3 SPDX-License-Identifier: GPL-2.0-or-later 4 */ 5 6 #ifndef CONTEXTMENUDATA_H 7 #define CONTEXTMENUDATA_H 8 9 // Qt 10 #include <QStringList> 11 12 namespace Latte { 13 namespace Data { 14 namespace ContextMenu { 15 16 static const char ADDVIEWACTION[]= "_add_view"; 17 static const char ADDWIDGETSACTION[] = "_add_latte_widgets"; 18 static const char DUPLICATEVIEWACTION[] = "_duplicate_view"; /*used inside add view submenu*/ 19 static const char EDITVIEWACTION[] = "_edit_view"; 20 static const char EXPORTVIEWTEMPLATEACTION[] = "_export_view"; 21 static const char LAYOUTSACTION[] = "_layouts"; 22 static const char MOVEVIEWACTION[] = "_move_view"; 23 static const char PRINTACTION[] = "_print"; 24 static const char PREFERENCESACTION[] = "_preferences"; 25 static const char REMOVEVIEWACTION[] = "_remove_view"; 26 static const char QUITLATTEACTION[] = "_quit_latte"; 27 static const char SECTIONACTION[]= "_latte_section"; 28 static const char SEPARATOR1ACTION[] = "_separator1"; 29 30 static QStringList ACTIONSEDITORDER = {LAYOUTSACTION, 31 PREFERENCESACTION, 32 QUITLATTEACTION, 33 SEPARATOR1ACTION, 34 ADDWIDGETSACTION, 35 ADDVIEWACTION, 36 MOVEVIEWACTION, 37 EXPORTVIEWTEMPLATEACTION, 38 REMOVEVIEWACTION}; 39 40 static QStringList ACTIONSALWAYSVISIBLE = {LAYOUTSACTION, 41 PREFERENCESACTION, 42 QUITLATTEACTION, 43 SEPARATOR1ACTION, 44 ADDWIDGETSACTION, 45 ADDVIEWACTION}; 46 47 static QStringList ACTIONSALWAYSHIDDEN = {PRINTACTION}; 48 49 static QStringList ACTIONSVISIBLEONLYINEDIT = {MOVEVIEWACTION, 50 EXPORTVIEWTEMPLATEACTION, 51 REMOVEVIEWACTION}; 52 53 static QStringList ACTIONSSPECIAL = {SECTIONACTION, 54 EDITVIEWACTION}; 55 56 } 57 } 58 } 59 60 #endif 61