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
cf677ac6
Commit
cf677ac6
authored
Jul 12, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rect attribute Fixcolor added
parent
01f67e32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
xtt/lib/glow/src/glow.h
xtt/lib/glow/src/glow.h
+1
-0
xtt/lib/glow/src/glow_growrect.cpp
xtt/lib/glow/src/glow_growrect.cpp
+8
-1
xtt/lib/glow/src/glow_growrect.h
xtt/lib/glow/src/glow_growrect.h
+1
-0
No files found.
xtt/lib/glow/src/glow.h
View file @
cf677ac6
...
...
@@ -1149,6 +1149,7 @@ typedef enum {
glow_eSave_GrowRect_shadow_contrast
=
1916
,
glow_eSave_GrowRect_disable_shadow
=
1917
,
glow_eSave_GrowRect_invisible
=
1918
,
glow_eSave_GrowRect_fixcolor
=
1919
,
glow_eSave_GrowLine_x_right
=
2000
,
glow_eSave_GrowLine_x_left
=
2001
,
glow_eSave_GrowLine_y_high
=
2002
,
...
...
xtt/lib/glow/src/glow_growrect.cpp
View file @
cf677ac6
...
...
@@ -21,7 +21,7 @@ GrowRect::GrowRect( GlowCtx *glow_ctx, char *name, double x, double y,
original_fill_drawtype
(
fill_d_type
),
fill_drawtype
(
fill_d_type
),
border
(
display_border
),
dynamic
(
0
),
dynamicsize
(
0
),
shadow
(
display_shadow
),
shadow_width
(
5
),
relief
(
glow_eRelief_Up
),
shadow_contrast
(
2
),
disable_shadow
(
0
),
invisible
(
0
)
shadow_contrast
(
2
),
disable_shadow
(
0
),
invisible
(
0
)
,
fixcolor
(
0
)
{
strcpy
(
n_name
,
name
);
pzero
.
nav_zoom
();
...
...
@@ -263,6 +263,7 @@ void GrowRect::save( ofstream& fp, glow_eSaveMode mode)
fp
<<
int
(
glow_eSave_GrowRect_shadow_contrast
)
<<
FSPACE
<<
shadow_contrast
<<
endl
;
fp
<<
int
(
glow_eSave_GrowRect_relief
)
<<
FSPACE
<<
int
(
relief
)
<<
endl
;
fp
<<
int
(
glow_eSave_GrowRect_invisible
)
<<
FSPACE
<<
invisible
<<
endl
;
fp
<<
int
(
glow_eSave_GrowRect_fixcolor
)
<<
FSPACE
<<
fixcolor
<<
endl
;
fp
<<
int
(
glow_eSave_GrowRect_disable_shadow
)
<<
FSPACE
<<
disable_shadow
<<
endl
;
fp
<<
int
(
glow_eSave_GrowRect_dynamicsize
)
<<
FSPACE
<<
dynamicsize
<<
endl
;
fp
<<
int
(
glow_eSave_GrowRect_dynamic
)
<<
endl
;
...
...
@@ -319,6 +320,7 @@ void GrowRect::open( ifstream& fp)
case
glow_eSave_GrowRect_relief
:
fp
>>
tmp
;
relief
=
(
glow_eRelief
)
tmp
;
break
;
case
glow_eSave_GrowRect_disable_shadow
:
fp
>>
disable_shadow
;
break
;
case
glow_eSave_GrowRect_invisible
:
fp
>>
invisible
;
break
;
case
glow_eSave_GrowRect_fixcolor
:
fp
>>
fixcolor
;
break
;
case
glow_eSave_GrowRect_dynamicsize
:
fp
>>
dynamicsize
;
break
;
case
glow_eSave_GrowRect_dynamic
:
fp
.
getline
(
dummy
,
sizeof
(
dummy
));
...
...
@@ -700,6 +702,8 @@ void GrowRect::draw( GlowTransform *t, int highlight, int hot, void *node, void
return
;
int
idx
;
glow_eDrawType
drawtype
;
if
(
fixcolor
)
colornode
=
0
;
if
(
fix_line_width
)
{
...
...
@@ -868,6 +872,9 @@ void GrowRect::nav_draw( GlowTransform *t, int highlight, void *node, void *colo
return
;
if
(
!
(
display_level
&
ctx
->
display_level
))
return
;
if
(
fixcolor
)
colornode
=
0
;
glow_eDrawType
drawtype
;
int
idx
;
if
(
fix_line_width
)
...
...
xtt/lib/glow/src/glow_growrect.h
View file @
cf677ac6
...
...
@@ -278,6 +278,7 @@ class GrowRect : public GlowRect {
int
shadow_contrast
;
//!< Shadow contrast.
int
disable_shadow
;
//!< Disable shadow, even if parent node has shadow.
int
invisible
;
//!< Invisible if not highlighted.
int
fixcolor
;
//!< Color independent of node color.
//! Set user data.
/*!
...
...
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