Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenWalnut Core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
44
Issues
44
List
Boards
Labels
Service Desk
Milestones
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
3aa66386
Commit
3aa66386
authored
Aug 11, 2010
by
Alexander Wiebel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CHANGE
#357
] clarified some text messages showing up in the gui
parent
c3e12e05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
src/gui/qt4/datasetbrowser/WQtTreeItem.cpp
src/gui/qt4/datasetbrowser/WQtTreeItem.cpp
+15
-13
No files found.
src/gui/qt4/datasetbrowser/WQtTreeItem.cpp
View file @
3aa66386
...
...
@@ -114,27 +114,29 @@ void WQtTreeItem::updateTooltip( std::string progress )
// also list the connectors
std
::
string
conList
=
""
;
WModule
::
InputConnectorList
cons
=
m_module
->
getInputConnectors
();
WModule
::
InputConnectorList
cons
In
=
m_module
->
getInputConnectors
();
WModule
::
OutputConnectorList
consOut
=
m_module
->
getOutputConnectors
();
conList
+=
"<table><tr><th>Name</th><th>Description</th><th>Connected</th></tr>"
;
conList
+=
"<table><tr><th>Name</th><th>Description</th><th>
Type (I/O)</th><th>
Connected</th></tr>"
;
int
conCount
=
0
;
for
(
WModule
::
InputConnectorList
::
const_iterator
it
=
cons
.
begin
();
it
!=
cons
.
end
();
++
it
)
for
(
WModule
::
InputConnectorList
::
const_iterator
it
=
cons
In
.
begin
();
it
!=
consIn
.
end
();
++
it
)
{
++
conCount
;
conList
+=
"<tr><td><b>"
+
(
*
it
)
->
getName
()
+
" </b></td><td> "
+
(
*
it
)
->
getDescription
()
+
" </td>"
;
conList
+=
(
*
it
)
->
isConnected
()
?
"<td> yes </td>"
:
"<td> no </td>"
;
conList
+=
"<tr><td><b>"
+
(
*
it
)
->
getName
()
+
" </b></td><td>"
+
(
*
it
)
->
getDescription
()
+
" </td>"
;
conList
+=
"<td><center>In</center></td>"
;
conList
+=
(
*
it
)
->
isConnected
()
?
"<td><center>Yes</center></td>"
:
"<td><center>No</center></td>"
;
conList
+=
"</tr>"
;
}
for
(
WModule
::
OutputConnectorList
::
const_iterator
it
=
consOut
.
begin
();
it
!=
consOut
.
end
();
++
it
)
{
++
conCount
;
conList
+=
"<tr><td><b>"
+
(
*
it
)
->
getName
()
+
" </b></td><td> "
+
(
*
it
)
->
getDescription
()
+
" </td>"
;
conList
+=
(
*
it
)
->
isConnected
()
?
"<td> yes </td>"
:
"<td> no </td>"
;
conList
+=
"<tr><td><b>"
+
(
*
it
)
->
getName
()
+
" </b></td><td>"
+
(
*
it
)
->
getDescription
()
+
" </td>"
;
conList
+=
"<td><center>Out</center></td>"
;
conList
+=
(
*
it
)
->
isConnected
()
?
"<td></center>Yes</center></td>"
:
"<td><center>No</center></td>"
;
conList
+=
"</tr>"
;
}
conList
+=
"</table>"
;
tooltip
+=
conCount
?
"
yes"
+
conList
+
"<br/><br/>"
:
"n
one<br/>"
;
tooltip
+=
conCount
?
"
Yes"
+
conList
+
"<br/><br/>"
:
"N
one<br/>"
;
tooltip
+=
"<b>Module Description: </b><br/>"
+
m_module
->
getDescription
();
setToolTip
(
0
,
tooltip
.
c_str
()
);
...
...
@@ -155,14 +157,14 @@ void WQtTreeItem::updateState()
std
::
string
connInfo
=
""
;
if
(
(
m_handledOutput
!=
""
)
&&
(
m_handledInput
!=
""
)
)
{
connInfo
=
"("
+
m_handledOutput
+
"->"
+
m_handledInput
+
") "
;
connInfo
=
"
("
+
m_handledOutput
+
"->"
+
m_handledInput
+
") "
;
}
// is it pending?
std
::
string
progress
=
"
w
aiting"
;
std
::
string
progress
=
"
W
aiting"
;
if
(
m_module
->
isCrashed
()()
)
{
setText
(
0
,
(
connInfo
+
m_name
+
" (problem occurred)"
).
c_str
()
);
setText
(
0
,
(
m_name
+
" (problem occurred)"
+
connInfo
).
c_str
()
);
// strike out the name of the module to show the crash visually.
QFont
curFont
=
font
(
0
);
...
...
@@ -188,12 +190,12 @@ void WQtTreeItem::updateState()
title
<<
"Pending"
;
}
setText
(
0
,
(
connInfo
+
m_name
+
" - "
+
title
.
str
()
).
c_str
()
);
setText
(
0
,
(
m_name
+
" - "
+
title
.
str
()
+
connInfo
).
c_str
()
);
}
else
{
setIcon
(
0
,
QIcon
()
);
setText
(
0
,
(
connInfo
+
m_name
).
c_str
()
);
setText
(
0
,
(
m_name
+
connInfo
).
c_str
()
);
}
// if the user requested it to be deleted: disable and color it
...
...
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