mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-21 14:03:39 +03:00
data:introduce contextmenudata class
--this definition is scheduled to be shared between the application and the context menu
This commit is contained in:
parent
156865fdb3
commit
42bd6b8f8a
@ -2,6 +2,7 @@ set(lattedock-app_SRCS
|
||||
${lattedock-app_SRCS}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/activitydata.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/appletdata.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/contextmenudata.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/errordata.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/errorinformationdata.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/genericbasictable.cpp
|
||||
|
46
app/data/contextmenudata.h
Normal file
46
app/data/contextmenudata.h
Normal file
@ -0,0 +1,46 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef CONTEXTMENUDATA_H
|
||||
#define CONTEXTMENUDATA_H
|
||||
|
||||
// Qt
|
||||
#include <QStringList>
|
||||
|
||||
namespace Latte {
|
||||
namespace Data {
|
||||
namespace ContextMenu {
|
||||
|
||||
static const char *ADDVIEWACTION= "_add_view";
|
||||
static const char *LAYOUTSACTION[] = "_layouts";
|
||||
static const char *PREFERENCESACTION[] = "_preferences";
|
||||
static const char *QUITLATTEACTION[] = "_quit_latte";
|
||||
static const char *ADDWIDGETSACTION[] = "_add_latte_widgets";
|
||||
static const char *DUPLICATEVIEWACTION[] = "_duplicate_view";
|
||||
static const char *EDITVIEWACTION[] = "_edit_view";
|
||||
static const char *EXPORTVIEWTEMPLATEACTION[] = "_export_view";
|
||||
static const char *REMOVEVIEWACTION[] = "_remove_view";
|
||||
static const char *MOVEVIEWACTION[] = "_move_view";
|
||||
static const char *SEPARATOR1ACTION[] = "_separator1";
|
||||
|
||||
static QStringList ACTIONSALWAYSVISIBLE = {LAYOUTSACTION,
|
||||
PREFERENCESACTION,
|
||||
QUITLATTEACTION,
|
||||
SEPARATOR1ACTION,
|
||||
ADDWIDGETSACTION,
|
||||
ADDVIEWACTION,
|
||||
MOVEVIEWACTION,
|
||||
EXPORTVIEWTEMPLATEACTION,
|
||||
REMOVEVIEWACTION}
|
||||
|
||||
static QStringList ACTIONSVISIBLEONLYINEDIT = {MOVEVIEWACTION,
|
||||
EXPORTVIEWTEMPLATEACTION,
|
||||
REMOVEVIEWACTION};
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user