Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
2248990d
Commit
2248990d
authored
Apr 21, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Open annotation without selecting the text
parent
a5acb119
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
xtt/lib/glow/src/glow_growapi.cpp
xtt/lib/glow/src/glow_growapi.cpp
+6
-0
xtt/lib/glow/src/glow_growapi.h
xtt/lib/glow/src/glow_growapi.h
+7
-0
xtt/lib/glow/src/glow_grownode.cpp
xtt/lib/glow/src/glow_grownode.cpp
+15
-0
xtt/lib/glow/src/glow_grownode.h
xtt/lib/glow/src/glow_grownode.h
+4
-0
No files found.
xtt/lib/glow/src/glow_growapi.cpp
View file @
2248990d
...
...
@@ -272,6 +272,12 @@ void grow_OpenAnnotationInput( grow_tNode node, int number)
((
GrowNode
*
)
node
)
->
open_annotation_input
(
number
);
}
void
grow_SetAnnotationSelection
(
grow_tNode
node
,
int
selection
)
{
if
(
((
GlowArrayElem
*
)
node
)
->
type
()
==
glow_eObjectType_GrowNode
)
((
GrowNode
*
)
node
)
->
set_annotation_selection
(
selection
);
}
void
grow_CloseAnnotationInput
(
grow_tNode
node
,
int
number
)
{
if
(
((
GlowArrayElem
*
)
node
)
->
type
()
==
glow_eObjectType_GrowNode
)
...
...
xtt/lib/glow/src/glow_growapi.h
View file @
2248990d
...
...
@@ -363,6 +363,13 @@ typedef GlowTraceData glow_sTraceData;
*/
void
grow_OpenAnnotationInput
(
grow_tNode
node
,
int
number
);
//! Set text selection of annotation.
/*!
\param node Node object.
\param selection 1 selected, 0 not selected.
*/
void
grow_SetAnnotationSelection
(
grow_tNode
node
,
int
selection
);
//! Check if an annotation is open for input.
/*!
\param node Node object.
...
...
xtt/lib/glow/src/glow_grownode.cpp
View file @
2248990d
...
...
@@ -2031,6 +2031,21 @@ void GrowNode::close_annotation_input()
}
}
void
GrowNode
::
set_annotation_selection
(
int
selection
)
{
if
(
!
input_active
)
return
;
if
(
selection
&&
!
input_selected
)
{
input_selected
=
1
;
draw
();
}
else
if
(
!
selection
&&
input_selected
)
{
input_selected
=
0
;
draw
();
}
}
void
GrowNode
::
annot_input_event
(
glow_eEvent
event
,
int
keycode
)
{
int
i
;
...
...
xtt/lib/glow/src/glow_grownode.h
View file @
2248990d
...
...
@@ -883,6 +883,10 @@ class GrowNode : public GlowNode {
//! Close any annotation for input.
void
close_annotation_input
();
//! Set text selection of open annotation
/*! \param selection 1 selected, 0 not selected. */
void
set_annotation_selection
(
int
selection
);
//! Handle an annotation input event.
/*!
\param event Key event.
...
...
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