Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6131: Migrate LayerControlPanel to derive from wxPanel, create adapt…
…er for docking
- Loading branch information
1 parent
e81fe4d
commit 2bc1a60
Showing
7 changed files
with
49 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
#include "ui/iusercontrol.h" | ||
#include "LayerControlPanel.h" | ||
|
||
namespace ui | ||
{ | ||
|
||
class LayerControl : | ||
public IUserControl | ||
{ | ||
public: | ||
std::string getControlName() override | ||
{ | ||
return UserControl::LayerControlPanel; | ||
} | ||
|
||
std::string getDisplayName() override | ||
{ | ||
return _("Layers"); | ||
} | ||
|
||
std::string getIcon() override | ||
{ | ||
return "layers.png"; | ||
} | ||
|
||
wxWindow* createWidget(wxWindow* parent) override | ||
{ | ||
return new LayerControlPanel(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
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