Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6131: Convert LightInspector to a dockable control
- Loading branch information
1 parent
b1254d7
commit a6e78c9
Showing
7 changed files
with
74 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#pragma once | ||
|
||
#include "i18n.h" | ||
#include "ui/iusercontrol.h" | ||
#include "LightInspector.h" | ||
|
||
namespace ui | ||
{ | ||
|
||
class LightInspectorControl : | ||
public IUserControl | ||
{ | ||
public: | ||
std::string getControlName() override | ||
{ | ||
return UserControl::LightInspector; | ||
} | ||
|
||
std::string getDisplayName() override | ||
{ | ||
return _("Light Inspector"); | ||
} | ||
|
||
std::string getIcon() override | ||
{ | ||
return "bulb_lit.png"; | ||
} | ||
|
||
wxWindow* createWidget(wxWindow* parent) override | ||
{ | ||
return new LightInspector(parent); | ||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters