diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-04-30 20:44:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-01 14:42:05 +0100 |
commit | 9e5c35454d07f880a2cb52d9a808633b908bb859 (patch) | |
tree | b436edac62601268ffa16841720faf857c859c9e /include/vcl/layout.hxx | |
parent | 26bda9f4a82c9b1956a10e3dc52a99bc2f850ada (diff) |
create a HIG compliant MessageDialog and map to GtkMessageDialog
Change-Id: If86387619ff00a652ea418292fbb0026b867a431
Diffstat (limited to 'include/vcl/layout.hxx')
-rw-r--r-- | include/vcl/layout.hxx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/vcl/layout.hxx b/include/vcl/layout.hxx index c6b6a1274fa7..f45fcb239089 100644 --- a/include/vcl/layout.hxx +++ b/include/vcl/layout.hxx @@ -12,7 +12,10 @@ #include <vcl/dllapi.h> #include <vcl/button.hxx> +#include <vcl/dialog.hxx> +#include <vcl/fixed.hxx> #include <vcl/scrbar.hxx> +#include <vcl/vclmedit.hxx> #include <vcl/window.hxx> #include <boost/multi_array.hpp> #include <set> @@ -638,6 +641,29 @@ public: bool set_property(const OString &rKey, const OString &rValue); }; +class VCL_DLLPUBLIC MessageDialog : public Dialog +{ +private: + VclGrid* m_pGrid; + FixedImage* m_pImage; + VclMultiLineEdit* m_pPrimaryMessage; + VclMultiLineEdit* m_pSecondaryMessage; + OUString m_sPrimaryString; + OUString m_sSecondaryString; + DECL_DLLPRIVATE_LINK(ButtonHdl, Button *); + void setButtonHandlers(); +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); + virtual short Execute(); + OUString get_primary_text() const; + OUString get_secondary_text() const; + void set_primary_text(const OUString &rPrimaryString); + void set_secondary_text(const OUString &rSecondaryString); + ~MessageDialog(); +}; + VCL_DLLPUBLIC Size bestmaxFrameSizeForScreenSize(const Size &rScreenSize); //Get first window of a pTopLevel window as |