if ( !aVM->getActiveView() )
aVM->createView();
else
- aVM->getActiveView()->setFocus();
+ desktop()->setActiveWindow( aVM->getActiveView() );
}
else if ( create )
aVM = createViewManager( vmType );
return wnd;
}
+/*!
+ Set active window
+ \param wnd - view window
+*/
+void STD_TabDesktop::setActiveWindow(SUIT_ViewWindow* wnd)
+{
+ if (wnd) {
+ myWorkstack->setActiveWindow(wnd);
+ wnd->setFocus();
+ }
+}
+
/*!
\retval QPtrList<SUIT_ViewWindow> - return const active window list.
*/
virtual ~STD_TabDesktop();
virtual SUIT_ViewWindow* activeWindow() const;
+ virtual void setActiveWindow(SUIT_ViewWindow*);
virtual QList<SUIT_ViewWindow*> windows() const;
void windowOperation( const int );
{
emit message( theMessage );
}
+
+/*!
+ Activate window (default implementation just sets focus to the window.
+*/
+void SUIT_Desktop::setActiveWindow(SUIT_ViewWindow* wnd)
+{
+ if (wnd) wnd->setFocus();
+}
QtxLogoMgr* logoMgr() const;
virtual SUIT_ViewWindow* activeWindow() const = 0;
+ virtual void setActiveWindow(SUIT_ViewWindow*);
virtual QList<SUIT_ViewWindow*> windows() const = 0;
int logoCount() const;