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
80090365
Commit
80090365
authored
Jul 12, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Option ZeroIfHeaderIs0 added
parent
dd0240c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
xtt/lib/glow/src/glow_growtable.cpp
xtt/lib/glow/src/glow_growtable.cpp
+7
-0
xtt/lib/glow/src/glow_growtable.h
xtt/lib/glow/src/glow_growtable.h
+2
-1
No files found.
xtt/lib/glow/src/glow_growtable.cpp
View file @
80090365
...
...
@@ -558,6 +558,13 @@ void GrowTable::draw( GlowTransform *t, int highlight, int hot, void *node, void
if
(
strcmp
(
cell_value
+
j
*
column_size
[
0
],
""
)
==
0
)
continue
;
}
if
(
options
&
glow_mTableOptions_ZeroIfHeaderIs0
)
{
// Don't draw the row if the value in the first column is zero
char
*
s
;
for
(
s
=
cell_value
+
j
*
column_size
[
0
];
*
s
&&
*
s
==
' '
;
s
++
)
;
if
(
strcmp
(
s
,
"0"
)
==
0
)
continue
;
}
if
(
y
>
ll_y
)
{
offs
=
column_offs
+
column_size
[
i
]
*
j
;
...
...
xtt/lib/glow/src/glow_growtable.h
View file @
80090365
...
...
@@ -14,7 +14,8 @@ class GrowScrollBar;
typedef
enum
{
glow_mTableOptions_No
=
0
,
glow_mTableOptions_ZeroIfHeader
=
1
<<
0
glow_mTableOptions_ZeroIfHeader
=
1
<<
0
,
glow_mTableOptions_ZeroIfHeaderIs0
=
1
<<
1
}
glow_mTableOptions
;
//! Class for drawing a bar object.
...
...
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