RNFileDialog

Hierarchy

  • QFileDialog

    ↳ RNFileDialog

Implements

  • RNWidget

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

+ new RNFileDialog(): RNFileDialog

Inherited from RNFileDialog.constructor

Overrides void

Returns: RNFileDialog

+ new RNFileDialog(parent: NodeWidget‹any›, caption?: undefined | string, directory?: undefined | string, filter?: undefined | string): RNFileDialog

Inherited from RNFileDialog.constructor

Overrides void

Parameters:

NameType
parentNodeWidget‹any›
caption?undefined | string
directory?undefined | string
filter?undefined | string

Returns: RNFileDialog

Properties

Optional _layout

• _layout? : NodeLayout‹QFileDialogSignals›

Inherited from void


_rawInlineStyle

• _rawInlineStyle: string

Inherited from void


actions

• actions: Set‹QAction›

Inherited from void


native

• native: NativeElement

Inherited from RNFileDialog.native

Overrides void


nodeChildren

• nodeChildren: Set‹Component›

Inherited from RNAction.nodeChildren


Optional nodeParent

• nodeParent? : Component

Inherited from RNAction.nodeParent


type

• type: string

Inherited from void


Static tagName

â–ª tagName: string = "file-dialog"

Accessors

layout

• get layout(): NodeLayout‹QFileDialogSignals› | undefined

Inherited from void

Returns: NodeLayout‹QFileDialogSignals› | undefined

• set layout(l: NodeLayout‹QFileDialogSignals› | undefined): any

Inherited from void

Parameters:

NameType
lNodeLayout‹QFileDialogSignals› | undefined

Returns: any

Methods

acceptDrops

â–¸ acceptDrops(): boolean

Inherited from void

Returns: boolean


acceptMode

â–¸ acceptMode(): AcceptMode

Inherited from RNFileDialog.acceptMode

Returns: AcceptMode


activateWindow

â–¸ activateWindow(): void

Inherited from void

Returns: void


addAction

â–¸ addAction(action: QAction | string): QAction

Inherited from void

Parameters:

NameType
actionQAction | string

Returns: QAction


addEventListener

▸ addEventListener‹SignalType›(signalType: SignalType, callback: QFileDialogSignals[SignalType]): void

Inherited from RNAction.addEventListener

Type parameters:

â–ª SignalType: keyof QFileDialogSignals

Parameters:

NameTypeDescription
signalTypeSignalTypeSignalType is a signal from the widgets signals interface.
callbackQFileDialogSignals[SignalType]Corresponding callback for the signal as mentioned in the widget's signal interface

Returns: void

void

For example in the case of QPushButton:

const button = new QPushButton();
button.addEventListener('clicked',(checked)=>console.log("clicked"));
// here clicked is a value from QPushButtonSignals interface

â–¸ addEventListener(eventType: WidgetEventTypes, callback: function): void

Inherited from RNAction.addEventListener

Parameters:

â–ª eventType: WidgetEventTypes

â–ª callback: function

For example in the case of QPushButton:

const button = new QPushButton();
button.addEventListener(WidgetEventTypes.HoverEnter,()=>console.log("hovered"));

▸ (event?: NativeRawPointer‹"QEvent"›): void

Parameters:

NameType
event?NativeRawPointer‹"QEvent"›

Returns: void


adjustSize

â–¸ adjustSize(): void

Inherited from void

Returns: void


appendChild

▸ appendChild(child: NodeWidget‹any›): void

Parameters:

NameType
childNodeWidget‹any›

Returns: void


appendInitialChild

▸ appendInitialChild(child: NodeWidget‹any›): void

Parameters:

NameType
childNodeWidget‹any›

Returns: void


clearFocus

â–¸ clearFocus(): void

Inherited from void

Returns: void


close

â–¸ close(): boolean

Inherited from void

Returns: boolean


defaultSuffix

â–¸ defaultSuffix(): string

Inherited from RNFileDialog.defaultSuffix

Returns: string


eventProcessed

â–¸ eventProcessed(): boolean

Inherited from RNAction.eventProcessed

Get the state of the event processed flag

See setEventProcessed().

Returns: boolean

boolean True if the current event is flagged as processed.


exec

â–¸ exec(): DialogCode

Inherited from RNDialog.exec

Returns: DialogCode


fileMode

â–¸ fileMode(): FileMode

Inherited from RNFileDialog.fileMode

Returns: FileMode


font

â–¸ font(): QFont

