Inherited by WidgetFileCommon [virtual], WidgetLoadFile [virtual], and WidgetSaveFile [virtual].
Public Member Functions | |
| void | activeFilter (unsigned filterNo) |
| Sets the active filter to the specified index. | |
| void | addFilter (const SmartUtil::tstring &filterName, const SmartUtil::tstring &filter) |
| Adds a filter to the object. | |
| unsigned | getActiveFilter () const |
| Returns the active filter of the object. | |
Class is an Aspect class which should be realized into classes that needs it.
Help the WidgetLoadFile and the WidgetSaveFile to add up filters on which file types to look for!
| void activeFilter | ( | unsigned | filterNo | ) |
Sets the active filter to the specified index.
If you have added five filters and set the active filter to 3 then the fourth filter you added will be the active filter. Active filter means the default filter used when first showing the dialog.
| void addFilter | ( | const SmartUtil::tstring & | filterName, | |
| const SmartUtil::tstring & | filter | |||
| ) |
Adds a filter to the object.
filterName is the friendly name of the filter, normally this would be e.g. "HTML Files" etc. filter is the actual filter to filter in files to show normally this would be e.g. "*.html".
| unsigned getActiveFilter | ( | ) | const |
Returns the active filter of the object.
The active filter is the "currently selected" filter of the filter class