if ( myMap.contains( type ) ) {
IdActionMap idActionMap = myMap[type];
if ( idActionMap.contains( key ) ) {
- vw->onAccelAction( idActionMap[key] );
- return true;
+ return vw->onAccelAction( idActionMap[key] );
}
}
}
/*! Called by SUIT_Accel::onActivated() when a key accelerator was activated and this window was active
*/
-void SUIT_ViewWindow::onAccelAction( int _action )
+bool SUIT_ViewWindow::onAccelAction( int _action )
{
- action( _action );
+ return action( _action );
}
/*! action handle standard action (zoom, pan) or custom action. to be redefined in successors.
*/
-void SUIT_ViewWindow::action( const int )
+bool SUIT_ViewWindow::action( const int )
{
+ return true;
}
/*!
virtual QImage dumpView();
virtual bool dumpViewToFormat( const QString& fileName, const QString& format );
- void onAccelAction( int );
+ bool onAccelAction( int );
virtual QString getVisualParameters();
virtual void setVisualParameters( const QString& parameters );
void closeEvent( QCloseEvent* );
virtual void contextMenuEvent( QContextMenuEvent* );
virtual QString filter() const;
- virtual void action( const int );
+ virtual bool action( const int );
SUIT_Desktop* myDesktop;
SUIT_ViewManager* myManager;