Inherited from void

Returns: QFont


geometry

â–¸ geometry(): QRect

Inherited from void

Returns: QRect


getFlexNode

â–¸ getFlexNode(): FlexNode

Inherited from void

Returns: FlexNode


hasMouseTracking

â–¸ hasMouseTracking(): boolean

Inherited from void

Returns: boolean


hide

â–¸ hide(): void

Inherited from void

Returns: void


inherits

â–¸ inherits(className: string): boolean

Inherited from RNAction.inherits

Parameters:

NameType
classNamestring

Returns: boolean


insertBefore

▸ insertBefore(child: NodeWidget‹any›, beforeChild: NodeWidget‹any›): void

Parameters:

NameType
childNodeWidget‹any›
beforeChildNodeWidget‹any›

Returns: void


isActiveWindow

â–¸ isActiveWindow(): boolean

Inherited from void

Returns: boolean


isEnabled

â–¸ isEnabled(): boolean

Inherited from void

Returns: boolean


isSizeGripEnabled

â–¸ isSizeGripEnabled(): boolean

Inherited from RNDialog.isSizeGripEnabled

Returns: boolean


isVisible

â–¸ isVisible(): boolean

Inherited from void

Returns: boolean


labelText

â–¸ labelText(label: DialogLabel): string

Inherited from RNFileDialog.labelText

Parameters:

NameType
labelDialogLabel

Returns: string


lower

â–¸ lower(): void

Inherited from void

Returns: void


mapFromGlobal

â–¸ mapFromGlobal(pos: QPoint): QPoint

Inherited from void

Parameters:

NameType
posQPoint

Returns: QPoint


mapFromParent

â–¸ mapFromParent(pos: QPoint): QPoint

Inherited from void

Parameters:

NameType
posQPoint

Returns: QPoint


mapToGlobal

â–¸ mapToGlobal(pos: QPoint): QPoint

Inherited from void

Parameters:

NameType
posQPoint

Returns: QPoint


mapToParent

â–¸ mapToParent(pos: QPoint): QPoint

Inherited from void

Parameters:

NameType
posQPoint

Returns: QPoint


maximumSize

â–¸ maximumSize(): QSize

Inherited from void

Returns: QSize


minimumSize

â–¸ minimumSize(): QSize

Inherited from void

Returns: QSize


move

â–¸ move(x: number, y: number): void

Inherited from void

Parameters:

NameType
xnumber
ynumber

Returns: void


objectName

â–¸ objectName(): string

Inherited from RNAction.objectName

Returns: string


open

â–¸ open(): void

Inherited from RNDialog.open

Returns: void


options

â–¸ options(): Option

Inherited from RNFileDialog.options

Returns: Option


pos

â–¸ pos(): object

Inherited from void

Returns: object

  • x: number

  • y: number


property

â–¸ property(name: string): QVariant

Inherited from RNAction.property

Parameters:

NameType
namestring

Returns: QVariant


raise

â–¸ raise(): void

Inherited from void

Returns: void


reject

â–¸ reject(): void

Inherited from RNDialog.reject

Returns: void


removeAction

â–¸ removeAction(action: QAction): void

Inherited from void

Parameters:

NameType
actionQAction

Returns: void


removeChild

▸ removeChild(child: NodeWidget‹any›): void

Parameters:

NameType
childNodeWidget‹any›

Returns: void


removeEventListener

▸ removeEventListener‹SignalType›(signalType: SignalType, callback: QFileDialogSignals[SignalType]): void

Inherited from RNAction.removeEventListener

Type parameters:

â–ª SignalType: keyof QFileDialogSignals

Parameters:

NameType
signalTypeSignalType
callbackQFileDialogSignals[SignalType]

Returns: void

â–¸ removeEventListener(eventType: WidgetEventTypes, callback: function): void

Inherited from RNAction.removeEventListener

Parameters:

â–ª eventType: WidgetEventTypes

â–ª callback: function

▸ (event?: NativeRawPointer‹"QEvent"›): void

Parameters:

NameType
event?NativeRawPointer‹"QEvent"›

Returns: void


repaint

â–¸ repaint(): void

Inherited from void

Returns: void


repolish

â–¸ repolish(): void

Inherited from void

Returns: void


resize

â–¸ resize(width: number, height: number): void

Inherited from void

Parameters:

NameType
widthnumber
heightnumber

Returns: void


result

â–¸ result(): number

Inherited from RNDialog.result

Returns: number


