Skip to content

Commit

Permalink
update apps to latest API
Browse files Browse the repository at this point in the history
  • Loading branch information
jafl committed May 10, 2024
1 parent 494e656 commit 5ed2cde
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion tools/jx_layout_editor/code/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ App::DisplayAbout
ForgetPrefsManager();
JXGetApplication()->Quit();
}
});
},
"App::DisplayAbout");
}

/******************************************************************************
Expand Down
6 changes: 4 additions & 2 deletions tools/jx_layout_editor/code/LayoutWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,8 @@ LayoutWidget::SetSelected
const bool ok = itsParent->Focus();
assert( ok );
GetWindow()->Refresh();
});
},
"LayoutWidget::Focus");
task->Go();
}
}
Expand Down Expand Up @@ -971,7 +972,8 @@ LayoutWidget::HandleMouseUp
auto* task = jnew JXUrgentFunctionTask(this, [this]()
{
EditConfiguration();
});
},
"LayoutWidget::EditConfiguration");
task->Go();
}
else if (itsClearIfNotDNDFlag)
Expand Down
3 changes: 2 additions & 1 deletion tools/jx_layout_editor/code/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ main
JXApplication::StartFiber([argc, argv]()
{
GetMDIServer()->HandleCmdLineOptions(argc, argv);
});
},
"main->mdi");

if (displayAbout)
{
Expand Down
3 changes: 2 additions & 1 deletion tools/jx_memory_debugger/code/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ App::DisplayAbout
ForgetPrefsManager();
JXGetApplication()->Quit();
}
});
},
"App::DisplayAbout");
}

/******************************************************************************
Expand Down
4 changes: 3 additions & 1 deletion tools/jx_memory_debugger/code/StatsDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ StatsDirector::SetLink
ListenTo(itsLink);
DeleteDebugAcceptor();

itsPingTask = jnew JXFunctionTask(kRefreshInterval, std::bind(&StatsDirector::RequestRunningStats, this));
itsPingTask = jnew JXFunctionTask(kRefreshInterval,
std::bind(&StatsDirector::RequestRunningStats, this),
"StatsDirector::Ping");
itsPingTask->Start();
}

Expand Down
3 changes: 2 additions & 1 deletion tools/jx_menu_editor/code/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ App::DisplayAbout
ForgetPrefsManager();
JXGetApplication()->Quit();
}
});
},
"App::DisplayAbout");
}

/******************************************************************************
Expand Down
5 changes: 3 additions & 2 deletions tools/jx_menu_editor/code/MenuDocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ MenuDocument::Create
(**doc).Activate();

MenuDocument* d = *doc;
auto* task = jnew JXUrgentFunctionTask(d, std::function([d]()
auto* task = jnew JXUrgentFunctionTask(d, [d]()
{
d->DataReverted();
}));
},
"MenuDocument::DataReverted");
task->Go();

return true;
Expand Down
3 changes: 2 additions & 1 deletion tools/jx_menu_editor/code/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ main
JXApplication::StartFiber([argc, argv]()
{
GetMDIServer()->HandleCmdLineOptions(argc, argv);
});
},
"main->mdi");

if (displayAbout)
{
Expand Down

0 comments on commit 5ed2cde

Please sign in to comment.