NDEVR
API Documentation
CustomerInfoSheet

Editor widget for viewing and editing customer contact information. More...

Inheritance diagram for CustomerInfoSheet:
[legend]
Collaboration diagram for CustomerInfoSheet:
[legend]

Public Member Functions

 CustomerInfoSheet (bool is_business, const DynamicPointer< QTDesignObject > &customer, QWidget *parent=nullptr)
 Constructs the customer info sheet editor.
virtual bool fullscreenTouch () const override
 Returns whether this editor should display fullscreen on touch devices.
Buffer< QWidget * > printableWidgets () override
 Returns the list of widgets suitable for printing.
Public Member Functions inherited from Editor
 Editor (const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
 Constructs an Editor targeting the given design object.
 Editor (QWidget *parent=nullptr)
 Constructs an Editor with no design object target.
virtual Buffer< QWidget * > bottomOptions ()
 Returns widgets to be placed at the bottom of the editor layout.
virtual StringView customDialogIcon () const
 Returns a custom icon name for the editor dialog, or an empty string if none.
virtual TranslatedString customDialogTitle () const
 Returns a custom title for the editor dialog, or an empty string if none.
virtual bool disableExport () const
 Returns whether exporting should be disabled for this editor.
Model getModel () const
 Returns the target design object as a Model.
DesignObject getObject () const
 Returns the target design object.
virtual bool isBusy () const
 Returns whether the editor is currently busy performing an operation.
void isBusyStatusChanged ()
 Emitted when the busy status of the editor changes.
virtual bool isHorizontal () const
 Returns whether the editor layout is horizontal.
virtual void moveTargetWithMouse ()
 Initiates interactive mouse-based movement of the target object in the viewport.
void objectUpdatedSignal ()
 Emitted when the target object has been updated.
virtual InterfaceOrientationControllerorientationController () const
 Returns the orientation controller associated with this editor.
virtual Buffer< QWidget * > printableWidgetOptions ()
 Returns option widgets to configure printing for this editor.
virtual void requestScrollEnabled (bool enabled)
 Requests enabling or disabling scrolling within the editor.
virtual void setHorizontal (bool horizontal)
 Sets whether the editor layout is horizontal.
virtual void setReadOnly (bool read_only)
 Sets whether the editor is in read-only mode.
virtual void setTarget (const DynamicPointer< QTDesignObject > &object)
 Sets the design object target for this editor.
virtual void setup (DesignObjectDialog *, const ShowPropertiesSettings &)
 Sets up the editor with a parent dialog and property display settings.
virtual EditorShowMode showMode () const
 Returns the preferred display mode for this editor.
const DynamicPointer< QTDesignObject > & target () const
 Returns the current design object target.

Protected Member Functions

Customer customer () const
 Returns the Customer model for this editor.
void descriptionChangedSlot ()
 Handles changes to the description field.
void onAddressEditedSlot ()
 Handles changes to the address field.
QSize sizeHint () const override
 Returns the recommended size for the editor.
void updateValues () final override
 Updates the displayed values from the underlying design object.
Protected Member Functions inherited from Editor
void onDesignObjectDeletedSlot ()
 Slot called when the target design object is deleted.
void onDesignObjectUpdateSlot ()
 Slot called when the target design object is updated.

Protected Attributes

Ui::CustomerInfoSheetUI * ui
 The Qt Designer-generated UI.
Protected Attributes inherited from Editor
DynamicPointer< QTDesignObjectm_design_object
 The design object being edited.
bool m_is_read_only = false
 Whether the editor is in read-only mode.
InterfaceOrientationControllerm_orientation_controller
 The orientation controller for this editor.

Detailed Description

Editor widget for viewing and editing customer contact information.

Displays name, address, phone, email, and company fields for a customer, supporting both business and individual customer types.

Definition at line 18 of file CustomerInfoSheet.h.

Constructor & Destructor Documentation

◆ CustomerInfoSheet()

CustomerInfoSheet::CustomerInfoSheet ( bool is_business,
const DynamicPointer< QTDesignObject > & customer,
QWidget * parent = nullptr )

Constructs the customer info sheet editor.

Parameters
[in]is_businessWhether the customer is a business entity.
[in]customerThe customer design object to edit.
[in]parentOptional parent widget.

References customer().

Member Function Documentation

◆ customer()

Customer CustomerInfoSheet::customer ( ) const
protected

Returns the Customer model for this editor.

Returns
The customer model.

References customer().

Referenced by CustomerInfoSheet(), and customer().

◆ fullscreenTouch()

virtual bool CustomerInfoSheet::fullscreenTouch ( ) const
inlineoverridevirtual

Returns whether this editor should display fullscreen on touch devices.

Returns
Always returns true.

Definition at line 31 of file CustomerInfoSheet.h.

◆ printableWidgets()

Buffer< QWidget * > CustomerInfoSheet::printableWidgets ( )
overridevirtual

Returns the list of widgets suitable for printing.

Returns
A buffer of printable widget pointers.

Reimplemented from Editor.

◆ sizeHint()

QSize CustomerInfoSheet::sizeHint ( ) const
overrideprotected

Returns the recommended size for the editor.

Returns
The size hint.

The documentation for this class was generated from the following file: