File indexing completed on 2024-11-03 08:11:07

0001 /*
0002     SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef CONTEXTMENUDATA_H
0007 #define CONTEXTMENUDATA_H
0008 
0009 // Qt
0010 #include <QStringList>
0011 
0012 namespace Latte {
0013 namespace Data {
0014 namespace ContextMenu {
0015 
0016 static const char ADDVIEWACTION[]= "_add_view";
0017 static const char ADDWIDGETSACTION[] = "_add_latte_widgets";
0018 static const char DUPLICATEVIEWACTION[] = "_duplicate_view"; /*used inside add view submenu*/
0019 static const char EDITVIEWACTION[] = "_edit_view";
0020 static const char EXPORTVIEWTEMPLATEACTION[] = "_export_view";
0021 static const char LAYOUTSACTION[] = "_layouts";
0022 static const char MOVEVIEWACTION[] = "_move_view";
0023 static const char PRINTACTION[] = "_print";
0024 static const char PREFERENCESACTION[] = "_preferences";
0025 static const char REMOVEVIEWACTION[] = "_remove_view";
0026 static const char QUITLATTEACTION[] = "_quit_latte";
0027 static const char SECTIONACTION[]= "_latte_section";
0028 static const char SEPARATOR1ACTION[] = "_separator1";
0029 
0030 static QStringList ACTIONSEDITORDER = {LAYOUTSACTION,
0031                                        PREFERENCESACTION,
0032                                        QUITLATTEACTION,
0033                                        SEPARATOR1ACTION,
0034                                        ADDWIDGETSACTION,
0035                                        ADDVIEWACTION,
0036                                        MOVEVIEWACTION,
0037                                        EXPORTVIEWTEMPLATEACTION,
0038                                        REMOVEVIEWACTION};
0039 
0040 static QStringList ACTIONSALWAYSVISIBLE = {LAYOUTSACTION,
0041                                            PREFERENCESACTION,
0042                                            QUITLATTEACTION,
0043                                            SEPARATOR1ACTION,
0044                                            ADDWIDGETSACTION,
0045                                            ADDVIEWACTION};
0046 
0047 static QStringList ACTIONSALWAYSHIDDEN = {PRINTACTION};
0048 
0049 static QStringList ACTIONSVISIBLEONLYINEDIT = {MOVEVIEWACTION,
0050                                                EXPORTVIEWTEMPLATEACTION,
0051                                                REMOVEVIEWACTION};
0052 
0053 static QStringList ACTIONSSPECIAL = {SECTIONACTION,
0054                                      EDITVIEWACTION};
0055 
0056 }
0057 }
0058 }
0059 
0060 #endif