Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
1e16a977
Commit
1e16a977
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
Minor corrections to reconstruct main
parent
781500c2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/gui/src/main.cpp
+5
-3
5 additions, 3 deletions
applications/gui/src/main.cpp
with
5 additions
and
3 deletions
applications/gui/src/main.cpp
+
5
−
3
View file @
1e16a977
...
...
@@ -62,8 +62,8 @@ int main(int argc, char **argv) {
net
->
start
();
//net->waitConnections();
ftl
::
ctrl
::
Master
controller
(
root
,
net
);
controller
.
onLog
([](
const
ftl
::
ctrl
::
LogEvent
&
e
){
ftl
::
ctrl
::
Master
*
controller
=
new
ftl
::
ctrl
::
Master
(
root
,
net
);
controller
->
onLog
([](
const
ftl
::
ctrl
::
LogEvent
&
e
){
const
int
v
=
e
.
verbosity
;
switch
(
v
)
{
case
-
2
:
LOG
(
ERROR
)
<<
"Remote log: "
<<
e
.
message
;
break
;
...
...
@@ -81,7 +81,7 @@ int main(int argc, char **argv) {
nanogui
::
init
();
/* scoped variables */
{
nanogui
::
ref
<
FTLApplication
>
app
=
new
FTLApplication
(
root
,
net
,
&
controller
);
nanogui
::
ref
<
FTLApplication
>
app
=
new
FTLApplication
(
root
,
net
,
controller
);
app
->
drawAll
();
app
->
setVisible
(
true
);
nanogui
::
mainloop
();
...
...
@@ -98,6 +98,8 @@ int main(int argc, char **argv) {
return
-
1
;
}
net
->
shutdown
();
delete
controller
;
delete
net
;
delete
root
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment