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
b1e1b383
Kaydet (Commit)
b1e1b383
authored
Tem 14, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uitest: add initial support for selecting chart elements
Change-Id: I3af11d44067618b5188f3dbf4abccc171dd98d0c
üst
7b2966db
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
108 additions
and
0 deletions
+108
-0
Library_chartcontroller.mk
chart2/Library_chartcontroller.mk
+1
-0
ChartWindow.hxx
chart2/source/controller/inc/ChartWindow.hxx
+2
-0
uiobject.hxx
chart2/source/controller/inc/uiobject.hxx
+43
-0
ChartWindow.cxx
chart2/source/controller/main/ChartWindow.cxx
+6
-0
uiobject.cxx
chart2/source/controller/uitest/uiobject.cxx
+56
-0
No files found.
chart2/Library_chartcontroller.mk
Dosyayı görüntüle @
b1e1b383
...
...
@@ -199,6 +199,7 @@ $(eval $(call gb_Library_add_exception_objects,chartcontroller,\
chart2/source/controller/sidebar/ChartSeriesPanel \
chart2/source/controller/sidebar/ChartSidebarModifyListener \
chart2/source/controller/sidebar/ChartSidebarSelectionListener \
chart2/source/controller/uitest/uiobject \
))
# Runtime dependency for unit-tests
...
...
chart2/source/controller/
main
/ChartWindow.hxx
→
chart2/source/controller/
inc
/ChartWindow.hxx
Dosyayı görüntüle @
b1e1b383
...
...
@@ -65,6 +65,8 @@ public:
virtual
css
::
uno
::
Reference
<
css
::
accessibility
::
XAccessible
>
CreateAccessible
()
override
;
virtual
FactoryFunction
GetUITestFactory
()
const
override
;
private
:
ChartController
*
m_pWindowController
;
bool
m_bInPaint
;
...
...
chart2/source/controller/inc/uiobject.hxx
0 → 100644
Dosyayı görüntüle @
b1e1b383
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_UIOBJECT_HXX
#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_UIOBJECT_HXX
#include <vcl/uitest/uiobject.hxx>
#include "ChartWindow.hxx"
class
ChartWindowUIObject
:
public
WindowUIObject
{
VclPtr
<
chart
::
ChartWindow
>
mxChartWindow
;
public
:
ChartWindowUIObject
(
VclPtr
<
chart
::
ChartWindow
>
xChartWindow
);
virtual
StringMap
get_state
()
override
;
virtual
void
execute
(
const
OUString
&
rAction
,
const
StringMap
&
rParameters
)
override
;
virtual
std
::
unique_ptr
<
UIObject
>
get_child
(
const
OUString
&
rID
)
override
;
virtual
std
::
set
<
OUString
>
get_children
()
const
override
;
static
std
::
unique_ptr
<
UIObject
>
create
(
vcl
::
Window
*
pWindow
);
protected
:
virtual
OUString
get_name
()
const
;
};
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
chart2/source/controller/main/ChartWindow.cxx
Dosyayı görüntüle @
b1e1b383
...
...
@@ -20,6 +20,7 @@
#include "ChartWindow.hxx"
#include "ChartController.hxx"
#include "HelpIds.hrc"
#include "uiobject.hxx"
#include <vcl/help.hxx>
#include <vcl/openglwin.hxx>
...
...
@@ -306,6 +307,11 @@ void ChartWindow::Invalidate( const vcl::Region& rRegion, InvalidateFlags nFlags
}
}
FactoryFunction
ChartWindow
::
GetUITestFactory
()
const
{
return
ChartWindowUIObject
::
create
;
}
}
//namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
chart2/source/controller/uitest/uiobject.cxx
0 → 100644
Dosyayı görüntüle @
b1e1b383
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "uiobject.hxx"
ChartWindowUIObject
::
ChartWindowUIObject
(
VclPtr
<
chart
::
ChartWindow
>
xChartWindow
)
:
WindowUIObject
(
xChartWindow
),
mxChartWindow
(
xChartWindow
)
{
}
StringMap
ChartWindowUIObject
::
get_state
()
{
StringMap
aMap
=
WindowUIObject
::
get_state
();
return
aMap
;
}
void
ChartWindowUIObject
::
execute
(
const
OUString
&
rAction
,
const
StringMap
&
rParameters
)
{
WindowUIObject
::
execute
(
rAction
,
rParameters
);
}
std
::
unique_ptr
<
UIObject
>
ChartWindowUIObject
::
get_child
(
const
OUString
&
rID
)
{
return
nullptr
;
}
std
::
set
<
OUString
>
ChartWindowUIObject
::
get_children
()
const
{
std
::
set
<
OUString
>
aChildren
;
return
aChildren
;
}
std
::
unique_ptr
<
UIObject
>
ChartWindowUIObject
::
create
(
vcl
::
Window
*
pWindow
)
{
chart
::
ChartWindow
*
pChartWindow
=
dynamic_cast
<
chart
::
ChartWindow
*>
(
pWindow
);
assert
(
pChartWindow
);
return
std
::
unique_ptr
<
UIObject
>
(
new
ChartWindowUIObject
(
pChartWindow
));
}
OUString
ChartWindowUIObject
::
get_name
()
const
{
return
OUString
(
"ChartWindowUIObject"
);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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