Storyboard
Public Slots | Properties | List of all members
Dialog Class Reference

Simplified Dialog widget. This class and the associated widget classes are used to build simple dialogs. More...

#include <qswidget.h>

Inheritance diagram for Dialog:
Inheritance graph
[legend]
Collaboration diagram for Dialog:
Collaboration graph
[legend]

Public Slots

void newTab (String &label)
 add a new tab to the dialog
 
void newColumn ()
 add a new column to the dialog
 
void addSpace (int space)
 add spacers to the dialog layout
 
void add (SCRIPT_QSWidget *widget)
 add widgets to the dialog
 
bool exec ()
 run the dialog in modal mode. Pressing ok accepts the dialog input. Pressing cancel cancels the dialog.
 

Properties

String title
 it is the title of the dialog
 
int width
 it is the width of the dialog
 
String okButtonText
 it is the name of the ok button
 
String cancelButtonText
 it is the name of the cancel button
 

Detailed Description

Simplified Dialog widget. This class and the associated widget classes are used to build simple dialogs.

You can use it in Script Editor only.

function sampleDialog()
{
var d = new Dialog();
d.title = "Sample Dialog";
var inputL = new LineEdit;
inputL.label = "Sample Line Edit";
d.add( inputL );
if ( d.exec() )
{
var sampleText = inputL.text;
System.println(" the input text is " + sampleText );
}
}

Member Function Documentation

void Dialog::add ( SCRIPT_QSWidget *  widget)
slot

add widgets to the dialog

void Dialog::addSpace ( int  space)
slot

add spacers to the dialog layout

bool Dialog::exec ( )
slot

run the dialog in modal mode. Pressing ok accepts the dialog input. Pressing cancel cancels the dialog.

void Dialog::newColumn ( )
slot

add a new column to the dialog

void Dialog::newTab ( String &  label)
slot

add a new tab to the dialog

Property Documentation

String Dialog::cancelButtonText
readwrite

it is the name of the cancel button

String Dialog::okButtonText
readwrite

it is the name of the ok button

String Dialog::title
readwrite

it is the title of the dialog

int Dialog::width
readwrite

it is the width of the dialog


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