Scribus
Open source desktop publishing at your fingertips
OpenPaletteManager Class Reference

#include <openpalettemanager.h>

Inheritance diagram for OpenPaletteManager:
Collaboration diagram for OpenPaletteManager:

Signals

void changed ()
 

Static Public Member Functions

static void savePaletteCollection (const QString &filepath)
 
static void loadPaletteCollection (const QString &filepath)
 
static void newPalette (QWidget *parent=0)
 
static unsigned int count ()
 
static QString title (unsigned int idx)
 
static QVariant paletteProperty (unsigned int idx, const QString &prop)
 
static bool paletteProperty (unsigned int idx, const QString &prop, const QVariant &val)
 
static QStringList items (unsigned int idx)
 
static void setItems (unsigned int idx, const QStringList &ilist)
 
static void subChanges (QObject *subscriber, const char *method)
 

Detailed Description

This manager maintains records of instanciated open palettesand is able to serialize the whole palettes collection for further reload. It is a singleton (hard one if I can say (no means to grab an instance of it))

Member Function Documentation

unsigned int OpenPaletteManager::count ( )
static

Return number of palettes

QStringList OpenPaletteManager::items ( unsigned int  idx)
static

Return the list of setters attached to the palette at index idx

void OpenPaletteManager::loadPaletteCollection ( const QString &  filepath)
static

Load palettes configuration from an XML file

void OpenPaletteManager::newPalette ( QWidget *  parent = 0)
static

create a new OpenPalette

QVariant OpenPaletteManager::paletteProperty ( unsigned int  idx,
const QString &  prop 
)
static

Return a property of a palette

bool OpenPaletteManager::paletteProperty ( unsigned int  idx,
const QString &  prop,
const QVariant &  val 
)
static

Set A property of a palette

void OpenPaletteManager::savePaletteCollection ( const QString &  filepath)
static

Save the configuration of the palettes in an XML file

void OpenPaletteManager::setItems ( unsigned int  idx,
const QStringList &  ilist 
)
static

Reset the list of setters attached to the palette at index idx

void OpenPaletteManager::subChanges ( QObject *  subscriber,
const char *  method 
)
static

subscribe to changes notifications

QString OpenPaletteManager::title ( unsigned int  idx)
static

Return the name of the palette at index idx


The documentation for this class was generated from the following files: