myCaption( caption ),
myOpen ( open ) {}
virtual void Execute() {
- if ( /*SalomeApp_Study* aStudy = */getActiveStudy() ) {
- // VSR: TODO
- // myResult = QAD_FileDlg::getFileName(parent, initial, filters, caption, open);
+ if ( SalomeApp_Application* anApp = getApplication() ) {
+ myResult = anApp->getFileName( myOpen, myInitial, myFilters.join(";;"), myCaption, myParent );
}
}
};
myFilters( filters ),
myCaption( caption ) {}
virtual void Execute() {
- if ( /*SalomeApp_Study* aStudy = */getActiveStudy() ) {
- // VSR: TODO
- // myResult = QAD_FileDlg::getOpenFileNames(parent, initial, filters, caption);
+ if ( SalomeApp_Application* anApp = getApplication() ) {
+ myResult = anApp->getOpenFileNames( myInitial, myFilters.join(";;"), myCaption, myParent );
}
}
};
myInitial( initial ),
myCaption( caption ) {}
virtual void Execute() {
- if ( /*SalomeApp_Study* aStudy = */getActiveStudy() ) {
- // VSR: TODO
- // myResult = QAD_FileDlg::getExistingDirectory(parent, initial, caption);
+ if ( SalomeApp_Application* anApp = getApplication() ) {
+ myResult = anApp->getDirectory( myInitial, myCaption, myParent );
}
}
};
return SUIT_FileDlg::getExistingDirectory( parent, initial, caption, true );
}
+QStringList SalomeApp_Application::getOpenFileNames( const QString& initial, const QString& filters,
+ const QString& caption, QWidget* parent )
+{
+ if ( !parent )
+ parent = desktop();
+ QStringList fls = QStringList::split( ";;", filters, false );
+ return SUIT_FileDlg::getOpenFileNames( parent, initial, fls, caption, true );
+}
+
void SalomeApp_Application::contextMenuPopup( const QString& type, QPopupMenu* thePopup, QString& title )
{
CAM_Application::contextMenuPopup( type, thePopup, title );
virtual QString getFileFilter() const;
virtual QString getFileName( bool open, const QString& initial, const QString& filters,
const QString& caption, QWidget* parent );
- QString getDirectory( const QString& initial, const QString& caption, QWidget* parent );
+ virtual QString getDirectory( const QString& initial, const QString& caption, QWidget* parent );
+ virtual QStringList getOpenFileNames( const QString& initial, const QString& filters,
+ const QString& caption, QWidget* parent );
SUIT_ViewManager* getViewManager( const QString&, const bool );