RPL Global User-defined Functions -- 4-29-2009 (b) http://cadswes2.colorado.edu/~philw/2009/GlobalRplFunctions/ Fixes to Recent File History for RplSet Files (1) RplDlgMgr::saveRplSet wasn't using file history data at all, and the file selection dialog wasn't providing filename filters specific to the Rpl Application. (2) Fixes to the new recent file history support for Global Function Set files. --------------------- Q3GUI/LoadSaveMgr.hpp Q3GUI/LoadSaveMgr.cpp --------------------- (1) Filename filter strings are now available to other modules, via 'c' extern: extern const char* FILTER_STR_MODEL_FILES; extern const char* FILTER_STR_RULESET_FILES; extern const char* FILTER_STR_OPTSET_FILES; extern const char* FILTER_STR_GBLSET_FILES; (2) Implemented missing components of support for recent file histories of Global Function Sets: QString _selectedFilter_gblSetFiles; QString& selFilterRef_gblsets() { return _selectedFilter_gblSetFiles; } static const char* KEYBASE_SELFILT_GBLSET ("FiltGblSet"); (3) These LoadSaveMgr methods are now public: QString recentModelPath() const; QString recentRuleSetPath() const; QString recentOptSetPath() const; QString recentGblSetPath() const; QString recentObjPath() const; void recordDirPath (const QString& path, bool saveOp); // or loadOp? void recordModelPath (const QString& path, bool saveOp); // or loadOp? void recordRuleSetPath (const QString& path, bool saveOp); // or loadOp? void recordOptSetPath (const QString& path, bool saveOp); // or loadOp? void recordGblSetPath (const QString& path, bool saveOp); // or loadOp? void recordObjPath (const QString& path, bool saveOp); // or loadOp? (4) Added these public methods: QString recentDir() const; QString recentModelDir() const; QString recentRuleSetDir() const; QString recentOptSetDir() const; QString recentGblSetDir() const; QString recentObjDir() const; --------------------- QtRpl/RplDlgMgr.hpp QtRpl/RplDlgMgr.cpp --------------------- Changes to RplDlgMgr::saveRplSet (RplObj*, bool selectName, bool taggedOnly) (1) The Qt4-proper (not Qt3-compatibility) "Save File Chooser" is now used. (2) The dialog box caption is now specific to the Rpl Application: For export: "Export RPL File To ..." RplApplication::RBS: "Save RuleSet File To ..." RplApplication::OPT: "Save Optimization Policy Set File To ..." RplApplication::GLOBAL: "Save Global Function Set File To ..."; (3) File Filters and the last used filter are now based on the mechanism within Q3GUI/LoadSaveMgr. (4) User file and directory selections are now saved in the Q3GUI/LoadSaveMgr mechanism supporting file histories, specific to the particular RPL application type. ---