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
4c068949
Kaydet (Commit)
4c068949
authored
Agu 26, 2015
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add menubar to vcldemo --widgets test.
Change-Id: I848b5a8834212fce1089fb3ef2186424a1e7a11e
üst
015adf15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
vcldemo.cxx
vcl/workben/vcldemo.cxx
+13
-0
No files found.
vcl/workben/vcldemo.cxx
Dosyayı görüntüle @
4c068949
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <vcl/salbtype.hxx>
#include <vcl/salbtype.hxx>
#include <vcl/bmpacc.hxx>
#include <vcl/bmpacc.hxx>
#include <vcl/help.hxx>
#include <vcl/help.hxx>
#include <vcl/menu.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
...
@@ -1455,6 +1456,9 @@ public:
...
@@ -1455,6 +1456,9 @@ public:
class
DemoWidgets
:
public
WorkWindow
class
DemoWidgets
:
public
WorkWindow
{
{
MenuBar
*
mpBar
;
PopupMenu
*
mpPopup
;
VclPtr
<
VclBox
>
mpBox
;
VclPtr
<
VclBox
>
mpBox
;
VclPtr
<
ToolBox
>
mpToolbox
;
VclPtr
<
ToolBox
>
mpToolbox
;
VclPtr
<
PushButton
>
mpButton
;
VclPtr
<
PushButton
>
mpButton
;
...
@@ -1507,6 +1511,13 @@ public:
...
@@ -1507,6 +1511,13 @@ public:
mpGLButton
->
Show
();
mpGLButton
->
Show
();
mpHBox
->
Show
();
mpHBox
->
Show
();
mpBar
=
new
MenuBar
();
mpBar
->
InsertItem
(
0
,
"File"
);
mpPopup
=
new
PopupMenu
();
mpPopup
->
InsertItem
(
0
,
"Item"
);
mpBar
->
SetPopupMenu
(
0
,
mpPopup
);
SetMenuBar
(
mpBar
);
Show
();
Show
();
}
}
virtual
~
DemoWidgets
()
{
disposeOnce
();
}
virtual
~
DemoWidgets
()
{
disposeOnce
();
}
...
@@ -1519,6 +1530,8 @@ public:
...
@@ -1519,6 +1530,8 @@ public:
mpToolbox
.
disposeAndClear
();
mpToolbox
.
disposeAndClear
();
mpButton
.
disposeAndClear
();
mpButton
.
disposeAndClear
();
mpBox
.
disposeAndClear
();
mpBox
.
disposeAndClear
();
delete
mpPopup
;
delete
mpBar
;
WorkWindow
::
dispose
();
WorkWindow
::
dispose
();
}
}
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
SAL_OVERRIDE
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
SAL_OVERRIDE
...
...
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