summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-01-13 15:10:17 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:01:36 +0200
commitef6acba3375e1d2cbd6f9cef745b7bd154c2c4f2 (patch)
tree844dbb0e51d4bc79a60bad5debe5d37311a0652d /vcl
parent5c91fc9d09aa9625236676cc435561db607ba4a8 (diff)
uitest: add ids for buttons in MessageDialog
Change-Id: I172eb79abff515acc734288a008eb4426754432d
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/layout.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index 8c583dca6285..50232d2e7606 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -2211,6 +2211,7 @@ short MessageDialog::Execute()
pBtn.set( VclPtr<OKButton>::Create(pButtonBox) );
pBtn->SetStyle(pBtn->GetStyle() & WB_DEFBUTTON);
pBtn->Show();
+ pBtn->set_id("ok");
m_aOwnedButtons.push_back(pBtn);
m_aResponses[pBtn] = RET_OK;
break;
@@ -2218,12 +2219,14 @@ short MessageDialog::Execute()
pBtn.set( VclPtr<CloseButton>::Create(pButtonBox) );
pBtn->SetStyle(pBtn->GetStyle() & WB_DEFBUTTON);
pBtn->Show();
+ pBtn->set_id("close");
m_aOwnedButtons.push_back(pBtn);
m_aResponses[pBtn] = RET_CLOSE;
break;
case VCL_BUTTONS_CANCEL:
pBtn.set( VclPtr<CancelButton>::Create(pButtonBox) );
pBtn->SetStyle(pBtn->GetStyle() & WB_DEFBUTTON);
+ pBtn->set_id("cancel");
m_aOwnedButtons.push_back(pBtn);
m_aResponses[pBtn] = RET_CANCEL;
break;
@@ -2231,6 +2234,7 @@ short MessageDialog::Execute()
pBtn = VclPtr<PushButton>::Create(pButtonBox);
pBtn->SetText(Button::GetStandardText(StandardButtonType::Yes));
pBtn->Show();
+ pBtn->set_id("yes");
m_aOwnedButtons.push_back(pBtn);
m_aResponses[pBtn] = RET_YES;
@@ -2238,18 +2242,21 @@ short MessageDialog::Execute()
pBtn->SetStyle(pBtn->GetStyle() & WB_DEFBUTTON);
pBtn->SetText(Button::GetStandardText(StandardButtonType::No));
pBtn->Show();
+ pBtn->set_id("no");
m_aOwnedButtons.push_back(pBtn);
m_aResponses[pBtn] = RET_NO;
break;
case VCL_BUTTONS_OK_CANCEL:
pBtn.set( VclPtr<OKButton>::Create(pButtonBox) );
pBtn->Show();
+ pBtn->set_id("ok");
m_aOwnedButtons.push_back(pBtn);
m_aResponses[pBtn] = RET_OK;
pBtn.set( VclPtr<CancelButton>::Create(pButtonBox) );
pBtn->SetStyle(pBtn->GetStyle() & WB_DEFBUTTON);
pBtn->Show();
+ pBtn->set_id("cancel");
m_aOwnedButtons.push_back(pBtn);
m_aResponses[pBtn] = RET_CANCEL;
break;