78 virtual QObject* GetQObject () = 0;
86 virtual int GetWindowsCount ()
const = 0;
94 virtual int GetPreferredWindowIndex ()
const = 0;
110 virtual int GetPreferredWindowIndex (
const QByteArray& tabclass)
const = 0;
123 return GetMainWindow (GetPreferredWindowIndex ());
133 virtual int GetWindowForTab (
ITabWidget *tab)
const = 0;
141 virtual IMWProxy* GetMWProxy (
int winIdx)
const = 0;
150 virtual QMainWindow* GetMainWindow (
int idx)
const = 0;
159 virtual int GetWindowIndex (QMainWindow *window)
const = 0;
181 for (
int i = 0; i < GetWindowsCount (); ++i)
182 if (GetTabWidget (i) == ictw)
195 virtual void windowAdded (
int index) = 0;
208 virtual void windowRemoved (
int index) = 0;
217 virtual void currentWindowChanged (
int to,
int from) = 0;
227 virtual void tabAdded (
int windowIdx,
int tabIdx) = 0;
238 virtual void tabIsRemoving (
int windowIdx,
int tabIdx) = 0;
251 virtual void tabIsMoving (
int fromWin,
int toWin,
int tabIdx) = 0;
264 virtual void tabMoved (
int fromWin,
int toWin,
int tabIdx) = 0;
Interface to the core windows manager.
This interface is used for manipulating the main window.
virtual ~IRootWindowsManager()
virtual QMainWindow * GetPreferredWindow() const
Returns the currently preferred window.
virtual int GetTabWidgetIndex(ICoreTabWidget *ictw) const
Returns the index of the window containing the tab widget.