GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
ChildWindow.cpp
Go to the documentation of this file.
1#include "ChildWindow.h"
2
4
6
7using namespace std;
8
9namespace gui_framework
10{
11 ChildWindow::ChildWindow(const wstring& className, const wstring& windowName, const utility::ComponentSettings& settings, BaseComposite* parent, const string& windowFunctionName) :
13 (
14 className,
15 windowName,
16 settings,
17 parent,
18 windowFunctionName
19 ),
20 IResizableComponent
21 (
22 handle,
23 parent->getHandle()
24 )
25 {
26
27 }
28
29 unique_ptr<Menu>& ChildWindow::createMainMenu(const wstring& menuName)
30 {
31 __utility::throwNotImplementedException(__FUNCTION__, "ChildWindow"sv);
32
33 return BaseComposite::createMainMenu(menuName);
34 }
35
36 Menu& ChildWindow::addPopupMenu(const wstring& menuName)
37 {
38 __utility::throwNotImplementedException(__FUNCTION__, "ChildWindow"sv);
39
40 return BaseComposite::addPopupMenu(menuName);
41 }
42
43 void ChildWindow::removePopupMenus(const wstring& menuName)
44 {
45 __utility::throwNotImplementedException(__FUNCTION__, "ChildWindow"sv);
46 }
47
48 size_t ChildWindow::getHash() const
49 {
50 return typeid(ChildWindow).hash_code();
51 }
52}
Base class for all nested windows.
Base class for all windows that has children windows.
virtual std::unique_ptr< Menu > & createMainMenu(const std::wstring &menuName)
It needs to be called once.
virtual Menu & addPopupMenu(const std::wstring &menuName)
Don't call move operator with return value.
ChildWindow(const std::wstring &className, const std::wstring &windowName, const utility::ComponentSettings &settings, BaseComposite *parent, const std::string &windowFunctionName="")
size_t getHash() const override
Used as key in creators.
std::unique_ptr< Menu > & createMainMenu(const std::wstring &menuName) override
Not implemented.
void removePopupMenus(const std::wstring &menuName) override
Not implemented.
Menu & addPopupMenu(const std::wstring &menuName) override
Not implemented.
Menu class.
Definition Menu.h:9
void throwNotImplementedException(string_view methodName, string_view className)
Definition Utility.cpp:186