Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#6131: Convert game connection dialog to dockable panel
- Loading branch information
1 parent
37571b4
commit 1cdeeb5
Showing
6 changed files
with
111 additions
and
123 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,37 @@ | ||
#pragma once | ||
|
||
#include "i18n.h" | ||
#include "ui/iusercontrol.h" | ||
#include "GameConnectionPanel.h" | ||
|
||
namespace ui | ||
{ | ||
|
||
class GameConnectionControl : | ||
public IUserControl | ||
{ | ||
public: | ||
constexpr static const char* Name = "GameConnectionPanel"; | ||
|
||
std::string getControlName() override | ||
{ | ||
return Name; | ||
} | ||
|
||
std::string getDisplayName() override | ||
{ | ||
return _("Game Connection"); | ||
} | ||
|
||
std::string getIcon() override | ||
{ | ||
return {}; | ||
} | ||
|
||
wxWindow* createWidget(wxWindow* parent) override | ||
{ | ||
return new GameConnectionPanel(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
Oops, something went wrong.