// Author : Francis KLOSS
// Module : SUPERV
-using namespace std;
-
#include "SUPERVGUI_Notification.h"
#include "SUPERVGUI_Main.h"
#include "SUPERVGUI_CanvasNode.h"
#include "NOTIFICATION.hxx"
-#include "QAD_Message.h"
-#include "QAD_FileDlg.h"
+#include "SUIT_Desktop.h"
+#include "SUIT_FileDlg.h"
+#include "SUIT_Session.h"
#include <qlayout.h>
#include <qlabel.h>
Constructor
*/
SUPERVGUI_Notification::SUPERVGUI_Notification( SUPERVGUI_Main* m )
- : QDialog( QAD_Application::getDesktop(), "", TRUE, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ),
+ : QDialog( SUIT_Session::session()->activeApplication()->desktop(), "", TRUE, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ),
myMain( m )
{
setCaption( tr( "TLT_FILTER_NOTIFY" ) );
myMainNotif->setVerbose( false );
/* nodes notification */
- QObjectList* ihmList = myMain->/*getGraph()->*/queryList( "SUPERVGUI_CanvasNode" );
+ // mkr : PAL7037 -->
+ //QObjectList* ihmList = myMain->/*getGraph()->*/queryList( "SUPERVGUI_CanvasNode" );
+ QObjectList* ihmList;
+ if ( myMain->getViewType() == CANVASTABLE )
+ ihmList = myMain->getCanvasArray()->queryList( "SUPERVGUI_CanvasNode" );
+ else
+ ihmList = myMain->getCanvas()->queryList( "SUPERVGUI_CanvasNode" );
+ // mkr : PAL7037 <--
QObjectListIt i( *ihmList );
SUPERVGUI_CanvasNode* theNode;
while ( ( theNode = ( ( SUPERVGUI_CanvasNode* )i.current() ) ) != 0) {
*/
void SUPERVGUI_Notification::browseClicked()
{
- QString fn = QAD_FileDlg::getFileName( this,
- myFileEdit->text(),
- tr( "ALL_FILES" ),
- tr( "CHOOSE_LOG_FILES_TLT" ),
- false );
+ QString fn = SUIT_FileDlg::getFileName( this,
+ myFileEdit->text(),
+ tr( "ALL_FILES" ),
+ tr( "CHOOSE_LOG_FILES_TLT" ),
+ false );
if ( !fn.isEmpty() )
myFileEdit->setText( fn );
}