mirror of
https://github.com/overte-org/overte.git
synced 2025-06-19 04:00:13 +02:00
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
//
|
|
// AvatarEntitiesBookmarks.h
|
|
// interface/src
|
|
//
|
|
// Created by Dante Ruiz on 15/01/18.
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AvatarEntitiesBookmarks_h
|
|
#define hifi_AvatarEntitiesBookmarks_h
|
|
|
|
#include <DependencyManager.h>
|
|
#include "Bookmarks.h"
|
|
|
|
class AvatarEntitiesBookmarks: public Bookmarks, public Dependency {
|
|
Q_OBJECT
|
|
SINGLETON_DEPENDENCY
|
|
|
|
public:
|
|
AvatarEntitiesBookmarks();
|
|
void setupMenus(Menu* menubar, MenuWrapper* menu) override;
|
|
|
|
public slots:
|
|
void addBookmark();
|
|
|
|
protected:
|
|
void addBookmarkToMenu(Menu* menubar, const QString& name, const QVariant& bookmark) override;
|
|
|
|
private:
|
|
const QString AVATAR_ENTITIES_BOOKMARKS_FILENAME = "AvatarEntitiesBookmarks.json";
|
|
const QString ENTRY_AVATAR_URL = "AvatarUrl";
|
|
const QString ENTRY_AVATAR_SCALE = "AvatarScale";
|
|
const QString ENTRY_AVATAR_ENTITIES = "AvatarEntities";
|
|
const QString ENTRY_VERSION = "version";
|
|
|
|
const int AVATAR_ENTITIES_BOOKMARK_VERSION = 1;
|
|
|
|
private slots:
|
|
void applyBookmarkedAvatarEntities();
|
|
};
|
|
|
|
#endif
|