Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Implement the missing methods from the OrderForm class to construct an input dialog form for Order objects. A starting point is provided in src/handouts/forms/manual. The dialog should look something like Figure 9.22.
The code goes in orderform.cpp.
The user should click OK to send data into the Order, or Cancel to dismiss the dialog and do nothing to the Order.
The totalPrice field should be read-only and calculated based on the quantity and unitPrice.
Next, use Designer to create the same input dialog, and integrate it with your code using either delegation or multiple inheritance, as described in Section 9.7.