|
Power Bookmarks 1.0.0
Save and Share camera views with ease
|
Editor subsystem to handle bookmark collections. More...
#include <FtsViewBookmarkEditorSubsystem.h>
Public Member Functions | |
| bool | RenameBookmarkCategory (const FString &CurrentName, const FString &NewName) |
| Renames a category by renaming prefixes on all matching bookmarks. Aborts if new category name is already in use. | |
| FString | GetUniqueCategoryName (const FString &SuggestedName) |
| Checks if a given name is already in use and appends numbers to make it unique if needed. | |
| void | DeleteBookmarkCategory (FString Name) |
| Deletes all bookmarks belonging to a given category and thereby the category itself. | |
| bool | FindBookmarksInCategory (FString CategoryName, TArray< FFtsViewBookmark > &OutBookmarks) |
| Searches through bookmarks to find all that share the given category. | |
| void | GetAllCategoryNames (TArray< FString > &OutNames) |
| Checks all bookmarks to find unique categories. | |
| void | GetAllBookmarkNames (TArray< FString > &OutNames) |
| Get a list of all bookmark ids. | |
| FString | FindUniqueBookmarkName (const FString &SuggestedName) |
| Checks if a given name is already in use for a bookmark and appends numbers to make it unique if needed. | |
| bool | AddBookmark (const FFtsViewBookmark &NewBookmark) |
| Adds a new bookmark to the management. Will prevent doubles by id. | |
| void | RenameBookmarkFast (const int32 Index, const FString &NewBookmarkName) |
| Renames a bookmark without doing any checks whether the index or the name id are valid. | |
| bool | RenameBookmark (const FString &CurrentBookmarkName, const FString &NewBookmarkName) |
| Changes the name of a bookmark. Checks for duplicates. | |
| bool | FindBookmarkIndex (FString BookmarkName, int32 &OutIndex) |
| Searches the bookmarks list for a specified id. | |
| bool | UpdateBookmark (const FString &BookmarkName, const FFtsViewBookmark &NewBookmark) |
| Updates an existing bookmark with new data by replacing it. | |
| bool | SetBookmarkMetaDataEntry (const FString &BookmarkName, const FString &Key, const FString &Value) |
| Sets a new value to a given key for the bookmarks meta data. | |
| bool | GetBookmarkMetaDataEntry (const FString &BookmarkName, const FString &Key, FString &OutValue) |
| Gets the value that fits the key for a bookmarks meta data if it exists. | |
| bool | DeleteBookmarkMetaDataEntry (const FString &BookmarkName, const FString &Key) |
| Deletes a value from the bookmarks meta data. | |
| bool | GetBookmark (const FString &BookmarkName, FFtsViewBookmark &OutBookmark) |
| Get bookmark data from the list. | |
| bool | DeleteBookmark (const FString &BookmarkName) |
| Delete bookmark data from the list. | |
| void | SaveBookmarksConfig () |
| Saves changes to ini. Tries to checkout file if source control is enabled. | |
Static Public Member Functions | |
| static FString | GetBookmarkCategory (const FFtsViewBookmark &Bookmark) |
| Splits a bookmark id to get the category part. | |
Protected Attributes | |
| TArray< FFtsViewBookmark > | Bookmarks |
| List of managed bookmarks. | |
| FFtsBookmarkRenameSignature | OnBookmarkRenamed |
| Called when a bookmark is renamed. | |
Editor subsystem to handle bookmark collections.
Bookmarks only have an id name, but this system sorts them into categories by naming them "Category.Bookmark". UI is handled through Blueprint Editor Widgets. Saves bookmarks to config file.
| bool UFtsViewBookmarkEditorSubsystem::AddBookmark | ( | const FFtsViewBookmark & | NewBookmark | ) |
Adds a new bookmark to the management. Will prevent doubles by id.
| NewBookmark | Bookmark to add |
| bool UFtsViewBookmarkEditorSubsystem::DeleteBookmark | ( | const FString & | BookmarkName | ) |
Delete bookmark data from the list.
| BookmarkName | Id of the bookmark |
| void UFtsViewBookmarkEditorSubsystem::DeleteBookmarkCategory | ( | FString | Name | ) |
Deletes all bookmarks belonging to a given category and thereby the category itself.
| Name | Category to delete |
| bool UFtsViewBookmarkEditorSubsystem::DeleteBookmarkMetaDataEntry | ( | const FString & | BookmarkName, |
| const FString & | Key ) |
Deletes a value from the bookmarks meta data.
| BookmarkName | Bookmark to modify |
| Key | Key of value to delete from data |
| bool UFtsViewBookmarkEditorSubsystem::FindBookmarkIndex | ( | FString | BookmarkName, |
| int32 & | OutIndex ) |
Searches the bookmarks list for a specified id.
| BookmarkName | Bookmark to find |
| OutIndex | Index in the list where the bookmark is |
| bool UFtsViewBookmarkEditorSubsystem::FindBookmarksInCategory | ( | FString | CategoryName, |
| TArray< FFtsViewBookmark > & | OutBookmarks ) |
Searches through bookmarks to find all that share the given category.
| CategoryName | Category to find bookmarks for |
| OutBookmarks | Bookmarks in the category |
| FString UFtsViewBookmarkEditorSubsystem::FindUniqueBookmarkName | ( | const FString & | SuggestedName | ) |
Checks if a given name is already in use for a bookmark and appends numbers to make it unique if needed.
| SuggestedName | Name to ideally use |
| void UFtsViewBookmarkEditorSubsystem::GetAllBookmarkNames | ( | TArray< FString > & | OutNames | ) |
Get a list of all bookmark ids.
| OutNames | All bookmark ids |
| void UFtsViewBookmarkEditorSubsystem::GetAllCategoryNames | ( | TArray< FString > & | OutNames | ) |
Checks all bookmarks to find unique categories.
| OutNames | All unique categories |
| bool UFtsViewBookmarkEditorSubsystem::GetBookmark | ( | const FString & | BookmarkName, |
| FFtsViewBookmark & | OutBookmark ) |
Get bookmark data from the list.
| BookmarkName | Id of the bookmark |
| OutBookmark | Bookmark data |
|
static |
Splits a bookmark id to get the category part.
| Bookmark | Bookmark to read category from |
| bool UFtsViewBookmarkEditorSubsystem::GetBookmarkMetaDataEntry | ( | const FString & | BookmarkName, |
| const FString & | Key, | ||
| FString & | OutValue ) |
Gets the value that fits the key for a bookmarks meta data if it exists.
| BookmarkName | Bookmark reference to get meta data from |
| Key | Key to get value for |
| OutValue | Meta data value |
| FString UFtsViewBookmarkEditorSubsystem::GetUniqueCategoryName | ( | const FString & | SuggestedName | ) |
Checks if a given name is already in use and appends numbers to make it unique if needed.
| SuggestedName | Name to ideally use |
| bool UFtsViewBookmarkEditorSubsystem::RenameBookmark | ( | const FString & | CurrentBookmarkName, |
| const FString & | NewBookmarkName ) |
Changes the name of a bookmark. Checks for duplicates.
| CurrentBookmarkName | Name that is currently being used |
| NewBookmarkName | Name to change to |
| bool UFtsViewBookmarkEditorSubsystem::RenameBookmarkCategory | ( | const FString & | CurrentName, |
| const FString & | NewName ) |
Renames a category by renaming prefixes on all matching bookmarks. Aborts if new category name is already in use.
| CurrentName | Name the category has at the moment |
| NewName | Name to change it to |
| void UFtsViewBookmarkEditorSubsystem::RenameBookmarkFast | ( | const int32 | Index, |
| const FString & | NewBookmarkName ) |
Renames a bookmark without doing any checks whether the index or the name id are valid.
| Index | Index of bookmark in the list |
| NewBookmarkName | New name |
| bool UFtsViewBookmarkEditorSubsystem::SetBookmarkMetaDataEntry | ( | const FString & | BookmarkName, |
| const FString & | Key, | ||
| const FString & | Value ) |
Sets a new value to a given key for the bookmarks meta data.
| BookmarkName | Bookmark reference to write to |
| Key | Meta data key to set |
| Value | Value to set for key |
| bool UFtsViewBookmarkEditorSubsystem::UpdateBookmark | ( | const FString & | BookmarkName, |
| const FFtsViewBookmark & | NewBookmark ) |
Updates an existing bookmark with new data by replacing it.
| BookmarkName | Name of the bookmark |
| NewBookmark | Replacement data |