Logo    
KDWinUtils
Helper library for MFC to Qt migration
Loading...
Searching...
No Matches
cpropertypageproxy.h
Go to the documentation of this file.
1/****************************************************************************
2**
3** This file is part of KDWinutils, KDAB's MFC to Qt migration tool.
4**
5** Copyright (C) 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6** All rights reserved.
7**
8** This file is intended solely for use by the migration tools and services
9** provided by Klarälvdalens Datakonsult AB.
10**
11** Any other use or distribution of this software that is not otherwise agreed
12** upon in writing and signed by an authorized representative of Klarälvdalens
13** Datakonsult AB, KDAB (USA) LLC, KDAB (Deutschland) GmbH & Co. K.G.,
14** KDAB (France) SAS, KDAB (UK), Ltd., or any future subsidiary of Klarälvdalens
15** Datakonsult AB is hereby prohibited.
16**
17** Contact info@kdab.com if any conditions stated above are unclear to you.
18**
19****************************************************************************/
20
21#ifdef KDWINUTILS_WITHMFC
22
24#include "kpropertypage.h"
25
26#include <afxdlgs.h>
27
44class KDWINUTILS_EXPORT CPropertyPageProxy : public CPropertyPage
45{
46public:
50
52
53protected:
54 BOOL OnApply() override;
55 void OnCancel() override;
56 BOOL OnKillActive() override;
57 void OnOK() override;
58 BOOL OnQueryCancel() override;
59 void OnReset() override;
60 BOOL OnSetActive() override;
61 LRESULT OnWizardBack() override;
62 BOOL OnWizardFinish() override;
63
64 // Generated message map functions
65 //{{AFX_MSG(CPropertyPageProxy)
66 BOOL OnInitDialog() override;
67 afx_msg void OnSize(UINT nType, int cx, int cy);
68 //}}AFX_MSG
70
71private:
72 QWinWidget *m_winWidget = nullptr;
73 KDWINUTILS_PREPEND_NAMESPACE(KPropertyPage) *m_propertyPage = nullptr;
74
75private:
76 // Dynamic creation
77 CPropertyPageProxy() { m_winWidget = nullptr; }
78};
79
80#endif // KDWINUTILS_WITHMFC
The CPropertyPageProxy class is a temporary class used during the migration of a CPropertySheet.
Definition cpropertypageproxy.h:45
afx_msg void OnSize(UINT nType, int cx, int cy)
void OnOK() override
BOOL OnQueryCancel() override
BOOL OnWizardFinish() override
LRESULT OnWizardBack() override
BOOL OnApply() override
void OnReset() override
void OnCancel() override
BOOL OnSetActive() override
BOOL OnKillActive() override
CPropertyPageProxy(::KPropertyPage *page)
::KPropertyPage * GetWidget() const
DECLARE_DYNCREATE(CPropertyPageProxy)
BOOL OnInitDialog() override
The KPropertyPage class is used as a page inside a KPropertySheet.
Definition kpropertypage.h:36
The QWinWidget class is a Qt widget that can be child of a native Win32 widget.
Definition qwinwidget.h:15
#define KDWINUTILS_EXPORT
Definition kdwinutils_export.h:31
#define KDWINUTILS_PREPEND_NAMESPACE(name)
Definition kdwinutils_global.h:30