query information from the Colour view
More...
#include <colorUI.h>
|
QString | getCurrentColorId () |
| Gets the current color Id from the ColourView.
|
|
QString | getCurrentColorName () |
| Gets the current color name from the ColourView.
|
|
QString | getCurrentPaletteId () |
| Gets the current palette id from the ColourView.
|
|
QString | getCurrentPaletteName () |
| Gets the current palette name from the ColourView.
|
|
QString | getCurrentPalettePath () |
| Gets the current palette path (including palette name) from the ColourView.
|
|
void | setCurrentPaletteById (QString palette) |
| Sets the current palette in the ColourView.
|
|
void | setCurrentColorById (QString color) |
| Sets the current color in the ColourView.
|
|
void | setCurrentPaletteAndColorById (QString palette, QString color) |
| Sets the current palette and colour in the ColourView.
|
|
int | getCurrentPaletteSize () |
| gets the length of the current palette in the ColourView
|
|
QString | getColorName (int index) |
| Gets the name of the the colour in the currently selected palette.
|
|
QString | getColorId (int index) |
| Gets the id of the the colour in the currently selected palette.
|
|
int | getNumPalettes () |
| Gets number of palettes in the current selected palette list in ColourView list.
|
|
int | getNumPalettes (bool scenePaletteList) |
| Gets number of palettes in palette list in ColourView.
|
|
QString | getPaletteName (int index) |
| Gets the name of the palette in the current palette list.
|
|
QString | getPaletteName (int index, bool scenePaletteList) |
| Gets the name of the palette in the current palette list.
|
|
QString | getPalettePath (int index) |
| Gets the path (including name) of the palette in the current palette list.
|
|
QString | getPalettePath (int index, bool scenePaletteList) |
| Gets the path (including name) of the palette in the current palette list.
|
|
QString | getPaletteId (int index) |
| Gets the id of the palette in the current palette list.
|
|
QString | getPaletteId (int index, bool scenePaletteList) |
| Gets the id of the palette in the current palette list.
|
|
query information from the Colour view
An example of how to use the palette override attributes of the colour override module, using the PaletteManager:
Available attributes for getTextAttr:
- PALETTES.NUMBER - returns the number of palettes in the palette override list
- PALETTES.x, where x is a palette index - return the palette name (path) of the palette at index x (x >= 0)
If no x, or it's invalid, assume a value of 0
Available attributes for setTextAttr:
- PALETTES.CLEAR - clear the palette override list
- PALETTES.ADD "palette_path" - add the palette with full path name to the palette override list. Can supply the full path or get from PaletteManager.getPalettePath(), PaletteManager.getCurrentPalettePath()
- PALETTES.REMOVE "palette_path" - remove a palette. Can supply the full path or get from getTextAttr("node_path", atFrame, "PALETTES.x")
Note that the frame number argument (to node.getTextAttr() and node.setTextAttr()) is unused, and the attribute value in "PALETTES.CLEAR" is unused.
function paletteOverrideExample()
{
return;
var index = parseInt(num);
index--;
var attr = "PALETTES." + index;
}
QString PaletteManager::getColorId |
( |
int |
index | ) |
|
|
slot |
Gets the id of the the colour in the currently selected palette.
- Parameters
-
index | - index of colour in palette |
QString PaletteManager::getColorName |
( |
int |
index | ) |
|
|
slot |
Gets the name of the the colour in the currently selected palette.
- Parameters
-
index | - index of colour in palette |
QString PaletteManager::getCurrentColorId |
( |
| ) |
|
|
slot |
Gets the current color Id from the ColourView.
QString PaletteManager::getCurrentColorName |
( |
| ) |
|
|
slot |
Gets the current color name from the ColourView.
QString PaletteManager::getCurrentPaletteId |
( |
| ) |
|
|
slot |
Gets the current palette id from the ColourView.
QString PaletteManager::getCurrentPaletteName |
( |
| ) |
|
|
slot |
Gets the current palette name from the ColourView.
QString PaletteManager::getCurrentPalettePath |
( |
| ) |
|
|
slot |
Gets the current palette path (including palette name) from the ColourView.
int PaletteManager::getCurrentPaletteSize |
( |
| ) |
|
|
slot |
gets the length of the current palette in the ColourView
int PaletteManager::getNumPalettes |
( |
| ) |
|
|
slot |
Gets number of palettes in the current selected palette list in ColourView list.
- Parameters
-
int PaletteManager::getNumPalettes |
( |
bool |
scenePaletteList | ) |
|
|
slot |
Gets number of palettes in palette list in ColourView.
- Parameters
-
scenePaletteList | - whether to check scene palette list or element palette list |
QString PaletteManager::getPaletteId |
( |
int |
index | ) |
|
|
slot |
Gets the id of the palette in the current palette list.
- Parameters
-
index | - index of palette within palette list |
QString PaletteManager::getPaletteId |
( |
int |
index, |
|
|
bool |
scenePaletteList |
|
) |
| |
|
slot |
Gets the id of the palette in the current palette list.
- Parameters
-
index | - index of palette within palette list |
scenePaletteList | - whether to check scene palette list or element palette list |
QString PaletteManager::getPaletteName |
( |
int |
index | ) |
|
|
slot |
Gets the name of the palette in the current palette list.
- Parameters
-
index | - index of palette within palette list |
QString PaletteManager::getPaletteName |
( |
int |
index, |
|
|
bool |
scenePaletteList |
|
) |
| |
|
slot |
Gets the name of the palette in the current palette list.
- Parameters
-
index | - index of palette within palette list |
scenePaletteList | - whether to check scene palette list or element palette list |
QString PaletteManager::getPalettePath |
( |
int |
index | ) |
|
|
slot |
Gets the path (including name) of the palette in the current palette list.
- Parameters
-
index | - index of palette within palette list |
QString PaletteManager::getPalettePath |
( |
int |
index, |
|
|
bool |
scenePaletteList |
|
) |
| |
|
slot |
Gets the path (including name) of the palette in the current palette list.
- Parameters
-
index | - index of palette within palette list |
scenePaletteList | - whether to check scene palette list or element palette list |
void PaletteManager::setCurrentColorById |
( |
QString |
color | ) |
|
|
slot |
Sets the current color in the ColourView.
- Parameters
-
void PaletteManager::setCurrentPaletteAndColorById |
( |
QString |
palette, |
|
|
QString |
color |
|
) |
| |
|
slot |
Sets the current palette and colour in the ColourView.
- Parameters
-
palette | - palette id |
color | - color id |
void PaletteManager::setCurrentPaletteById |
( |
QString |
palette | ) |
|
|
slot |
Sets the current palette in the ColourView.
- Parameters
-
The documentation for this class was generated from the following file: