X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d13b34d3f2be575d59747a5926000be7b28a45dc..6a9455d3f03c6860947da112130351d862e9ddb2:/interface/wx/print.h diff --git a/interface/wx/print.h b/interface/wx/print.h index ad0ef0ea31..8eb1e3764b 100644 --- a/interface/wx/print.h +++ b/interface/wx/print.h @@ -117,7 +117,33 @@ public: void OnPaint(wxPaintEvent& event); }; +/** + Preview frame modality kind. + + The elements of this enum can be used with wxPreviewFrame::Initialize() to + indicate how should the preview frame be shown. + + @since 2.9.2 +*/ +enum wxPreviewFrameModalityKind +{ + /** + Disable all the other top level windows while the preview frame is shown. + + This is the default behaviour. + */ + wxPreviewFrame_AppModal, + /** + Disable only the parent window while the preview frame is shown. + */ + wxPreviewFrame_WindowModal, + + /** + Show the preview frame non-modally and don't disable any other windows. + */ + wxPreviewFrame_NonModal +}; /** @class wxPreviewFrame @@ -169,15 +195,24 @@ public: virtual void CreateControlBar(); /** - Creates the preview canvas and control bar, and calls wxWindow::MakeModal(@true) - to disable other top-level windows in the application. + Creates the preview canvas and control bar. + + By default also disables the other existing top level windows to + prepare for showing the preview frame modally. Since wxWidgets 2.9.2 + this can be changed by specifying either wxPreviewFrame_WindowModal -- + to disable just the parent window -- or wxPreviewFrame_NonModal -- to + not disable any windows at all -- as @a kind parameter. + + This function must be called by the application prior to showing the frame. - This function should be called by the application prior to showing the frame. + @param kind + The modality kind of preview frame. @since 2.9.2 */ - virtual void Initialize(); + virtual void Initialize(wxPreviewFrameModalityKind kind + = wxPreviewFrame_AppModal); /** - Enables the other frames in the application, and deletes the print preview + Enables any disabled frames in the application, and deletes the print preview object, implicitly deleting any printout objects associated with the print preview object. */