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
68c1f757
Kaydet (Commit)
68c1f757
authored
Ara 04, 2011
tarafından
Ivan Timofeev
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
visual formula editor: implement selection by mouse
üst
558b5ea3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
view.hxx
starmath/inc/view.hxx
+1
-0
view.cxx
starmath/source/view.cxx
+17
-3
No files found.
starmath/inc/view.hxx
Dosyayı görüntüle @
68c1f757
...
...
@@ -103,6 +103,7 @@ public:
// Window
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
);
virtual
void
MouseMove
(
const
MouseEvent
&
rMEvt
);
virtual
void
GetFocus
();
virtual
void
LoseFocus
();
...
...
starmath/source/view.cxx
Dosyayı görüntüle @
68c1f757
...
...
@@ -182,9 +182,7 @@ void SmGraphicWindow::MouseButtonDown(const MouseEvent& rMEvt)
return
;
if
(
IsInlineEditEnabled
())
{
// if it was clicked inside the formula then get the appropriate node
if
(
pTree
->
OrientedDist
(
aPos
)
<=
0
)
pViewShell
->
GetDoc
()
->
GetCursor
().
MoveTo
(
this
,
aPos
,
!
rMEvt
.
IsShift
());
pViewShell
->
GetDoc
()
->
GetCursor
().
MoveTo
(
this
,
aPos
,
!
rMEvt
.
IsShift
());
return
;
}
const
SmNode
*
pNode
=
0
;
...
...
@@ -214,6 +212,22 @@ void SmGraphicWindow::MouseButtonDown(const MouseEvent& rMEvt)
}
}
void
SmGraphicWindow
::
MouseMove
(
const
MouseEvent
&
rMEvt
)
{
ScrollableWindow
::
MouseMove
(
rMEvt
);
if
(
rMEvt
.
IsLeft
()
&&
IsInlineEditEnabled
())
{
Point
aPos
(
PixelToLogic
(
rMEvt
.
GetPosPixel
())
-
GetFormulaDrawPos
());
pViewShell
->
GetDoc
()
->
GetCursor
().
MoveTo
(
this
,
aPos
,
false
);
CaretBlinkStop
();
SetIsCursorVisible
(
true
);
CaretBlinkStart
();
RepaintViewShellDoc
();
}
}
bool
SmGraphicWindow
::
IsInlineEditEnabled
()
const
{
return
pViewShell
->
IsInlineEditEnabled
();
...
...
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