Harmony
Scripting Interface Documentation
Input Class Reference

The Input JavaScript global object. A simplified Qt input dialogs. More...

Public Slots

QVariant getText (String &label=String::null, String &text=String::null, String &title=String::null, QWidget *parent=0)
 Function to get a string from the user. More...
 
QVariant getNumber (String &label=String::null, double value=0, int decimals=0, double minValue=-2147483647, double maxValue=2147483647, String &title=String::null, QWidget *parent=0)
 Function to get a number from the user. More...
 
QVariant getItem (String &label, StringList &itemList, String &currentItem=String::null, bool editable=false, String &title=String::null, QWidget *parent=0)
 Function to get an item from the user. More...
 
QVariant getItem (StringList &itemList, String &currentItem=String::null, bool editable=false, QWidget *parent=0)
 Function to get an item from the user. More...
 

Detailed Description

The Input JavaScript global object. A simplified Qt input dialogs.

Member Function Documentation

◆ getItem [1/2]

QVariant Input::getItem ( String &  label,
StringList &  itemList,
String &  currentItem = String::null,
bool  editable = false,
String &  title = String::null,
QWidget *  parent = 0 
)
slot

Function to get an item from the user.

◆ getItem [2/2]

QVariant Input::getItem ( StringList &  itemList,
String &  currentItem = String::null,
bool  editable = false,
QWidget *  parent = 0 
)
inlineslot

Function to get an item from the user.

◆ getNumber

QVariant Input::getNumber ( String &  label = String::null,
double  value = 0,
int  decimals = 0,
double  minValue = -2147483647,
double  maxValue = 2147483647,
String &  title = String::null,
QWidget *  parent = 0 
)
slot

Function to get a number from the user.

◆ getText

QVariant Input::getText ( String &  label = String::null,
String &  text = String::null,
String &  title = String::null,
QWidget *  parent = 0 
)
slot

Function to get a string from the user.