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
5a915202
Kaydet (Commit)
5a915202
authored
Eyl 16, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: Ibb426c6d0cd81ff866c431be8277849e002df57a
üst
39da0a99
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
15 deletions
+10
-15
ScrollHelper.cxx
dbaccess/source/ui/control/ScrollHelper.cxx
+2
-5
dbtreelistbox.cxx
dbaccess/source/ui/control/dbtreelistbox.cxx
+2
-4
ScrollHelper.hxx
dbaccess/source/ui/inc/ScrollHelper.hxx
+4
-4
dbtreelistbox.hxx
dbaccess/source/ui/inc/dbtreelistbox.hxx
+2
-2
No files found.
dbaccess/source/ui/control/ScrollHelper.cxx
Dosyayı görüntüle @
5a915202
...
...
@@ -37,19 +37,16 @@ namespace dbaui
Rectangle
aScrollArea
(
Point
(
0
,
_rOutputSize
.
Height
()
-
LISTBOX_SCROLLING_AREA
),
Size
(
_rOutputSize
.
Width
(),
LISTBOX_SCROLLING_AREA
)
);
Link
<>
aToCall
;
// if pointer in bottom area begin scroll
if
(
aScrollArea
.
IsInside
(
_rPoint
)
)
aToCall
=
m_aUpScroll
;
m_aUpScroll
.
Call
(
NULL
)
;
else
{
aScrollArea
.
SetPos
(
Point
(
0
,
0
));
// if pointer in top area begin scroll
if
(
aScrollArea
.
IsInside
(
_rPoint
)
)
aToCall
=
m_aDownScroll
;
m_aDownScroll
.
Call
(
NULL
)
;
}
if
(
aToCall
.
IsSet
()
)
aToCall
.
Call
(
NULL
);
}
}
...
...
dbaccess/source/ui/control/dbtreelistbox.cxx
Dosyayı görüntüle @
5a915202
...
...
@@ -413,16 +413,14 @@ void scrollWindow(DBTreeListBox* _pListBox, const Point& _rPos,bool _bUp)
}
}
IMPL_LINK
(
DBTreeListBox
,
ScrollUpHdl
,
SvTreeListBox
*
,
/*pBox*/
)
IMPL_LINK
_NOARG_TYPED
(
DBTreeListBox
,
ScrollUpHdl
,
LinkParamNone
*
,
void
)
{
scrollWindow
(
this
,
m_aMousePos
,
true
);
return
0
;
}
IMPL_LINK
(
DBTreeListBox
,
ScrollDownHdl
,
SvTreeListBox
*
,
/*pBox*/
)
IMPL_LINK
_NOARG_TYPED
(
DBTreeListBox
,
ScrollDownHdl
,
LinkParamNone
*
,
void
)
{
scrollWindow
(
this
,
m_aMousePos
,
false
);
return
0
;
}
namespace
...
...
dbaccess/source/ui/inc/ScrollHelper.hxx
Dosyayı görüntüle @
5a915202
...
...
@@ -27,8 +27,8 @@ namespace dbaui
{
class
OScrollHelper
{
Link
<>
m_aUpScroll
;
Link
<>
m_aDownScroll
;
Link
<
LinkParamNone
*
,
void
>
m_aUpScroll
;
Link
<
LinkParamNone
*
,
void
>
m_aDownScroll
;
public
:
/** default constructor
*/
...
...
@@ -40,7 +40,7 @@ namespace dbaui
@param _rUpScroll
the method to set
*/
inline
void
setUpScrollMethod
(
const
Link
<>&
_rUpScroll
)
inline
void
setUpScrollMethod
(
const
Link
<
LinkParamNone
*
,
void
>&
_rUpScroll
)
{
m_aUpScroll
=
_rUpScroll
;
}
...
...
@@ -49,7 +49,7 @@ namespace dbaui
@param _rDownScroll
the method to set
*/
inline
void
setDownScrollMethod
(
const
Link
<>&
_rDownScroll
)
inline
void
setDownScrollMethod
(
const
Link
<
LinkParamNone
*
,
void
>&
_rDownScroll
)
{
m_aDownScroll
=
_rDownScroll
;
}
...
...
dbaccess/source/ui/inc/dbtreelistbox.hxx
Dosyayı görüntüle @
5a915202
...
...
@@ -76,8 +76,8 @@ namespace dbaui
void
init
();
DECL_LINK_TYPED
(
OnTimeOut
,
Timer
*
,
void
);
DECL_LINK_TYPED
(
OnResetEntry
,
void
*
,
void
);
DECL_LINK
(
ScrollUpHdl
,
SvTreeListBox
*
);
DECL_LINK
(
ScrollDownHdl
,
SvTreeListBox
*
);
DECL_LINK
_TYPED
(
ScrollUpHdl
,
LinkParamNone
*
,
void
);
DECL_LINK
_TYPED
(
ScrollDownHdl
,
LinkParamNone
*
,
void
);
public
:
DBTreeListBox
(
vcl
::
Window
*
pParent
...
...
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