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
b556d5f3
Commit
b556d5f3
authored
Dec 09, 2008
by
Claes pwr46/data0/x4-6-0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Radiobutton was insensitive
parent
ac28345e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
20 deletions
+19
-20
wb/lib/wb/src/wb_wnav_brow.cpp
wb/lib/wb/src/wb_wnav_brow.cpp
+5
-5
xtt/lib/ge/src/ge_attrnav.cpp
xtt/lib/ge/src/ge_attrnav.cpp
+7
-8
xtt/lib/ge/src/ge_subgraphs.cpp
xtt/lib/ge/src/ge_subgraphs.cpp
+5
-5
xtt/lib/ge/src/ge_subpalette.cpp
xtt/lib/ge/src/ge_subpalette.cpp
+2
-2
No files found.
wb/lib/wb/src/wb_wnav_brow.cpp
View file @
b556d5f3
...
...
@@ -1058,6 +1058,8 @@ void WNavBrow::create_nodeclasses()
// Input with Used and Inverted radiobutton
brow_CreateNodeClass
(
ctx
,
"NavigatorAttrInput"
,
flow_eNodeGroup_Common
,
&
nc_attr_input
);
brow_AddRadiobutton
(
nc_attr_input
,
14
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
brow_AddRadiobutton
(
nc_attr_input
,
18
,
0.03
,
0.7
,
0.7
,
1
,
flow_eDrawType_Line
,
1
);
brow_AddAnnotPixmap
(
nc_attr_input
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_attr_input
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_attr_input
,
2
,
0.6
,
0
,
...
...
@@ -1071,12 +1073,11 @@ void WNavBrow::create_nodeclasses()
brow_AddText
(
nc_attr_input
,
"Inverted"
,
15
,
0.6
,
flow_eDrawType_TextHelvetica
,
2
);
brow_AddFrame
(
nc_attr_input
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
brow_AddRadiobutton
(
nc_attr_input
,
14
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
brow_AddRadiobutton
(
nc_attr_input
,
18
,
0.03
,
0.7
,
0.7
,
1
,
flow_eDrawType_Line
,
1
);
// Input with Inverted radiobutton
brow_CreateNodeClass
(
ctx
,
"NavigatorAttrInputNoinv"
,
flow_eNodeGroup_Common
,
&
nc_attr_inputinv
);
brow_AddRadiobutton
(
nc_attr_inputinv
,
15
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
brow_AddAnnotPixmap
(
nc_attr_inputinv
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_attr_inputinv
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_attr_inputinv
,
2
,
0.6
,
0
,
...
...
@@ -1088,11 +1089,11 @@ void WNavBrow::create_nodeclasses()
brow_AddText
(
nc_attr_inputinv
,
"Inverted"
,
12
,
0.6
,
flow_eDrawType_TextHelvetica
,
2
);
brow_AddFrame
(
nc_attr_inputinv
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
brow_AddRadiobutton
(
nc_attr_inputinv
,
15
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
// Input and output with Used radiobutton
brow_CreateNodeClass
(
ctx
,
"NavigatorAttrOutput"
,
flow_eNodeGroup_Common
,
&
nc_attr_output
);
brow_AddRadiobutton
(
nc_attr_output
,
14
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
brow_AddAnnotPixmap
(
nc_attr_output
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_attr_output
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_attr_output
,
2
,
0.6
,
0
,
...
...
@@ -1104,7 +1105,6 @@ void WNavBrow::create_nodeclasses()
brow_AddText
(
nc_attr_output
,
"Used"
,
12
,
0.6
,
flow_eDrawType_TextHelvetica
,
2
);
brow_AddFrame
(
nc_attr_output
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
brow_AddRadiobutton
(
nc_attr_output
,
14
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
// Create multiline attribute nodeclass
...
...
@@ -1141,13 +1141,13 @@ void WNavBrow::create_nodeclasses()
brow_CreateNodeClass
(
ctx
,
"NavigatorEnum"
,
flow_eNodeGroup_Common
,
&
nc_enum
);
brow_AddRadiobutton
(
nc_enum
,
12
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
brow_AddAnnotPixmap
(
nc_enum
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_enum
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_enum
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
0
);
brow_AddFrame
(
nc_enum
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
brow_AddRadiobutton
(
nc_enum
,
12
,
0.03
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
// Create table nodeclass
...
...
xtt/lib/ge/src/ge_attrnav.cpp
View file @
b556d5f3
...
...
@@ -1666,7 +1666,6 @@ static int attrnav_brow_cb( FlowCtx *ctx, flow_tEvent event)
break
;
case
flow_eEvent_Radiobutton
:
{
printf
(
"Radiobutton
\n
"
);
switch
(
event
->
object
.
object_type
)
{
case
flow_eObjectType_Node
:
...
...
@@ -1882,7 +1881,6 @@ void AttrNavBrow::create_nodeclasses()
brow_CreateNodeClass
(
ctx
,
"NavigatorDefault"
,
flow_eNodeGroup_Common
,
&
nc_object
);
brow_AddFrame
(
nc_object
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_object
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_object
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_object
,
2
,
0.6
,
0
,
...
...
@@ -1894,12 +1892,12 @@ void AttrNavBrow::create_nodeclasses()
brow_AddAnnot
(
nc_object
,
11
,
0.6
,
2
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_object
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create attribute nodeclass
brow_CreateNodeClass
(
ctx
,
"NavigatorAttr"
,
flow_eNodeGroup_Common
,
&
nc_attr
);
brow_AddFrame
(
nc_attr
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_attr
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_attr
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
...
...
@@ -1907,12 +1905,12 @@ void AttrNavBrow::create_nodeclasses()
brow_AddAnnot
(
nc_attr
,
8
,
0.6
,
1
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_attr
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create multiline attribute nodeclass
brow_CreateNodeClass
(
ctx
,
"NavigatorAttrMultiLine"
,
flow_eNodeGroup_Common
,
&
nc_attr_multiline
);
brow_AddFrame
(
nc_attr_multiline
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_attr_multiline
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_attr_multiline
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
...
...
@@ -1920,23 +1918,23 @@ void AttrNavBrow::create_nodeclasses()
brow_AddAnnot
(
nc_attr_multiline
,
8
,
0.6
,
1
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_MultiLine
,
1
);
brow_AddFrame
(
nc_attr_multiline
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create attribute nodeclass
brow_CreateNodeClass
(
ctx
,
"NavigatorEnum"
,
flow_eNodeGroup_Common
,
&
nc_enum
);
brow_AddRadiobutton
(
nc_enum
,
12
,
0.1
,
0.7
,
0.7
,
0
,
flow_eDrawType_Line
,
1
);
brow_AddFrame
(
nc_enum
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_enum
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_enum
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
0
);
brow_AddFrame
(
nc_enum
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create table nodeclass
brow_CreateNodeClass
(
ctx
,
"NavigatorTable"
,
flow_eNodeGroup_Common
,
&
nc_table
);
brow_AddFrame
(
nc_table
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_table
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_table
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_table
,
2
,
0.6
,
0
,
...
...
@@ -1969,12 +1967,12 @@ void AttrNavBrow::create_nodeclasses()
brow_AddAnnot
(
nc_table
,
38
,
0.6
,
9
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_table
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create Header
brow_CreateNodeClass
(
ctx
,
"NavigatorHead"
,
flow_eNodeGroup_Common
,
&
nc_header
);
brow_AddFrame
(
nc_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
brow_AddAnnotPixmap
(
nc_header
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_header
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
...
...
@@ -1982,12 +1980,12 @@ void AttrNavBrow::create_nodeclasses()
brow_AddAnnot
(
nc_header
,
8
,
0.6
,
1
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
// Create TableHeader
brow_CreateNodeClass
(
ctx
,
"NavigatorTableHead"
,
flow_eNodeGroup_Common
,
&
nc_table_header
);
brow_AddFrame
(
nc_table_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
brow_AddAnnotPixmap
(
nc_table_header
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_table_header
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
...
...
@@ -2019,6 +2017,7 @@ void AttrNavBrow::create_nodeclasses()
brow_AddAnnot
(
nc_table_header
,
38
,
0.6
,
9
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
0
);
brow_AddFrame
(
nc_table_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
}
...
...
xtt/lib/ge/src/ge_subgraphs.cpp
View file @
b556d5f3
...
...
@@ -395,7 +395,6 @@ void SubGraphsBrow::create_nodeclasses()
brow_CreateNodeClass
(
ctx
,
"NavigatorDefault"
,
flow_eNodeGroup_Common
,
&
nc_object
);
brow_AddFrame
(
nc_object
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_object
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_object
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_object
,
2
,
0.6
,
0
,
...
...
@@ -407,12 +406,12 @@ void SubGraphsBrow::create_nodeclasses()
brow_AddAnnot
(
nc_object
,
11
,
0.6
,
2
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_object
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create attribute nodeclass
brow_CreateNodeClass
(
ctx
,
"NavigatorAttr"
,
flow_eNodeGroup_Common
,
&
nc_attr
);
brow_AddFrame
(
nc_attr
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_attr
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_attr
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
...
...
@@ -420,12 +419,12 @@ void SubGraphsBrow::create_nodeclasses()
brow_AddAnnot
(
nc_attr
,
8
,
0.6
,
1
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_attr
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create table nodeclass
brow_CreateNodeClass
(
ctx
,
"NavigatorTable"
,
flow_eNodeGroup_Common
,
&
nc_table
);
brow_AddFrame
(
nc_table
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_table
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_table
,
1
,
1.1
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_table
,
2
,
0.6
,
0
,
...
...
@@ -458,12 +457,12 @@ void SubGraphsBrow::create_nodeclasses()
brow_AddAnnot
(
nc_table
,
38
,
0.6
,
9
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_table
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create Header
brow_CreateNodeClass
(
ctx
,
"NavigatorHead"
,
flow_eNodeGroup_Common
,
&
nc_header
);
brow_AddFrame
(
nc_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
brow_AddAnnotPixmap
(
nc_header
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_header
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
...
...
@@ -471,12 +470,12 @@ void SubGraphsBrow::create_nodeclasses()
brow_AddAnnot
(
nc_header
,
8
,
0.6
,
1
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
1
);
brow_AddFrame
(
nc_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
// Create TableHeader
brow_CreateNodeClass
(
ctx
,
"NavigatorTableHead"
,
flow_eNodeGroup_Common
,
&
nc_table_header
);
brow_AddFrame
(
nc_table_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
brow_AddAnnotPixmap
(
nc_table_header
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_table_header
,
2
,
0.6
,
0
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
...
...
@@ -508,6 +507,7 @@ void SubGraphsBrow::create_nodeclasses()
brow_AddAnnot
(
nc_table_header
,
38
,
0.6
,
9
,
flow_eDrawType_TextHelveticaBold
,
2
,
flow_eAnnotType_OneLine
,
0
);
brow_AddFrame
(
nc_table_header
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
2
,
1
);
}
int
SubGraphs
::
object_attr
()
...
...
xtt/lib/ge/src/ge_subpalette.cpp
View file @
b556d5f3
...
...
@@ -931,23 +931,23 @@ void SubPaletteBrow::create_nodeclasses()
brow_CreateNodeClass
(
ctx
,
"NavigatorDefault"
,
flow_eNodeGroup_Common
,
&
nc_object
);
brow_AddFrame
(
nc_object
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_object
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_object
,
1.5
,
0.6
,
0
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
0
);
brow_AddAnnotPixmap
(
nc_object
,
1
,
7.8
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddFrame
(
nc_object
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
// Create subgraph-class
brow_CreateNodeClass
(
ctx
,
"NavigatorSubgraph"
,
flow_eNodeGroup_Common
,
&
nc_sub
);
brow_AddFrame
(
nc_sub
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_Line
,
-
1
,
1
);
brow_AddAnnotPixmap
(
nc_sub
,
0
,
0.2
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnotPixmap
(
nc_sub
,
1
,
1.4
,
0.1
,
flow_eDrawType_Line
,
2
,
0
);
brow_AddAnnot
(
nc_sub
,
2.7
,
0.6
,
0
,
flow_eDrawType_TextHelvetica
,
2
,
flow_eAnnotType_OneLine
,
0
);
brow_AddFrame
(
nc_sub
,
0
,
0
,
20
,
0.8
,
flow_eDrawType_LineGray
,
-
1
,
1
);
}
...
...
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