| Classes | |
| class | ProgressLog | 
| PROGRESS LOGGER.  More... | |
| Functions | |
| def | fileBrowser | 
| FILE FOLDER BROWSER.  More... | |
| def | folderBrowser | 
| Call a folder browser UI.  More... | |
| def | pickSession | 
| PICK SESSION.  More... | |
| def | pickSessionMulti | 
| Launch a pickSession for multiple objects.  More... | |
| def | pickPosition | 
| Launch a pick position session for a unique position.  More... | |
| def | pickPositionMulti | 
| Launch a pick position session for multiple positions.  More... | |
| def | msgBox | 
| MESSAGE BOX.  More... | |
| def | popWindow | 
| POP WINDOW.  More... | |
| def | progressBar | 
| PROGRESS BAR.  More... | |
| def | resetProgressBar | 
| Reset a ProgressBar (XSI Object).  More... | |
This file is part of GEAR_mc. GEAR_mc is a fork of Jeremie Passerin's GEAR project. GEAR is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/lgpl.html>. Author: Jeremie Passerin geerem@hotmail.com www.jeremiepasserin.com Fork Author: Miquel Campos hello@miqueltd.com www.miqueltd.com Date: 2013 / 08 / 16
| def gear.xsi.uitoolkit.fileBrowser | ( | title, | |
| initialDirectory = xsi.ActiveProject2.OriginPath, | |||
| fileName = "", | |||
| filters = [], | |||
| save = False | |||
| ) | 
FILE FOLDER BROWSER.
======================================================== Call a file browser UI.
| title | String - Name of the UI. | 
| initialDirectory | String - Initial path of the file browser. | 
| fileName | String - Initial name of the file. | 
| filters | List of String - List of extension to filter. | 
| save | Boolean - True to make it a saving UI. (Will ask confirmation of the file already exists) | 
| def gear.xsi.uitoolkit.folderBrowser | ( | title, | |
| initialDirectory | |||
| ) | 
Call a folder browser UI.
| title | String - Name of the UI. | 
| initialDirectory | String - Initial path of the file browser. | 
| def gear.xsi.uitoolkit.msgBox | ( | message, | |
| flag = c.siMsgExclamation, | |||
| caption = "" | |||
| ) | 
MESSAGE BOX.
======================================================== Open a message box ui.
| message | String - Text to display. | 
| flag | String - Flags to control the appearance of the dialog. | 
| caption | String - Text to show in the title of the Message Box. | 
| def gear.xsi.uitoolkit.pickPosition | ( | message = "Pick position", | |
| logWarning = True | |||
| ) | 
Launch a pick position session for a unique position.
| message | String - Help message for picking session. | 
| logWarning | Boolean - True to log a warning if pick session is aborded. | 
| def gear.xsi.uitoolkit.pickPositionMulti | ( | message = "Pick position", | |
| logWarning = True, | |||
| minimum = 1, | |||
| maximum = -1 | |||
| ) | 
Launch a pick position session for multiple positions.
| message | String - Help message for picking session. | 
| logWarning | Boolean - True to log a warning if pick session is aborded. | 
| minimum | Integer - Minimum number position picked. | 
| maximum | Integer - Maximum number of position picked. (set to -1 for infinite) | 
| def gear.xsi.uitoolkit.pickSession | ( | objectFilter = c.siGenericObjectFilter, | |
| message = "Pick Object", | |||
| logWarning = True | |||
| ) | 
PICK SESSION.
======================================================== Launch a pickSession for a unique object.
| objectFilter | String - Object filter. | 
| message | String - Help message for picking session. | 
| logWarning | Boolean - True to log a warning if pick session is aborded. | 
| def gear.xsi.uitoolkit.pickSessionMulti | ( | objectFilter = c.siGenericObjectFilter, | |
| message = "Pick Object", | |||
| logWarning = True, | |||
| minimum = 1, | |||
| maximum = -1 | |||
| ) | 
Launch a pickSession for multiple objects.
| objectFilter | String - Object filter. | 
| message | String - Help message for picking session. | 
| logWarning | Boolean - True to log a warning if pick session is aborded. | 
| minimum | Integer - Minimum number position picked. | 
| maximum | Integer - Maximum number of position picked. (set to -1 for infinite) | 
| def gear.xsi.uitoolkit.popWindow | ( | prop, | |
| width = 100, | |||
| height = 100, | |||
| posX = None, | |||
| posY = None | |||
| ) | 
POP WINDOW.
======================================================== Open property.
| prop | Property - The property to open. | 
| width | Integer - Width of the window. | 
| height | Integer - Height of the window. | 
| posX | Integer - X position of the window. | 
| posY | Integer - Y position of the window. | 
| def gear.xsi.uitoolkit.progressBar | ( | maximum, | |
| step, | |||
| caption, | |||
| statusText, | |||
| cancel | |||
| ) | 
PROGRESS BAR.
======================================================== Create a ProgressBar (XSI Object).
| maximum | Double - Maximum length of the progressbar. | 
| step | Double - step of progression. | 
| caption | String - Main caption text. | 
| statutText | String - secondary caption text. | 
| cancel | Boolean - Display a cancel button on the progress bar. | 
| def gear.xsi.uitoolkit.resetProgressBar | ( | progressBar, | |
| maximum = None, | |||
| step = None, | |||
| caption = None, | |||
| statusText = None | |||
| ) | 
Reset a ProgressBar (XSI Object).
| progressBar | ProgressBar. | 
| maximum | Double - Maximum length of the progressbar. | 
| step | Double - step of progression. | 
| caption | String - Main caption text. | 
| statutText | String - secondary caption text. | 
 1.8.5
 1.8.5