16 #ifndef QGSRECENTSTYLEHANDLER_H 
   17 #define QGSRECENTSTYLEHANDLER_H 
   20 #include "qgis_core.h" 
   23 #include <unordered_map> 
   96     template <
class SymbolType> std::unique_ptr< SymbolType > 
recentSymbol( 
const QString &identifier ) 
const SIP_SKIP 
   98       std::unique_ptr< QgsSymbol > tmpSymbol( recentSymbol( identifier ) );
 
   99       if ( SymbolType *symbolCastToType = 
dynamic_cast<SymbolType *
>( tmpSymbol.get() ) )
 
  101         return std::unique_ptr< SymbolType >( 
dynamic_cast<SymbolType *
>( tmpSymbol.release() ) );
 
  116     std::unordered_map< QString, std::unique_ptr< QgsSymbol > > mRecentSymbols;
 
Handles and tracks style items recently used in the QGIS GUI.
QgsRecentStyleHandler & operator=(const QgsRecentStyleHandler &other)=delete
QgsRecentStyleHandler cannot be copied.
QgsRecentStyleHandler(const QgsRecentStyleHandler &other)=delete
QgsRecentStyleHandler cannot be copied.
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...
Abstract base class for all rendered symbols.