Audacity 3.2.0
Public Types | Public Attributes | List of all members
ExportOption Struct Reference

A type that provides a description of an exporting option. Isn't allowed to change except non-type related flags. More...

#include <ExportTypes.h>

Collaboration diagram for ExportOption:
[legend]

Public Types

enum  Flags : int {
  TypeMask = 0xff , TypeRange = 1 , TypeEnum = 2 , ReadOnly = 0x100 ,
  Hidden = 0x200 , Default = 0
}
 

Public Attributes

ExportOptionID id
 Internal option id. More...
 
TranslatableString title
 Name of an option in a human-readable form. More...
 
ExportValue defaultValue
 Default valid value for the parameter. More...
 
int flags { Default }
 A set of flag that desc. More...
 
std::vector< ExportValuevalues {}
 Interpretation depends on type. More...
 
TranslatableStrings names {}
 Interpretation depends on type. More...
 

Detailed Description

A type that provides a description of an exporting option. Isn't allowed to change except non-type related flags.

Definition at line 42 of file ExportTypes.h.

Member Enumeration Documentation

◆ Flags

enum ExportOption::Flags : int
Enumerator
TypeMask 

Mask for bits that hold option type.

TypeRange 

Range option. values holds [min, max].

TypeEnum 

List/enum option. values holds items, and names text to be displayed.

ReadOnly 

Parameter is read-only, client should not attempt to change it's value.

Hidden 

Option is not used and may be hidden from the user.

Default 

No special flags.

Definition at line 44 of file ExportTypes.h.

45 {
46 TypeMask = 0xff,
47 TypeRange = 1,
48 TypeEnum = 2,
49
50 ReadOnly = 0x100,
51 Hidden = 0x200,
52
53 Default = 0
54 };
@ TypeMask
Mask for bits that hold option type.
Definition: ExportTypes.h:46
@ TypeEnum
List/enum option. values holds items, and names text to be displayed.
Definition: ExportTypes.h:48
@ ReadOnly
Parameter is read-only, client should not attempt to change it's value.
Definition: ExportTypes.h:50
@ TypeRange
Range option. values holds [min, max].
Definition: ExportTypes.h:47
@ Default
No special flags.
Definition: ExportTypes.h:53
@ Hidden
Option is not used and may be hidden from the user.
Definition: ExportTypes.h:51

Member Data Documentation

◆ defaultValue

ExportValue ExportOption::defaultValue

◆ flags

int ExportOption::flags { Default }

◆ id

ExportOptionID ExportOption::id

◆ names

TranslatableStrings ExportOption::names {}

◆ title

TranslatableString ExportOption::title

◆ values

std::vector<ExportValue> ExportOption::values {}

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