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
62fc2c31
Commit
62fc2c31
authored
Jun 15, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bold is set on subannot when changed in editor
parent
5f6db06a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
xtt/lib/glow/src/glow_growctx.cpp
xtt/lib/glow/src/glow_growctx.cpp
+3
-1
xtt/lib/glow/src/glow_growsubannot.cpp
xtt/lib/glow/src/glow_growsubannot.cpp
+18
-1
xtt/lib/glow/src/glow_growsubannot.h
xtt/lib/glow/src/glow_growsubannot.h
+2
-1
No files found.
xtt/lib/glow/src/glow_growctx.cpp
View file @
62fc2c31
/*
* Proview $Id: glow_growctx.cpp,v 1.2
2 2007-05-07 14:35:0
3 claes Exp $
* Proview $Id: glow_growctx.cpp,v 1.2
3 2007-06-15 11:34:4
3 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -2843,6 +2843,8 @@ void GrowCtx::set_select_textbold( int bold)
((
GrowFolder
*
)
a_sel
[
i
])
->
set_textbold
(
bold
);
else
if
(
a_sel
[
i
]
->
type
()
==
glow_eObjectType_GrowTable
)
((
GrowTable
*
)
a_sel
[
i
])
->
set_textbold
(
bold
);
else
if
(
a_sel
[
i
]
->
type
()
==
glow_eObjectType_GrowSubAnnot
)
((
GrowSubAnnot
*
)
a_sel
[
i
])
->
set_textbold
(
bold
);
}
}
...
...
xtt/lib/glow/src/glow_growsubannot.cpp
View file @
62fc2c31
/*
* Proview $Id: glow_growsubannot.cpp,v 1.
6 2007-05-23 08:04:09
claes Exp $
* Proview $Id: glow_growsubannot.cpp,v 1.
7 2007-06-15 11:34:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -568,3 +568,20 @@ void GrowSubAnnot::draw()
x_right
*
ctx
->
navw
.
zoom_factor_x
-
ctx
->
navw
.
offset_x
+
1
,
y_high
*
ctx
->
navw
.
zoom_factor_y
-
ctx
->
navw
.
offset_y
+
1
);
}
void
GrowSubAnnot
::
set_textbold
(
int
bold
)
{
if
(
(
bold
&&
draw_type
==
glow_eDrawType_TextHelveticaBold
)
||
(
!
bold
&&
draw_type
==
glow_eDrawType_TextHelvetica
))
return
;
erase
(
&
ctx
->
mw
);
erase
(
&
ctx
->
navw
);
if
(
bold
)
draw_type
=
glow_eDrawType_TextHelveticaBold
;
else
draw_type
=
glow_eDrawType_TextHelvetica
;
get_node_borders
();
draw
();
}
xtt/lib/glow/src/glow_growsubannot.h
View file @
62fc2c31
/*
* Proview $Id: glow_growsubannot.h,v 1.
5 2007-01-04 07:57:39
claes Exp $
* Proview $Id: glow_growsubannot.h,v 1.
6 2007-06-15 11:34:43
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -97,6 +97,7 @@ class GrowSubAnnot : public GlowAnnot {
void
set_original_text_color
(
glow_eDrawType
drawtype
)
{
color_drawtype
=
drawtype
;
text
.
color_drawtype
=
drawtype
;
draw
();};
void
draw
();
void
set_textbold
(
int
bold
);
};
#endif
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