Choreonoid
1.8
src
Base
SceneWidgetEventHandler.h
Go to the documentation of this file.
1
5
#ifndef CNOID_BASE_SCENE_WIDGET_EVENT_HANDLER_H
6
#define CNOID_BASE_SCENE_WIDGET_EVENT_HANDLER_H
7
8
#include "
SceneWidgetEvent.h
"
9
#include "exportdecl.h"
10
11
namespace
cnoid
{
12
13
class
MenuManager;
14
15
class
CNOID_EXPORT
SceneWidgetEventHandler
16
{
17
public
:
18
virtual
void
onSceneModeChanged(
SceneWidgetEvent
* event);
19
virtual
bool
onButtonPressEvent(
SceneWidgetEvent
* event);
20
virtual
bool
onButtonReleaseEvent(
SceneWidgetEvent
* event);
21
virtual
bool
onDoubleClickEvent(
SceneWidgetEvent
* event);
22
virtual
bool
onPointerMoveEvent(
SceneWidgetEvent
* event);
23
virtual
void
onPointerLeaveEvent(
SceneWidgetEvent
* event);
24
virtual
bool
onScrollEvent(
SceneWidgetEvent
* event);
25
virtual
bool
onKeyPressEvent(
SceneWidgetEvent
* event);
26
virtual
bool
onKeyReleaseEvent(
SceneWidgetEvent
* event);
27
virtual
void
onFocusChanged(
SceneWidgetEvent
* event,
bool
on);
28
virtual
bool
onContextMenuRequest(
SceneWidgetEvent
* event,
MenuManager
* menu);
29
30
// The following functions are deprecated. Override the above functions.
31
virtual
void
onSceneModeChanged(
const
SceneWidgetEvent
& event);
32
virtual
bool
onButtonPressEvent(
const
SceneWidgetEvent
& event);
33
virtual
bool
onButtonReleaseEvent(
const
SceneWidgetEvent
& event);
34
virtual
bool
onDoubleClickEvent(
const
SceneWidgetEvent
& event);
35
virtual
bool
onPointerMoveEvent(
const
SceneWidgetEvent
& event);
36
virtual
void
onPointerLeaveEvent(
const
SceneWidgetEvent
& event);
37
virtual
bool
onScrollEvent(
const
SceneWidgetEvent
& event);
38
virtual
bool
onKeyPressEvent(
const
SceneWidgetEvent
& event);
39
virtual
bool
onKeyReleaseEvent(
const
SceneWidgetEvent
& event);
40
virtual
void
onFocusChanged(
const
SceneWidgetEvent
& event,
bool
on);
41
virtual
bool
onContextMenuRequest(
const
SceneWidgetEvent
& event,
MenuManager
& menu);
42
// Undo and redo are not handled with SceneWidgetEditable.
43
virtual
bool
onUndoRequest();
44
virtual
bool
onRedoRequest();
45
};
46
47
// For the backward compatibility
48
typedef
SceneWidgetEventHandler
SceneWidgetEditable
;
49
50
}
51
52
#endif
cnoid::MenuManager
Definition:
MenuManager.h:14
cnoid::SceneWidgetEventHandler
Definition:
SceneWidgetEventHandler.h:15
cnoid::SceneWidgetEvent
Definition:
SceneWidgetEvent.h:15
SceneWidgetEvent.h
cnoid
Definition:
AbstractSceneLoader.h:11
cnoid::SceneWidgetEditable
SceneWidgetEventHandler SceneWidgetEditable
Definition:
SceneWidgetEventHandler.h:48
Generated by
1.8.17