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
d2eb26b4
Kaydet (Commit)
d2eb26b4
authored
Eki 22, 2013
tarafından
Ptyl Dragon
Kaydeden (comit)
Jan Holesovsky
Eki 23, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tiledrendering extracts values when clicking render
Change-Id: I4b350dc6c796bb1af0740917e17ac79b2a259a0a
üst
d8b87516
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
38 deletions
+20
-38
tiledrendering.cxx
sw/qa/tiledrendering/tiledrendering.cxx
+14
-32
tiledrendering.ui
sw/qa/tiledrendering/tiledrendering.ui
+6
-6
No files found.
sw/qa/tiledrendering/tiledrendering.cxx
Dosyayı görüntüle @
d2eb26b4
...
...
@@ -33,21 +33,26 @@ using namespace com::sun::star;
class
TiledRenderingDialog
:
public
ModalDialog
{
public
:
TiledRenderingDialog
()
:
ModalDialog
(
DIALOG_NO_PARENT
,
"TiledRendering"
,
"qa/sw/ui/tiledrendering.ui"
){
TiledRenderingDialog
()
:
ModalDialog
(
DIALOG_NO_PARENT
,
"TiledRendering"
,
"qa/sw/ui/tiledrendering.ui"
)
{
PushButton
*
renderButton
;
get
(
renderButton
,
"buttonRenderTile"
);
renderButton
->
SetClickHdl
(
LINK
(
this
,
TiledRenderingDialog
,
RenderHdl
));
SetStyle
(
GetStyle
()
|
WB_CLOSEABLE
);
}
virtual
~
TiledRenderingDialog
()
{
}
virtual
~
TiledRenderingDialog
(){}
DECL_LINK
(
RenderHdl
,
Button
*
);
sal_Int32
extractInt
(
const
char
*
name
){
NumericField
*
pField
;
get
(
pField
,
name
);
OUString
aString
(
pField
->
GetText
());
SAL_INFO
(
"TiledRenderingDialog"
,
"param "
<<
name
<<
" returned "
<<
aString
);
return
aString
.
toInt32
();
sal_Int32
extractInt
(
const
char
*
name
)
{
NumericField
*
pField
;
get
(
pField
,
name
);
OUString
aString
(
pField
->
GetText
());
std
::
cerr
<<
"param "
<<
name
<<
" returned "
<<
aString
<<
"/n"
;
return
aString
.
toInt32
();
}
};
...
...
@@ -60,8 +65,7 @@ IMPL_LINK ( TiledRenderingDialog, RenderHdl, Button *, EMPTYARG )
extractInt
(
"spinTilePosY"
);
extractInt
(
"spinTileWidth"
);
extractInt
(
"spinTileHeight"
);
return
1
;
return
1
;
}
void
UIPreviewApp
::
Init
()
...
...
@@ -89,7 +93,6 @@ int UIPreviewApp::Main()
// osl::File::getFileURLFromSystemPath(GetCommandLineParam(i), aFileUrl);
// uifiles.push_back(aFileUrl);
//}
//if (uifiles.empty())
//{
// fprintf(stderr, "Usage: ui-previewer file.ui\n");
...
...
@@ -105,21 +108,6 @@ int UIPreviewApp::Main()
TiledRenderingDialog
pDialog
;
pDialog
.
Execute
();
/*
{
VclBuilder aBuilder(pDialog, OUString(), "sw/qa/tiledrendering/tiledrendering.ui");
Dialog *pRealDialog = dynamic_cast<Dialog*>(aBuilder.get_widget_root());
if (!pRealDialog)
pRealDialog = pDialog;
if (pRealDialog)
{
pRealDialog->SetText(OUString("LibreOffice ui-previewer"));
pRealDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE);
pRealDialog->Execute();
}
}*/
}
catch
(
const
uno
::
Exception
&
e
)
{
...
...
@@ -129,12 +117,6 @@ int UIPreviewApp::Main()
return
EXIT_SUCCESS
;
}
void
render
(){
}
void
vclmain
::
createApplication
()
{
static
UIPreviewApp
aApp
;
...
...
sw/qa/tiledrendering/tiledrendering.ui
Dosyayı görüntüle @
d2eb26b4
...
...
@@ -22,10 +22,10 @@
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<child>
<object
class=
"GtkLabel"
id=
"labelConte
n
tWidth"
>
<object
class=
"GtkLabel"
id=
"labelConte
x
tWidth"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
conte
n
tWidth
</property>
<property
name=
"label"
translatable=
"yes"
>
conte
x
tWidth
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
...
...
@@ -34,10 +34,10 @@
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"labelConte
n
tHeight"
>
<object
class=
"GtkLabel"
id=
"labelConte
x
tHeight"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
conte
n
tHeight
</property>
<property
name=
"label"
translatable=
"yes"
>
conte
x
tHeight
</property>
</object>
<packing>
<property
name=
"expand"
>
True
</property>
...
...
@@ -106,7 +106,7 @@
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<child>
<object
class=
"GtkSpinButton"
id=
"spinConte
n
tWidth"
>
<object
class=
"GtkSpinButton"
id=
"spinConte
x
tWidth"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
...
...
@@ -120,7 +120,7 @@
</packing>
</child>
<child>
<object
class=
"GtkSpinButton"
id=
"spinConte
n
tHeight"
>
<object
class=
"GtkSpinButton"
id=
"spinConte
x
tHeight"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"invisible_char"
>
•
</property>
...
...
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