Choreonoid
1.8
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
Variables
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
p
q
r
s
t
v
w
z
Enumerations
Enumerator
a
b
c
d
f
g
i
k
l
m
n
p
s
t
u
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
i
l
n
p
r
s
t
u
v
Enumerations
a
b
c
d
e
f
h
i
j
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Properties
Related Functions
b
c
d
e
f
g
h
i
j
l
m
o
p
r
s
t
v
w
y
Files
File List
File Members
All
Functions
Variables
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Base
UnifiedEditHistory.h
Go to the documentation of this file.
1
#ifndef CNOID_BASE_UNIFIED_EDIT_HISTORY_H
2
#define CNOID_BASE_UNIFIED_EDIT_HISTORY_H
3
4
#include <cnoid/Referenced>
5
#include <cnoid/Signal>
6
#include <string>
7
#include "exportdecl.h"
8
9
namespace
cnoid
{
10
11
class
ExtensionManager;
12
13
class
EditRecord;
14
typedef
ref_ptr<EditRecord>
EditRecordPtr
;
15
16
class
CNOID_EXPORT
UnifiedEditHistory
17
{
18
public
:
19
static
void
initializeClass(
ExtensionManager
* ext);
20
static
UnifiedEditHistory
* instance();
21
22
int
numRecords()
const
;
23
25
EditRecord
* record(
int
index);
26
27
void
addRecord(
EditRecordPtr
record);
28
void
beginEditGroup(
const
std::string& label);
29
void
endEditGroup();
30
31
int
currentPosition()
const
;
32
bool
undo();
33
bool
redo();
34
35
void
clear();
36
37
SignalProxy
<void()> sigHistoryUpdated();
38
SignalProxy
<void(
int
position)> sigCurrentPositionChanged();
39
40
private
:
41
UnifiedEditHistory
(
ExtensionManager
* ext);
42
~
UnifiedEditHistory
();
43
44
class
Impl;
45
Impl* impl;
46
};
47
48
}
49
50
#endif
cnoid::ExtensionManager
Definition:
ExtensionManager.h:23
cnoid::EditRecord
Definition:
EditRecord.h:11
cnoid::UnifiedEditHistory
Definition:
UnifiedEditHistory.h:16
cnoid::ref_ptr
Definition:
Referenced.h:103
cnoid
Definition:
AbstractSceneLoader.h:11
cnoid::EditRecordPtr
ref_ptr< EditRecord > EditRecordPtr
Definition:
EditRecord.h:35
cnoid::SignalProxy
Definition:
Signal.h:470
Generated by
1.8.17