Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CGoGN
CGoGN
Commits
ceb16a9c
Commit
ceb16a9c
authored
May 11, 2011
by
Pierre Kraemer
Browse files
ajout cb_wheelEvent
parent
4bc17c66
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Utils/qtSimple.h
View file @
ceb16a9c
...
...
@@ -291,6 +291,11 @@ public:
*/
virtual
void
cb_mouseMove
(
int
button
,
int
x
,
int
y
)
{}
/**
* the mouse has been move (with button still pressed)
*/
virtual
void
cb_wheelEvent
(
int
delta
,
int
x
,
int
y
)
{}
/**
* key press CB (context is ok)
*/
...
...
@@ -365,7 +370,6 @@ public:
*/
std
::
string
selectFileSave
(
const
std
::
string
&
title
=
"open file"
,
const
std
::
string
&
dir
=
"."
,
const
std
::
string
&
filters
=
"all (*.*)"
);
public
slots
:
virtual
void
cb_New
()
{
std
::
cerr
<<
"callback not implemented"
<<
std
::
endl
;
}
virtual
void
cb_Open
()
{
std
::
cerr
<<
"callback not implemented"
<<
std
::
endl
;
}
...
...
src/Utils/qtgl.cpp
View file @
ceb16a9c
...
...
@@ -241,6 +241,9 @@ void GLWidget::wheelEvent(QWheelEvent* event)
newModel
=
1
;
updateGL
();
if
(
m_cbs
)
m_cbs
->
cb_wheelEvent
(
event
->
delta
(),
event
->
x
(),
getHeight
()
-
event
->
y
());
}
void
GLWidget
::
keyPressEvent
(
QKeyEvent
*
event
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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