mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-06 02:09:44 +02:00
31 lines
920 B
C++
31 lines
920 B
C++
//
|
|
// AbstractMenuInterface.h
|
|
// hifi
|
|
//
|
|
// Created by Brad Hefta-Gaub on 12/16/13.
|
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
//
|
|
|
|
#ifndef __hifi__AbstractMenuInterface__
|
|
#define __hifi__AbstractMenuInterface__
|
|
|
|
#include <QAction>
|
|
|
|
class QMenu;
|
|
class QString;
|
|
class QObject;
|
|
class QKeySequence;
|
|
|
|
class AbstractMenuInterface {
|
|
public:
|
|
virtual QMenu* getActiveScriptsMenu() = 0;
|
|
virtual void invokeAddActionToQMenuAndActionHash(QMenu* destinationMenu,
|
|
const QString actionName,
|
|
const QKeySequence& shortcut = 0,
|
|
const QObject* receiver = NULL,
|
|
const char* member = NULL) = 0;
|
|
virtual void invokeRemoveAction(QMenu* menu, const QString& actionName) = 0;
|
|
};
|
|
|
|
#endif /* defined(__hifi__AbstractMenuInterface__) */
|