selectedFiles

â–¸ selectedFiles(): string[]

Inherited from RNFileDialog.selectedFiles

Returns: string[]


setAcceptDrops

â–¸ setAcceptDrops(on: boolean): void

Inherited from void

Parameters:

NameType
onboolean

Returns: void


setAcceptMode

â–¸ setAcceptMode(acceptMode: AcceptMode): void

Inherited from RNFileDialog.setAcceptMode

Parameters:

NameType
acceptModeAcceptMode

Returns: void


setAttribute

â–¸ setAttribute(attribute: WidgetAttribute, switchOn: boolean): void

Inherited from void

Parameters:

NameType
attributeWidgetAttribute
switchOnboolean

Returns: void


setContextMenuPolicy

â–¸ setContextMenuPolicy(contextMenuPolicy: ContextMenuPolicy): void

Inherited from void

Parameters:

NameType
contextMenuPolicyContextMenuPolicy

Returns: void


setCursor

â–¸ setCursor(cursor: CursorShape | QCursor): void

Inherited from void

Parameters:

NameType
cursorCursorShape | QCursor

Returns: void


setDefaultSuffix

â–¸ setDefaultSuffix(defaultSuffix: string): void

Inherited from RNFileDialog.setDefaultSuffix

Parameters:

NameType
defaultSuffixstring

Returns: void


setEnabled

â–¸ setEnabled(enabled: boolean): void

Inherited from void

Parameters:

NameType
enabledboolean

Returns: void


setEventProcessed

â–¸ setEventProcessed(isProcessed: boolean): void

Inherited from RNAction.setEventProcessed

Mark the current event as having been processed

This method is used to indicate that the currently dispatched event has been processed and no further processing by superclasses is required. It only makes sense to call this method from an event handler.

When set, this flag will cause NodeGui's QObject::event() method to return true and not call the superclass event(), effectively preventing any further processing on this event.

Parameters:

NameTypeDescription
isProcessedbooleantrue if the event has been processed.

Returns: void


setFileMode

â–¸ setFileMode(fileMode: FileMode): void

Inherited from RNFileDialog.setFileMode

Parameters:

NameType
fileModeFileMode

Returns: void


setFixedSize

â–¸ setFixedSize(width: number, height: number): void

Inherited from void

Parameters:

NameType
widthnumber
heightnumber

Returns: void


setFlexNodeSizeControlled

â–¸ setFlexNodeSizeControlled(isSizeControlled: boolean): void

Inherited from void

sets whether the widget's size is controlled by someone else (for example a window's size is controlled by its frame when dragged).

Parameters:

NameTypeDescription
isSizeControlledboolean

Returns: void


setFocus

â–¸ setFocus(reason?: FocusReason): void

Inherited from void

Parameters:

NameType
reason?FocusReason

Returns: void


setFocusPolicy

â–¸ setFocusPolicy(policy: FocusPolicy): void

Inherited from void

Parameters:

NameType
policyFocusPolicy

Returns: void


setFont

â–¸ setFont(font: QFont): void

Inherited from void

Parameters:

NameType
fontQFont

Returns: void


setGeometry

â–¸ setGeometry(x: number, y: number, w: number, h: number): void

Inherited from void

Parameters:

NameType
xnumber
ynumber
wnumber
hnumber

Returns: void


setGraphicsEffect

▸ setGraphicsEffect(effect: QGraphicsEffect‹any›): void

Inherited from void

Parameters:

NameType
effectQGraphicsEffect‹any›

Returns: void


setInlineStyle

â–¸ setInlineStyle(style: string): void

Inherited from void

Parameters:

NameType
stylestring

Returns: void


setLabelText

â–¸ setLabelText(label: DialogLabel, text: string): void

Inherited from RNFileDialog.setLabelText

Parameters:

NameType
labelDialogLabel
textstring

Returns: void


setLayout

▸ setLayout(parentLayout: NodeLayout‹QFileDialogSignals›): void

Inherited from void

Parameters:

NameType
parentLayoutNodeLayout‹QFileDialogSignals›

Returns: void


setMaximumSize

â–¸ setMaximumSize(maxw: number, maxh: number): void

Inherited from void

Parameters:

NameType
maxwnumber
maxhnumber

Returns: void


setMinimumSize

â–¸ setMinimumSize(minw: number, minh: number): void

Inherited from void

Parameters:

NameType
minwnumber
minhnumber

Returns: void


setModal

â–¸ setModal(modal: boolean): void

