Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
a72df849
Commit
a72df849
authored
Apr 04, 2011
by
Sebastian Eichelbaum
Browse files
[MERGE]
parents
ddba4ce8
57f9fa3f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
54 additions
and
17 deletions
+54
-17
.hgchurn
.hgchurn
+2
-1
doc/user/help/OpenWalnutHelp.html
doc/user/help/OpenWalnutHelp.html
+31
-3
doc/user/help/images/mainWindow.png
doc/user/help/images/mainWindow.png
+0
-0
src/CMakeLists.txt
src/CMakeLists.txt
+3
-1
src/common/WPropertyVariable.h
src/common/WPropertyVariable.h
+1
-3
src/common/math/WVector3D.h
src/common/math/WVector3D.h
+4
-3
src/gui/icons/camera.png
src/gui/icons/camera.png
+0
-0
src/gui/qt4/OpenWalnutAbout.html
src/gui/qt4/OpenWalnutAbout.html
+4
-4
src/gui/qt4/WMainWindow.cpp
src/gui/qt4/WMainWindow.cpp
+2
-1
src/kernel/combiner/WModuleProjectFileCombiner.cpp
src/kernel/combiner/WModuleProjectFileCombiner.cpp
+7
-1
No files found.
.hgchurn
View file @
a72df849
...
...
@@ -25,4 +25,5 @@ frohl.robert@googlemail.com Robert_Frohl
dirk_albrecht@gmx.net Dirk_Albrecht
albrecht Dirk_Albrecht
mstuber Marcus_Stuber
skiunke Sebastian_Kiunke
\ No newline at end of file
skiunke Sebastian_Kiunke
a_berres@informatik.uni-kl.de Anne_Berres
\ No newline at end of file
src/gui/qt4
/OpenWalnutHelp.html
→
doc/user/help
/OpenWalnutHelp.html
View file @
a72df849
<html>
<body
bgcolor=
"#fff"
>
<h1>
OpenWalnut Help
</h1>
<h1>
OpenWalnut Help
<img
src=
"icons/logoIcon.png"
/>
</h1>
<h2>
Contents
</h2>
<ol>
<li><a
href=
"#Introduction"
>
Introduction
</a></li>
<li><a
href=
"#MainWindow"
>
Main Window
</a></li>
<li><a
href=
"#Navigation"
>
Navigation
</a></li>
<li><a
href=
"#Keyboard"
>
Keyboard Shortcuts
</a></li>
<li><a
href=
"#Toolbar"
>
Toolbar
</a></li>
<li><a
href=
"#Config"
>
Customizing OpenWalnut
</a></li>
</ol>
<h2><a
name=
"Introduction"
/>
Introduction
</h2>
The intention of this help document is to give short overview of how to use the current version
of OpenWalnut. Although it is not at all comprehensive,
...
...
@@ -17,6 +20,12 @@ As described <a href="#Config">below</a>, the appearance of the GUI is customiza
asumes the standard configuration. Additionally, some described features may not be available
in every instance of OpenWalnut because the belong to special modules.
<h2><a
name=
"MainWindow"
/>
Main Window
</h2>
By now this section only shows a snapshot of the main window of OpenWalnut. In
the future this illustration will be annotated to explain the names and the use of
all components of the main window.
<img
src=
"images/mainWindow.png"
width=
"100%"
/>
<h2><a
name=
"Navigation"
/>
Navigation
</h2>
<h3>
Navigation in Main View
</h3>
<table>
...
...
@@ -62,14 +71,33 @@ in every instance of OpenWalnut because the belong to special modules.
<tr><td>
[Backspace]
</td><td>
Removes module
</td></tr>
</table>
<h2><a
name=
"Toolbar"
/>
Toolbar
</h2>
<table>
<tr><td><b>
Icon
</b></td><td><b>
Name
</b></td><td><b>
Description
</b></td></tr>
<tr><td><img
src=
"icons/fileopen.png"
width=
"20"
></td><td>
Load
Data
</td><td>
Loads data given in various formats like fibers (.fib), NIfTI
images (.nii, .nii.gz) or EEG data (.cnt).
</td></tr>
<tr><td><img
src=
"icons/projOpen.png"
width=
"20"
></td><td>
Load a project from
file
</td><td>
Opens a project file (.owp), and instantiates modules, sets their
connections and orients the scene accordingly.
</td></tr>
<tr><td><img
src=
"icons/disc.png"
width=
"20"
></td><td>
Save current project to
file
</td><td>
Saves the current state (modules, connections, orientation of
the scene) of OpenWalnut to a project file (.owp).
</td></tr>
<tr><td><img
src=
"icons/camera.png"
width=
"20"
></td><td>
Reset Main View
</td><td>
Rotates
and scales the scene in the cetral 3D view to show the same orientation as
after program startup but zoomed to show all contents of the
scene.
</td></tr>
</table>
<h2><a
name=
"Config"
/>
Customizing OpenWalnut
</h2>
OpenWalnut allows you to configure several features. Most of these options are only useful to advanced users.
You can have a user-scope configuration in your HOME directory as ".walnut.cfg".
If this file exists, OpenWalnut loads this file. You can also specify a "walnut.cfg" in your OpenWalnut directory under
"share/OpenWalnut/". A default file will be there after installation. The dafault file is very well documented.
<br
/>
<br
/>
<br
/>
<small>
For more information on OpenWalnut visit
<a
href=
"http://www.openwalnut.org"
>
www.openwalnut.org
</a>
.
</small>
</body>
</html>
\ No newline at end of file
</html>
doc/user/help/images/mainWindow.png
0 → 100644
View file @
a72df849
54 KB
src/CMakeLists.txt
View file @
a72df849
...
...
@@ -297,7 +297,9 @@ add_custom_target( fontsDirectoryConfiguration
#---------- OpenWalnut help -------------
ADD_CUSTOM_TARGET
(
onlineHelp
ALL
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
PROJECT_SOURCE_DIR
}
/gui/qt4/OpenWalnutHelp.html
${
PROJECT_BINARY_DIR
}
/share/OpenWalnut
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
PROJECT_SOURCE_DIR
}
/../doc/user/help/OpenWalnutHelp.html
${
PROJECT_BINARY_DIR
}
/share/OpenWalnut
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
PROJECT_SOURCE_DIR
}
/../doc/user/help/images/
${
PROJECT_BINARY_DIR
}
/share/OpenWalnut/images
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
PROJECT_SOURCE_DIR
}
/gui/icons/
${
PROJECT_BINARY_DIR
}
/share/OpenWalnut/icons
COMMENT
"Copy online help"
)
...
...
src/common/WPropertyVariable.h
View file @
a72df849
...
...
@@ -584,14 +584,12 @@ bool WPropertyVariable< T >::setAsString( std::string value )
{
// use the helper class which can handle different kinds of properties for us
PROPERTY_TYPE_HELPER
::
WStringConversion
<
T
>
h
=
PROPERTY_TYPE_HELPER
::
WStringConversion
<
T
>
();
WFlag
<
T
>::
set
(
h
.
create
(
WFlag
<
T
>::
get
(),
value
)
);
return
WFlag
<
T
>::
set
(
h
.
create
(
WFlag
<
T
>::
get
(),
value
)
);
}
catch
(
const
boost
::
bad_lexical_cast
&
e
)
{
return
false
;
}
return
true
;
}
template
<
typename
T
>
...
...
src/common/math/WVector3D.h
View file @
a72df849
...
...
@@ -153,9 +153,10 @@ inline std::ostream& operator<<( std::ostream& os, const WVector3D &rhs )
*/
inline
std
::
istream
&
operator
>>
(
std
::
istream
&
in
,
WVector3D
&
rhs
)
{
std
::
string
str
;
in
>>
str
;
string_utils
::
trim
(
str
,
"[]"
);
// remove preceeding and trailing brackets '[', ']' if any
char
vec
[
256
];
in
.
getline
(
vec
,
256
);
std
::
string
str
=
std
::
string
(
vec
);
str
=
string_utils
::
trim
(
str
,
"[]"
);
// remove preceeding and trailing brackets '[', ']' if any
std
::
vector
<
std
::
string
>
tokens
=
string_utils
::
tokenize
(
str
,
", "
);
for
(
size_t
i
=
0
;
i
<
tokens
.
size
();
++
i
)
{
...
...
src/gui/icons/camera.png
0 → 100644
View file @
a72df849
2.62 KB
src/gui/qt4/OpenWalnutAbout.html
View file @
a72df849
...
...
@@ -25,8 +25,8 @@ Email: <a href="mailto:contact@openwalnut.org">contact@openwalnut.org</a>
<h4>
Contributors up to version 1.2
</h4>
<i>
(in alphabetical order, current administrators in bold font)
</i><br>
Dirk Albrecht,
<b>
Sebastian Eichelbaum
</b>
, Robert Frohl,
<b>
Mathias Goldau
</b>
, Christian Heine,
Mario Hlawitschka, Sebastian Kiunke, Robin Ledig, Cornelius M
ueller,
Andr
e
Reichenbach,
<b>
Ralph Schurade
</b>
, Marcus Stuber,
<b>
Alexander Wiebel
</b>
.
<br>
Dirk Albrecht,
Anne Berres,
<b>
Sebastian Eichelbaum
</b>
, Robert Frohl,
<b>
Mathias Goldau
</b>
, Christian Heine,
Mario Hlawitschka, Sebastian Kiunke, Robin Ledig, Cornelius M
ü
ller, Stefan Philips,
Andr
é
Reichenbach,
<b>
Ralph Schurade
</b>
, Marcus Stuber,
<b>
Alexander Wiebel
</b>
.
<br>
<br><br>
<i>
Thank you for using OpenWalnut!
</i>
\ No newline at end of file
<i>
Thank you for using OpenWalnut!
</i>
src/gui/qt4/WMainWindow.cpp
View file @
a72df849
...
...
@@ -766,7 +766,8 @@ void WMainWindow::openOpenWalnutHelpDialog()
window
->
show
();
QWebView
*
view
=
new
QWebView
(
this
);
view
->
setHtml
(
content
.
c_str
()
);
QString
location
(
QString
(
"file://"
)
+
WPathHelper
::
getAppPath
().
file_string
().
c_str
()
+
"/../share/OpenWalnut/"
);
view
->
setHtml
(
content
.
c_str
(),
QUrl
(
location
)
);
view
->
show
();
layout
->
addWidget
(
view
);
}
...
...
src/kernel/combiner/WModuleProjectFileCombiner.cpp
View file @
a72df849
...
...
@@ -47,6 +47,7 @@
#include "../../common/WPropertyVariable.h"
#include "../../common/WPropertyTypes.h"
#include "../../common/WLogger.h"
#include "../../common/math/WVector3D.h"
#include "WModuleProjectFileCombiner.h"
...
...
@@ -215,7 +216,12 @@ void WModuleProjectFileCombiner::apply()
if
(
prop
->
getPurpose
()
!=
PV_PURPOSE_INFORMATION
)
{
// set the property here
prop
->
setAsString
(
(
*
iter
).
second
);
bool
result
=
prop
->
setAsString
(
(
*
iter
).
second
);
if
(
!
result
)
{
wlog
::
error
(
"Project Loader"
)
<<
"Failed to set property "
<<
(
*
iter
).
first
.
second
<<
" in module
\"
"
<<
m
->
getName
()
<<
"
\"
."
;
}
}
else
{
...
...
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