Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5a83b31a
Kaydet (Commit)
5a83b31a
authored
Tem 02, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
expose a way to drop ownership of a window from builder tree
Change-Id: I6f6bff32271ed1d6c328ba211a6b1249fda039dd
üst
5983675e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
builder.hxx
include/vcl/builder.hxx
+3
-0
builder.cxx
vcl/source/window/builder.cxx
+6
-1
No files found.
include/vcl/builder.hxx
Dosyayı görüntüle @
5a83b31a
...
@@ -297,6 +297,9 @@ public:
...
@@ -297,6 +297,9 @@ public:
OString
get_by_window
(
const
::
Window
*
pWindow
)
const
;
OString
get_by_window
(
const
::
Window
*
pWindow
)
const
;
void
delete_by_window
(
const
::
Window
*
pWindow
);
void
delete_by_window
(
const
::
Window
*
pWindow
);
//release ownership of pWindow, i.e. don't delete it
void
drop_ownership
(
const
::
Window
*
pWindow
);
//apply the properties of rProps to pWindow
//apply the properties of rProps to pWindow
static
void
set_properties
(
::
Window
*
pWindow
,
const
stringmap
&
rProps
);
static
void
set_properties
(
::
Window
*
pWindow
,
const
stringmap
&
rProps
);
...
...
vcl/source/window/builder.cxx
Dosyayı görüntüle @
5a83b31a
...
@@ -2997,13 +2997,18 @@ void VclBuilder::delete_by_name(const OString& sID)
...
@@ -2997,13 +2997,18 @@ void VclBuilder::delete_by_name(const OString& sID)
}
}
void
VclBuilder
::
delete_by_window
(
const
Window
*
pWindow
)
void
VclBuilder
::
delete_by_window
(
const
Window
*
pWindow
)
{
drop_ownership
(
pWindow
);
delete
pWindow
;
}
void
VclBuilder
::
drop_ownership
(
const
Window
*
pWindow
)
{
{
for
(
std
::
vector
<
WinAndId
>::
iterator
aI
=
m_aChildren
.
begin
(),
for
(
std
::
vector
<
WinAndId
>::
iterator
aI
=
m_aChildren
.
begin
(),
aEnd
=
m_aChildren
.
end
();
aI
!=
aEnd
;
++
aI
)
aEnd
=
m_aChildren
.
end
();
aI
!=
aEnd
;
++
aI
)
{
{
if
(
aI
->
m_pWindow
==
pWindow
)
if
(
aI
->
m_pWindow
==
pWindow
)
{
{
delete
aI
->
m_pWindow
;
m_aChildren
.
erase
(
aI
);
m_aChildren
.
erase
(
aI
);
break
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment