13 #ifndef BERRYWINDOW_H_
14 #define BERRYWINDOW_H_
21 #include "internal/berryWindowManager.h"
126 virtual void HandleException(
const std::exception& t) = 0;
133 WindowShellListener(
Window* wnd);
141 QScopedPointer<IShellListener> windowShellListener;
146 struct DefaultExceptionHandler:
public IExceptionHandler
153 void HandleException(
const std::exception& t)
override;
161 SmartPointer<MenuManager> menuBarManager;
166 static IExceptionHandler::Pointer exceptionHandler;
171 struct DefaultModalParent:
public IShellProvider
176 friend struct DefaultModalParent;
197 WindowManager* windowManager;
235 const QList<Shell::Pointer>& toSearch);
276 QRect GetConstrainedShellBounds(
const QRect& preferredSize);
294 virtual bool CanHandleShellCloseEvent();
354 virtual QWidget* GetContents();
368 virtual QPoint GetInitialLocation(
const QPoint& initialSize);
377 virtual QPoint GetInitialSize();
423 virtual void HandleShellCloseEvent();
437 virtual void InitializeBounds();
460 void SetReturnCode(
int code);
473 void SetShellStyle(
int newShellStyle);
516 virtual bool Close();
527 virtual void Create();
537 static QIcon GetDefaultImage();
550 static QList<QIcon> GetDefaultImages();
574 WindowManager* GetWindowManager();
611 void SetBlockOnOpen(
bool shouldBlock);
621 static void SetDefaultImage(
const QIcon& image);
634 static void SetDefaultImages(
const QList<QIcon>& images);
646 void SetWindowManager(WindowManager* manager);
658 static void SetExceptionHandler(IExceptionHandler::Pointer handler);