-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathConfigureBridgeLinkDlg.h
executable file
·62 lines (48 loc) · 2.25 KB
/
ConfigureBridgeLinkDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
///////////////////////////////////////////////////////////////////////
// BridgeLink - BridgeLink Extensible Application Framework
// Copyright © 1999-2025 Washington State Department of Transportation
// Bridge and Structures Office
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the Alternate Route Open Source License as
// published by the Washington State Department of Transportation,
// Bridge and Structures Office.
//
// This program is distributed in the hope that it will be useful, but
// distribution is AS IS, WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
// the Alternate Route Open Source License for more details.
//
// You should have received a copy of the Alternate Route Open Source
// License along with this program; if not, write to the Washington
// State Department of Transportation, Bridge and Structures Office,
// P.O. Box 47340, Olympia, WA 98503, USA or e-mail
///////////////////////////////////////////////////////////////////////
#pragma once
#include "ConfigureBridgeLinkPage.h"
// CConfigureBridgeLinkDlg
class CConfigureBridgeLinkDlg : public CPropertySheet, public IBridgeLinkConfigurationParent
{
DECLARE_DYNAMIC(CConfigureBridgeLinkDlg)
public:
CConfigureBridgeLinkDlg(std::map<IDType,IBridgeLinkConfigurationCallback*>& configurationPageCallbacks, CWnd* pParentWnd = nullptr, UINT iSelectPage = 0);
virtual ~CConfigureBridgeLinkDlg();
CConfigureBridgeLinkPage m_BridgeLinkPage;
virtual INT_PTR DoModal() override;
virtual BOOL OnInitDialog() override;
// IBridgeLinkConfigurationParent
virtual LRESULT GetBackPage() override;
virtual LRESULT GetNextPage() override;
protected:
std::vector<LRESULT> m_Pages;
std::vector<LRESULT>::iterator m_CurrentPage;
DECLARE_MESSAGE_MAP()
afx_msg LRESULT OnKickIdle(WPARAM, LPARAM);
bool IsLastPage();
bool IsFirstPage();
void Init(std::map<IDType,IBridgeLinkConfigurationCallback*>& configurationPageCallbacks);
void DestroyExtensionPages();
void NotifyExtensionPages();
std::vector<std::pair<IBridgeLinkConfigurationCallback*,CPropertyPage*>> m_vExtensionPages;
};