|
|
int | numberOfPanelCaptions () |
| Return the number of panel captions. More...
|
|
String | nameOfPanelCaption (int index) |
| Return the name of the panel caption at the given index. More...
|
|
String | textOfPanelCaption (String &name, String &panelId) |
| Return the text of the panel caption. More...
|
|
bool | addPanelCaption (String &name) |
| Add a panel caption. More...
|
|
bool | addPanelSketch (String &name, String &panelId) |
| Add a panel sketch. More...
|
|
bool | deletePanelCaption (String &name) |
| Delete a panel caption. More...
|
|
bool | deletePanelSketch (String &name, String &panelId) |
| Delete a panel sketch. More...
|
|
bool | renamePanelCaption (String &name, String &newName) |
| Rename a panel caption. More...
|
|
bool | renamePanelSketch (String &name, String &panelId, String &newName) |
| Rename a panel sketch. More...
|
|
bool | setPanelCaptionText (String &name, String &panelId, String &text) |
| Set text on a panel caption. More...
|
|
|
int | numberOfProjectCaptions () |
| Return the number of project captions. More...
|
|
String | nameOfProjectCaption (int index) |
| Return the name of the panel caption at the given index. More...
|
|
bool | addProjectCaption (String &name) |
| Add a project caption. More...
|
|
String | textOfProjectCaption (String &name) |
| Return the text of the project caption. More...
|
|
bool | deleteProjectCaption (String &name) |
| Delete a project caption. More...
|
|
bool | renameProjectCaption (String &name, String &newName) |
| Rename a project caption. More...
|
|
bool | setProjectCaptionText (String &name, String &text) |
| Set new text in a project caption. More...
|
|
The CaptionManager JavaScript class. Access the caption properties of a panel.
- Note
- The text in captions is in the html format.
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);