Simplified Dialog widget. This class and the associated widget classes are used to build simple dialogs.
More...
#include <qswidget.h>
|
void | newTab (String &label) |
| add a new tab to the dialog More...
|
|
void | newColumn () |
| add a new column to the dialog More...
|
|
void | addSpace (int space) |
| add spacers to the dialog layout More...
|
|
void | add (SCRIPT_QSWidget *widget) |
| add widgets to the dialog More...
|
|
bool | exec () |
| run the dialog in modal mode. Pressing ok accepts the dialog input. Pressing cancel cancels the dialog. More...
|
|
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()
{
d.title = "Sample Dialog";
inputL.label = "Sample Line Edit";
d.add( inputL );
if ( d.exec() )
{
var sampleText = inputL.
text;
}
}
void Dialog::add |
( |
SCRIPT_QSWidget * |
widget | ) |
|
|
slot |
add widgets to the dialog
void Dialog::addSpace |
( |
int |
space | ) |
|
|
slot |
add spacers to the dialog layout
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
String Dialog::cancelButtonText |
|
readwriteprivate |
it is the name of the cancel button
it is the (legacy, but we still support it ) title of the dialog
String Dialog::okButtonText |
|
readwriteprivate |
it is the name of the ok button
it is the title of the dialog
it is the width of the dialog
The documentation for this class was generated from the following file: