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