78 virtual QObject* GetQObject () = 0;
86 virtual int GetWindowsCount ()
const = 0;
94 virtual int GetPreferredWindowIndex ()
const = 0;
107 return GetMainWindow (GetPreferredWindowIndex ());
117 virtual int GetWindowForTab (
ITabWidget *tab)
const = 0;
125 virtual IMWProxy* GetMWProxy (
int winIdx)
const = 0;
134 virtual QMainWindow* GetMainWindow (
int idx)
const = 0;
143 virtual int GetWindowIndex (QMainWindow *window)
const = 0;
165 for (
int i = 0; i < GetWindowsCount (); ++i)
166 if (GetTabWidget (i) == ictw)
178 virtual void windowAdded (
int index) = 0;
190 virtual void windowRemoved (
int index) = 0;
197 virtual void currentWindowChanged (
int to,
int from) = 0;
206 virtual void tabAdded (
int windowIdx,
int tabIdx) = 0;
216 virtual void tabIsRemoving (
int windowIdx,
int tabIdx) = 0;
227 virtual void tabIsMoving (
int fromWin,
int toWin,
int tabIdx) = 0;
238 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.
Q_DECLARE_INTERFACE(IColorThemeManager,"org.Deviant.LeechCraft.IColorThemeManager/1.0")
virtual ~IRootWindowsManager()
virtual int GetTabWidgetIndex(ICoreTabWidget *ictw) const
Returns the index of the window containing the tab widget.
virtual QMainWindow * GetPreferredWindow() const
Returns the currently preferred window.