102 return GetMainWindow (GetPreferredWindowIndex ());
160 for (
int i = 0; i < GetWindowsCount (); ++i)
161 if (GetTabWidget (i) == ictw)
206 virtual void tabAdded (
int windowIdx,
int tabIdx) = 0;
230 virtual void tabIsMoving (
int fromWin,
int toWin,
int tabIdx) = 0;
243 virtual void tabMoved (
int fromWin,
int toWin,
int tabIdx) = 0;
This interface is used for manipulating the main window.
Interface to the core windows manager.
virtual int GetTabWidgetIndex(ICoreTabWidget *ictw) const
Returns the index of the window containing the tab widget.
virtual QObject * GetQObject()=0
Returns this object as a QObject.
virtual int GetPreferredWindowIndex(const QByteArray &tabclass) const =0
Returns the preferred window for the given tabclass.
virtual ICoreTabWidget * GetTabWidget(int idx) const =0
Returns the tab widget of the window identified by idx.
virtual void tabAdded(int windowIdx, int tabIdx)=0
Emitted after a new tab is added to the given window.
virtual void windowRemoved(int index)=0
Emitted before a window at the given index is removed.
virtual int GetWindowForTab(ITabWidget *tab) const =0
Returns the window index containing the given tab.
virtual void windowAdded(int index)=0
Emitted after a new window is added.
virtual void tabMoved(int fromWin, int toWin, int tabIdx)=0
Emitted after a tab is moved from a window to another one.
virtual void tabIsRemoving(int windowIdx, int tabIdx)=0
Emitted before a tab is removed from the given window.
virtual int GetWindowIndex(QMainWindow *window) const =0
Returns the index of the given window.
virtual IMWProxy * GetMWProxy(int winIdx) const =0
Returns the window proxy for the given window index.
virtual int GetPreferredWindowIndex() const =0
Returns the index of the currently preferred window.
virtual QMainWindow * GetPreferredWindow() const
Returns the currently preferred window.
virtual ~IRootWindowsManager()
virtual void tabIsMoving(int fromWin, int toWin, int tabIdx)=0
Emitted before a tab is moved from a window to another one.
virtual QMainWindow * GetMainWindow(int idx) const =0
Returns the window for the given index.
virtual void currentWindowChanged(int to, int from)=0
Emitted when current LeechCraft window changes.
virtual int GetWindowsCount() const =0
Returns the current window count.