|
84 | 84 | #include "lightinspector/LightInspectorControl.h" |
85 | 85 | #include "decalshooter/DecalShooterControl.h" |
86 | 86 | #include "overlay/OrthoBackgroundControl.h" |
| 87 | +#include "selectiongroup/SelectionGroupControl.h" |
87 | 88 | #include "patch/PatchInspectorControl.h" |
88 | 89 | #include "surfaceinspector/SurfaceInspectorControl.h" |
89 | 90 | #include "textool/TextureToolControl.h" |
@@ -207,6 +208,12 @@ void UserInterfaceModule::initialiseModule(const IApplicationContext& ctx) |
207 | 208 | []() { return cmd::ExecutionNotPossible::ToBool(selection::checkUngroupSelectedAvailable); }), |
208 | 209 | IOrthoContextMenu::SECTION_SELECTION_GROUPS); |
209 | 210 |
|
| 211 | + GlobalOrthoContextMenu().addItem(std::make_shared<wxutil::MenuItem>( |
| 212 | + new wxutil::IconTextMenuItem(_("Ungroup Selection Recursively"), "ungroup_selection.png"), |
| 213 | + []() { selection::ungroupSelectedRecursively(); }, |
| 214 | + []() { return cmd::ExecutionNotPossible::ToBool(selection::checkUngroupSelectedAvailable); }), |
| 215 | + IOrthoContextMenu::SECTION_SELECTION_GROUPS); |
| 216 | + |
210 | 217 | _longOperationHandler.reset(new LongRunningOperationHandler); |
211 | 218 | _mapFileProgressHandler.reset(new MapFileProgressHandler); |
212 | 219 | _autoSaveRequestHandler.reset(new AutoSaveRequestHandler); |
@@ -271,6 +278,7 @@ void UserInterfaceModule::initialiseModule(const IApplicationContext& ctx) |
271 | 278 | registerControl(std::make_shared<FindShaderControl>()); |
272 | 279 | registerControl(std::make_shared<OrthoBackgroundControl>()); |
273 | 280 | registerControl(std::make_shared<DecalShooterControl>()); |
| 281 | + registerControl(std::make_shared<SelectionGroupControl>()); |
274 | 282 |
|
275 | 283 | GlobalMainFrame().signal_MainFrameConstructed().connect([&]() |
276 | 284 | { |
@@ -312,6 +320,9 @@ void UserInterfaceModule::initialiseModule(const IApplicationContext& ctx) |
312 | 320 | GlobalMainFrame().addControl( |
313 | 321 | UserControl::DecalShooter, ControlSettings::floating(300, 200) |
314 | 322 | ); |
| 323 | + GlobalMainFrame().addControl( |
| 324 | + UserControl::SelectionGroupPanel, ControlSettings::floating(300, 400) |
| 325 | + ); |
315 | 326 |
|
316 | 327 | _viewMenu = std::make_unique<ViewMenu>(); |
317 | 328 | }); |
|
0 commit comments