Inherited from RNDialog.setModal

Parameters:

NameType
modalboolean

Returns: void


setMouseTracking

â–¸ setMouseTracking(isMouseTracked: boolean): void

Inherited from void

Parameters:

NameType
isMouseTrackedboolean

Returns: void


setNameFilter

â–¸ setNameFilter(filter: string): void

Inherited from RNFileDialog.setNameFilter

Parameters:

NameType
filterstring

Returns: void


setNodeParent

â–¸ setNodeParent(parent?: Component): void

Inherited from RNAction.setNodeParent

Parameters:

NameType
parent?Component

Returns: void


setObjectName

â–¸ setObjectName(objectName: string): void

Inherited from void

Overrides RNAction.setObjectName

Parameters:

NameType
objectNamestring

Returns: void


setOption

â–¸ setOption(option: Option, on?: undefined | false | true): void

Inherited from RNFileDialog.setOption

Parameters:

NameType
optionOption
on?undefined | false | true

Returns: void


setOptions

â–¸ setOptions(options: Option): void

Inherited from RNFileDialog.setOptions

Parameters:

NameType
optionsOption

Returns: void


setProperty

â–¸ setProperty(name: string, value: QVariantType): boolean

Inherited from RNAction.setProperty

Parameters:

NameType
namestring
valueQVariantType

Returns: boolean


setProps

â–¸ setProps(newProps: FileDialogProps, oldProps: FileDialogProps): void

Parameters:

NameType
newPropsFileDialogProps
oldPropsFileDialogProps

Returns: void


setResult

â–¸ setResult(i: number): void

Inherited from RNDialog.setResult

Parameters:

NameType
inumber

Returns: void


setSizeGripEnabled

â–¸ setSizeGripEnabled(enabled: boolean): void

Inherited from RNDialog.setSizeGripEnabled

Parameters:

NameType
enabledboolean

Returns: void


setStyleSheet

â–¸ setStyleSheet(styleSheet: string): void

Inherited from void

Parameters:

NameType
styleSheetstring

Returns: void


setSupportedSchemes

â–¸ setSupportedSchemes(schemes: string[]): void

Inherited from RNFileDialog.setSupportedSchemes

Parameters:

NameType
schemesstring[]

Returns: void


setWindowFlag

â–¸ setWindowFlag(windowType: WindowType, switchOn: boolean): void

Inherited from void

Parameters:

NameType
windowTypeWindowType
switchOnboolean

Returns: void


setWindowIcon

â–¸ setWindowIcon(icon: QIcon): void

Inherited from void

Parameters:

NameType
iconQIcon

Returns: void


setWindowOpacity

â–¸ setWindowOpacity(opacity: number): void

Inherited from void

Parameters:

NameType
opacitynumber

Returns: void


setWindowState

â–¸ setWindowState(state: WindowState): void

Inherited from void

Parameters:

NameType
stateWindowState

Returns: void


setWindowTitle

â–¸ setWindowTitle(title: string): void

Inherited from void

Parameters:

NameType
titlestring

Returns: void


show

â–¸ show(): void

Inherited from void

Returns: void


showFullScreen

â–¸ showFullScreen(): void

Inherited from void

Returns: void


showMaximized

â–¸ showMaximized(): void

Inherited from void

Returns: void


showMinimized

â–¸ showMinimized(): void

Inherited from void

Returns: void


showNormal

â–¸ showNormal(): void

Inherited from void

Returns: void


size

â–¸ size(): QSize

Inherited from void

Returns: QSize


styleSheet

â–¸ styleSheet(): string

Inherited from void

Returns: string


supportedSchemes

â–¸ supportedSchemes(): string[]

Inherited from RNFileDialog.supportedSchemes

Returns: string[]


testAttribute

â–¸ testAttribute(attribute: WidgetAttribute): boolean

Inherited from void

Parameters:

NameType
attributeWidgetAttribute

Returns: boolean


update

â–¸ update(): void

Inherited from void

Returns: void


updateGeometry

â–¸ updateGeometry(): void

Inherited from void

Returns: void


viewMode

â–¸ viewMode(): ViewMode

Inherited from RNFileDialog.viewMode

Returns: ViewMode


windowOpacity

â–¸ windowOpacity(): number

Inherited from void

Returns: number


windowState

â–¸ windowState(): number

Inherited from void

Returns: number


windowTitle

â–¸ windowTitle(): string

Inherited from void

Returns: string