57 virtual QObject* GetQObject () = 0;
65 virtual int GetWindowsCount ()
const = 0;
73 virtual int GetPreferredWindowIndex ()
const = 0;
89 virtual int GetPreferredWindowIndex (
const QByteArray& tabclass)
const = 0;
102 return GetMainWindow (GetPreferredWindowIndex ());
112 virtual int GetWindowForTab (
ITabWidget *tab)
const = 0;
120 virtual IMWProxy* GetMWProxy (
int winIdx)
const = 0;
129 virtual QMainWindow* GetMainWindow (
int idx)
const = 0;
138 virtual int GetWindowIndex (QMainWindow *window)
const = 0;
160 virtual void AddTab (
const QString& name, QWidget *tab, AddTabFlags flags =
AddTabFlag::None) = 0;
164 AddTab (qobject_cast<ITabWidget*> (tab)->GetTabClassInfo ().VisibleName_, tab, flags);
176 for (
int i = 0; i < GetWindowsCount (); ++i)
177 if (GetTabWidget (i) == ictw)
190 virtual void windowAdded (
int index) = 0;
203 virtual void windowRemoved (
int index) = 0;
212 virtual void currentWindowChanged (
int to,
int from) = 0;
222 virtual void tabAdded (
int windowIdx, QWidget *tab) = 0;
233 virtual void tabIsRemoving (
int windowIdx, QWidget *tab) = 0;
246 virtual void tabIsMoving (
int fromWin,
int toWin,
int tabIdx) = 0;
259 virtual void tabMoved (
int fromWin,
int toWin,
int tabIdx) = 0;
262 Q_DECLARE_OPERATORS_FOR_FLAGS (IRootWindowsManager::AddTabFlags)
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.
Q_DECLARE_FLAGS(NotifyFlags, NotifyFlag)
virtual int GetTabWidgetIndex(ICoreTabWidget *ictw) const
Returns the index of the window containing the tab widget.
void AddTab(QWidget *tab, AddTabFlags flags=AddTabFlag::None)