diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-28 11:47:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-29 14:39:56 +0100 |
commit | b2d08d759ee755cb5722553e01fb6d007ac9ffbe (patch) | |
tree | 78f090a64d417f630d4a4cf20455bb1fd66d0b3d /include/vcl/layout.hxx | |
parent | d4116a4f66ce20b492c143606b67d5eb9ee2fc09 (diff) |
convert more queryboxes to new message box replacement
Change-Id: Ice41a86e17d5cbee784e239224b640ea4378ac36
Diffstat (limited to 'include/vcl/layout.hxx')
-rw-r--r-- | include/vcl/layout.hxx | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index 5237c72c9bce..2b8fa8abb574 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -647,18 +647,33 @@ public: bool set_property(const OString &rKey, const OString &rValue); }; +enum VclButtonsType +{ + VCL_BUTTONS_NONE, + VCL_BUTTONS_OK, + VCL_BUTTONS_CLOSE, + VCL_BUTTONS_CANCEL, + VCL_BUTTONS_YES_NO, + VCL_BUTTONS_OK_CANCEL +}; + class VCL_DLLPUBLIC MessageDialog : public Dialog { private: + VclButtonsType m_eType; VclGrid* m_pGrid; FixedImage* m_pImage; VclMultiLineEdit* m_pPrimaryMessage; VclMultiLineEdit* m_pSecondaryMessage; + std::vector<PushButton*> m_aOwnedButtons; + std::map<const Window*, short> m_aResponses; OUString m_sPrimaryString; OUString m_sSecondaryString; DECL_DLLPRIVATE_LINK(ButtonHdl, Button *); - void setButtonHandlers(); + void setButtonHandlers(VclButtonBox *pButtonBox); + short get_response(const Window *pWindow) const; public: + MessageDialog(Window* pParent, WinBits nStyle); MessageDialog(Window* pParent, const OString& rID, const OUString& rUIXMLDescription); virtual bool set_property(const OString &rKey, const OString &rValue); |