This interface is used to access caption properties. Note that the text in captions is in html format.
More...
|
|
int | numberOfPanelCaptions () |
| returns number of panel captions
|
|
String | nameOfPanelCaption (int index) |
| returns name of the panel caption at index
|
|
String | textOfPanelCaption (String &name, String &panelId) |
| returns text of the panel caption
|
|
bool | addPanelCaption (String &name) |
| adds a panel caption
|
|
bool | addPanelSketch (String &name, String &panelId) |
| adds a panel sketch
|
|
bool | deletePanelCaption (String &name) |
| deletes a panel caption
|
|
bool | deletePanelSketch (String &name, String &panelId) |
| deletes a panel sketch
|
|
bool | renamePanelCaption (String &name, String &newName) |
| renames a panel caption
|
|
bool | renamePanelSketch (String &name, String &panelId, String &newName) |
| renames a panel sketch
|
|
bool | setPanelCaptionText (String &name, String &panelId, String &text) |
| sets text on a panel caption
|
|
|
int | numberOfProjectCaptions () |
| returns number of project captions
|
|
String | nameOfProjectCaption (int index) |
| returns name of the panel caption at index
|
|
bool | addProjectCaption (String &name) |
| adds a project caption
|
|
String | textOfProjectCaption (String &name) |
| returns text of the project caption
|
|
bool | deleteProjectCaption (String &name) |
| deletes a project caption
|
|
bool | renameProjectCaption (String &name, String &newName) |
| renames a project caption
|
|
bool | setProjectCaptionText (String &name, String &text) |
| sets new text in a project caption
|
|
This interface is used to access caption properties. Note that the text in captions is in html format.
The following examples are provided:
var panelId = sb.panelInProject(0);
var str = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">
<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">
p, li { white-space: pre-wrap; }
</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">
<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">New Text</p></body></html>";
if ( cm.addPanelCaption("Private Notes") )
cm.setPanelCaptionText( "Private Notes", panelId, str );