DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
|
#include <palettemanager.h>
Public Member Functions | |
PaletteManager () | |
~PaletteManager () | |
const Palette & | palette (PaletteRole) const |
std::shared_ptr< Palette > | palette (const QString &n) const |
void | setPalette (PaletteRole n, const Palette &palette) |
int | paletteCount () const |
bool | isPalettePresent (const QString &name) const |
void | removePalette (const QString &name) |
void | removePalette (const Palette &view) |
Static Public Member Functions | |
static PaletteManager * | instance () |
Protected Types | |
typedef QMap< QString, std::shared_ptr< Palette > > | PaletteMapContainer |
typedef QList< std::shared_ptr< Palette > > | PaletteListContainer |
Protected Attributes | |
PaletteMapContainer | m_map |
PaletteListContainer | m_list |
Static Protected Attributes | |
static PaletteManager * | mInstance = 0 |
static const QString | defaultPaletteFileNames [] |
|
protected |
|
protected |
PaletteManager::PaletteManager | ( | ) |
PaletteManager::~PaletteManager | ( | ) |
|
inlinestatic |
bool PaletteManager::isPalettePresent | ( | const QString & | name | ) | const |
const Palette & PaletteManager::palette | ( | PaletteRole | n | ) | const |
std::shared_ptr< Palette > PaletteManager::palette | ( | const QString & | n | ) | const |
int PaletteManager::paletteCount | ( | ) | const |
void PaletteManager::removePalette | ( | const QString & | name | ) |
void PaletteManager::removePalette | ( | const Palette & | view | ) |
void PaletteManager::setPalette | ( | PaletteRole | n, |
const Palette & | palette | ||
) |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |