View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007604 | Scribus | Scripter | public | 2008-11-11 16:18 | 2014-07-03 04:51 |
Reporter | henryhartley | Assigned To | subik | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | assigned | Resolution | open | ||
Target Version | 1.6 milestone | ||||
Summary | 0007604: New Scripter Dialog Request | ||||
Description | It would be nice to have one or more new dialogs available to the scripter API. Specifically, some way to ask users to either select one or select one or more items from a list. I don't really care how it's handled on the back-end or the syntax, but a suggestion would be to pass an associative array with the keys being the values passed to the scripter for the values being selected, along with a flag specifying whether the user may select one only or more than one. So, for instance, months = {'1':'January', '2':'February', ... } thisMonth = selectDialog(months, 'single') would produce a dialog with a list of radio buttons (or a drop-down list) allowing one month to be selected. If February is selected, then '2' will be assigned to thisMonth. As an alternative to 'single' and 'multiple', it might be even better to use 'radio', 'checkbox', 'list', and 'listmulti' where radio and list allow one option to be selected, checkbox and listmulti allow multiple items to be selected. If instead of an associative array, a simple array is passed, the items in the array would be both the value passed and the displayed text. | ||||
Tags | No tags attached. | ||||
Patch | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2008-11-11 16:18 | henryhartley | New Issue | |
2008-11-12 20:57 | jghali | Note Added: 0020652 | |
2009-02-12 20:33 | cbradney | Status | new => assigned |
2009-02-12 20:33 | cbradney | Assigned To | => subik |
2009-02-12 20:33 | cbradney | Target Version | => 1.3.6 |
2014-07-03 04:51 | Kunda | Target Version | 1.5.0 => 1.6 milestone |