16#ifndef QGSRECENTSTYLEHANDLER_H
17#define QGSRECENTSTYLEHANDLER_H
23#include <unordered_map>
94 template <
class SymbolType> std::unique_ptr< SymbolType >
recentSymbol(
const QString &identifier )
const SIP_SKIP
96 std::unique_ptr< QgsSymbol > tmpSymbol( recentSymbol( identifier ) );
97 if ( SymbolType *symbolCastToType =
dynamic_cast<SymbolType *
>( tmpSymbol.get() ) )
99 return std::unique_ptr< SymbolType >(
dynamic_cast<SymbolType *
>( tmpSymbol.release() ) );
114 std::unordered_map< QString, std::unique_ptr< QgsSymbol > > mRecentSymbols;
Handles and tracks style items recently used in the QGIS GUI.
QgsRecentStyleHandler(const QgsRecentStyleHandler &other)=delete
QgsRecentStyleHandler()
Creates a new recent style handler.
std::unique_ptr< SymbolType > recentSymbol(const QString &identifier) const
Returns a copy of the recently used symbol with the specified identifier, or nullptr if no symbol wit...
QgsRecentStyleHandler & operator=(const QgsRecentStyleHandler &other)=delete
Abstract base class for all rendered symbols.