summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-25 15:24:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-25 16:45:30 +0100
commitd0c3c16c87a8ff6300a0e07c4d6170748a6c59ed (patch)
tree712191dfc043cedaa5703b4e1791ec9050029bfe
parentc407e548cf2ea606c819c7bb5a26559cb0d128be (diff)
convert SV_EDIT_WARNING_BOX to MessageDialog + string
Change-Id: Ie3ceba0e3fa54b6aac7aca844588ed69063af02e
-rw-r--r--vcl/inc/svids.hrc2
-rw-r--r--vcl/source/control/edit.cxx4
-rw-r--r--vcl/source/src/stdtext.src4
3 files changed, 5 insertions, 5 deletions
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc
index b1f3ff41ee77..83d7ae7ae96b 100644
--- a/vcl/inc/svids.hrc
+++ b/vcl/inc/svids.hrc
@@ -173,7 +173,7 @@
#define SV_PRINT_INVALID_TXT 10616
#define SV_PRINT_CUSTOM_TXT 10617
-#define SV_EDIT_WARNING_BOX 10650
+#define SV_EDIT_WARNING_STR 10650
#define SV_FUNIT_STRINGS 10700
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index ac5c57b7bdd2..287339c33b65 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -24,8 +24,8 @@
#include <vcl/virdev.hxx>
#include <vcl/menu.hxx>
#include <vcl/edit.hxx>
+#include <vcl/layout.hxx>
#include <vcl/svapp.hxx>
-#include <vcl/msgbox.hxx>
#include <vcl/settings.hxx>
#include <window.h>
@@ -791,7 +791,7 @@ void Edit::ShowTruncationWarning( Window* pParent )
ResMgr* pResMgr = ImplGetResMgr();
if( pResMgr )
{
- WarningBox aBox( pParent, ResId( SV_EDIT_WARNING_BOX, *pResMgr ) );
+ MessageDialog aBox(pParent, ResId(SV_EDIT_WARNING_STR, *pResMgr), VCL_MESSAGE_WARNING);
aBox.Execute();
}
}
diff --git a/vcl/source/src/stdtext.src b/vcl/source/src/stdtext.src
index 1a33cfa6b9bb..7e488593092b 100644
--- a/vcl/source/src/stdtext.src
+++ b/vcl/source/src/stdtext.src
@@ -49,9 +49,9 @@ String SV_STDTEXT_PREFERENCES
Text [ en-US ] = "Preferences...";
};
-WarningBox SV_EDIT_WARNING_BOX
+String SV_EDIT_WARNING_STR
{
- Message [en-US] = "The inserted text exceeded the maximum length of this text field. The text was truncated.";
+ Text [en-US] = "The inserted text exceeded the maximum length of this text field. The text was truncated.";
};
String SV_MAC_SCREENNNAME