The PenstyleManager JavaScript global object. Query/modify the current penstyle and list of penstyles. More...
Public Slots | |
String | currentToolName () |
Returns the name of the currently active tool. More... | |
int | getNumberOfPenstyles () |
Returns the number of penstyles. More... | |
String | getPenstyleName (int index) |
Returns the name of the penstyle at the given index for the current tool. More... | |
int | getCurrentPenstyleIndex () |
Returns the index of the current penstyle for the active tool. More... | |
String | getCurrentPenstyleName () |
Returns the name of the current penstyle for the active tool. More... | |
void | setCurrentPenstyleByName (String name) |
Sets the current penstyle for the active tool. More... | |
void | setCurrentPenstyleByIndex (int index) |
Sets the current penstyle for the active tool. More... | |
void | changeCurrentPenstyleMinimumSize (double minimum) |
Sets the current penstyle minimum size. More... | |
void | changeCurrentPenstyleMaximumSize (double maximum) |
Sets the current penstyle maximum size. More... | |
void | changeCurrentPenstyleOutlineSmoothness (double smooth) |
Sets the current penstyle outline smoothness. More... | |
void | changeCurrentPenstyleCenterlineSmoothness (double smooth) |
Sets the current penstyle centreline smoothness. More... | |
double | getCurrentPenstyleMinimumSize () |
Gets the current penstyle minimum size. More... | |
double | getCurrentPenstyleMaximumSize () |
Gets the current penstyle maximum size. More... | |
double | getCurrentPenstyleOutlineSmoothness () |
Gets the current penstyle outline smoothness. More... | |
double | getCurrentPenstyleCenterlineSmoothness () |
Gets the current penstyle centerline smoothness. More... | |
bool | getCurrentPenstyleEraserFlag () |
Gets the current penstyle eraser flag. More... | |
String | exportPenstyleToString (int index) |
Create a string representing the penstyle which can be used to store the penstyle and import it later. More... | |
String | exportPenstyleListToString () |
Formats the penstyle list into a string, which can be used to store the penstyle list and import it later. More... | |
void | importPenstyleListFromString (String str) |
Imports a penstyle list from a previously formatted penstyle string. More... | |
void | savePenstyles () |
Saves the penstyles. More... | |
The PenstyleManager JavaScript global object. Query/modify the current penstyle and list of penstyles.
The list of penstyles differs by active tool. Query the currentToolId to know which list is active.
|
slot |
Sets the current penstyle centreline smoothness.
smooth | : New centreline smoothness value. |
|
slot |
Sets the current penstyle maximum size.
maximum | : New maximum size. |
|
slot |
Sets the current penstyle minimum size.
minimum | : New minimum size. |
|
slot |
Sets the current penstyle outline smoothness.
smooth | : New outline smoothness value. |
|
slot |
Returns the name of the currently active tool.
Pen styles are separated by tools. Use this value to know which set of pen styles are currently active.
|
slot |
Formats the penstyle list into a string, which can be used to store the penstyle list and import it later.
|
slot |
Create a string representing the penstyle which can be used to store the penstyle and import it later.
index | : Index of the penstyle. |
|
slot |
Gets the current penstyle centerline smoothness.
|
slot |
Gets the current penstyle eraser flag.
|
slot |
Returns the index of the current penstyle for the active tool.
|
slot |
Gets the current penstyle maximum size.
|
slot |
Gets the current penstyle minimum size.
|
slot |
Returns the name of the current penstyle for the active tool.
|
slot |
Gets the current penstyle outline smoothness.
|
slot |
Returns the number of penstyles.
|
slot |
Returns the name of the penstyle at the given index for the current tool.
index | : Index of the penstyle. |
|
slot |
Imports a penstyle list from a previously formatted penstyle string.
str | : A formatted penstyle or penstyle list, which can be created from exportPenstyleToString or exportPenstylesListToString. |
|
slot |
Saves the penstyles.
|
slot |
Sets the current penstyle for the active tool.
index | : Index of penstyle to be set as current penstyle. |
|
slot |
Sets the current penstyle for the active tool.
name | : Name of the penstyle to be set as current penstyle. |