-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFixtureDlg.cpp
43 lines (39 loc) · 1.17 KB
/
FixtureDlg.cpp
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
/******************************************************************************
** (C) Chris Oldwood
**
** MODULE: FIXTUREDLG.CPP
** COMPONENT: The Application.
** DESCRIPTION: CFixtureDlg class definition.
**
*******************************************************************************
*/
#include "Common.hpp"
#include "FixtureDlg.hpp"
#include "FCMDB.hpp"
/******************************************************************************
** Method: Constructor.
**
** Description: .
**
** Parameters: None.
**
** Returns: Nothing.
**
*******************************************************************************
*/
CFixtureDlg::CFixtureDlg(CFCMDB& oDB, CRow& oRow, bool bEditing)
: CPropertySheet()
, m_oRow(oRow)
, m_bEditing(bEditing)
, m_oDetailsPage(oDB, oRow)
, m_oStatsPage(oDB, oDB.m_oFixStatTypes, oDB.m_oFixStats, oRow[CFixtures::ID])
, m_oNotesPage(oRow, CFixtures::NOTES, CFixtures::NOTES_LEN)
{
// Set the title.
m_strTitle = (m_bEditing == true) ? TXT("Edit Fixture Details") : TXT("Add A Fixture");
DEFINE_PAGE_TABLE
PAGE(&m_oDetailsPage, TXT("Details") )
PAGE(&m_oStatsPage, TXT("Statistics"))
PAGE(&m_oNotesPage, TXT("Notes") )
END_PAGE_TABLE
}