Skip to content
  • Robert M. O'Bara's avatar
    ENH: Fixes to qtFileItem · 4a0e1be8
    Robert M. O'Bara authored
    1. Need to allow entry box updates that does not require the widget to be recreated
    2. Deleting values from an extensible item does not properly work
    3. Even fixed sized items should be displayed vertically
    4. Labels are not properly displayed
    
    Added ItemView Options to control aspects of the GUI:
    
    1. ShowRecentFiles="true/false" - if the file must already exist, this option, when true, will
       display previous values using a combobox - default is false
    2. ShowFileExtensions="true/false" - if the file is not required to already exist, and there are
       a set of suffixes associated with the item, this option, when true, will display the suffixes
       using a combobox - default is false
    3. UseFileDirectory="true/false" - if true and if the value is set, the file browser will open in
       the directory of the current value.  If the current value's directory does not exist the browser
       will either use the DefaultDirectoryProperty value or revert to its default behavior - default
       is true
    4. DefaultDirectoryProperty="nameOfResourceStringProperty" - if set and the string vector property
       value on the item's attribute resource exists and refers to an existing directory.
       the file browser will open in the directory refereed to by the property value
    
    See fileItemExample.sbt and fileItemExample.smtk as examples.  Note that to demonstrate
    DefaultDirectoryProperty using these files you will need to create a string property called
    testDir and set it to something valid.
    
    Also changed the advance level for the SetProperty Operation so it can be used in ModelBuilder
    4a0e1be8