dialogs. Only the policy is implemented here. Separate ButtonController
classes are needed for each GUI implementation.
- Policy | ReadOnly | Apply Button | Repeated Apply
+ Policy | ReadOnly | Apply Button | Repeated Apply
========================================================================
OkCancel | N | N | -
OkCancelReadOnly | Y | N | -
public:
// The various poicies
- enum Policy {
+ enum Policy {
/** Ok and Cancel buttons for dialogs with read-only operation.
Note: This scheme supports the relabelling of Cancel to Close and
vice versa.
to minimise problems to users by supplying an anything-goes policy via a
preprocessor directive.
*/
- IgnorantPolicy,
+ IgnorantPolicy
};
/// Constructor
/// noncopyable
ButtonPolicy(ButtonPolicy const &);
void operator=(ButtonPolicy const &);
-
+
/// pimpl
class Private;
Private * d;