NDEVR
API Documentation
ExportChooserDialog

Allows the user to choose a specific Export format for use with IOFactory exporting. More...

Collaboration diagram for ExportChooserDialog:
[legend]

Public Member Functions

 ExportChooserDialog (QWidget *parent=nullptr)
 Constructs an ExportChooserDialog.
void formatChosenSignal (FileFormat format)
 Emitted when a file format has been chosen by the user.
void onFinishedSignal ()
 Emitted when the dialog interaction is finished.
FileFormat selectedFormat () const
 Returns the currently selected file format.

Protected Member Functions

bool event (QEvent *event) override
 Handles events for the dialog.
void init ()
 Initializes the dialog UI elements.
QSize minimumSizeHint () const override
 Returns the minimum size hint for layout calculations.
QSize sizeHint () const override
 Returns the preferred size hint for layout calculations.
void updateExportRibbon ()
 Updates the export ribbon to reflect available export formats.

Protected Attributes

Buttonm_accept
 The accept/confirm button.
Dictionary< Button *, FileFormatm_button_formats
 Maps buttons to their corresponding file formats.
Buttonm_cancel
 The cancel button.
RibbonSubGroupm_export_settings_ribbon_group = nullptr
 The ribbon group for export settings.
QCustomScrollAream_scroll_area
 The scroll area containing format options.

Detailed Description

Allows the user to choose a specific Export format for use with IOFactory exporting.


Definition at line 14 of file ExportChooserDialog.h.

Constructor & Destructor Documentation

◆ ExportChooserDialog()

ExportChooserDialog::ExportChooserDialog ( QWidget * parent = nullptr)

Constructs an ExportChooserDialog.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ event()

bool ExportChooserDialog::event ( QEvent * event)
overrideprotected

Handles events for the dialog.

Parameters
[in]eventThe event to process.
Returns
True if the event was handled.

References event().

Referenced by event().

◆ formatChosenSignal()

void ExportChooserDialog::formatChosenSignal ( FileFormat format)

Emitted when a file format has been chosen by the user.

Parameters
[in]formatThe chosen FileFormat.

◆ minimumSizeHint()

QSize ExportChooserDialog::minimumSizeHint ( ) const
overrideprotected

Returns the minimum size hint for layout calculations.

Returns
The minimum size hint.

◆ selectedFormat()

FileFormat ExportChooserDialog::selectedFormat ( ) const

Returns the currently selected file format.

Returns
The selected FileFormat.

◆ sizeHint()

QSize ExportChooserDialog::sizeHint ( ) const
overrideprotected

Returns the preferred size hint for layout calculations.

Returns
The size hint.

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