diff options
Diffstat (limited to 'doc/html/tqinputdialog.html')
-rw-r--r-- | doc/html/tqinputdialog.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/tqinputdialog.html b/doc/html/tqinputdialog.html index 6d1223af3..8cae46bdf 100644 --- a/doc/html/tqinputdialog.html +++ b/doc/html/tqinputdialog.html @@ -40,7 +40,7 @@ body { background: #ffffff; color: black; } <li class=fn>TQString <a href="#getText"><b>getText</b></a> ( const TQString & caption, const TQString & label, TQLineEdit::EchoMode mode = TQLineEdit::Normal, const TQString & text = TQString::null, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 )</li> <li class=fn>int <a href="#getInteger"><b>getInteger</b></a> ( const TQString & caption, const TQString & label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 )</li> <li class=fn>double <a href="#getDouble"><b>getDouble</b></a> ( const TQString & caption, const TQString & label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 )</li> -<li class=fn>TQString <a href="#getItem"><b>getItem</b></a> ( const TQString & caption, const TQString & label, const TQStringList & list, int current = 0, bool editable = TRUE, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 )</li> +<li class=fn>TQString <a href="#getItem"><b>getItem</b></a> ( const TQString & caption, const TQString & label, const TQStringList & list, int current = 0, bool editable = true, bool * ok = 0, TQWidget * parent = 0, const char * name = 0 )</li> </ul> <hr><a name="details"></a><h2>Detailed Description</h2> @@ -77,8 +77,8 @@ bar of the dialog. <em>label</em> is the text which is shown to the user floating point number that the line edit will be set to. <em>minValue</em> and <em>maxValue</em> are the minimum and maximum values the user may choose, and <em>decimals</em> is the maximum number of decimal places the number may have. -<p> If <em>ok</em> is not-null <em>*</em><em>ok</em> will be set to TRUE if the user -pressed OK and to FALSE if the user pressed Cancel. The dialog's +<p> If <em>ok</em> is not-null <em>*</em><em>ok</em> will be set to true if the user +pressed OK and to false if the user pressed Cancel. The dialog's parent is <em>parent</em>; the dialog is called <em>name</em>. The dialog will be modal. <p> This function returns the floating point number which has been @@ -106,8 +106,8 @@ of the dialog. <em>label</em> is the text which is shown to the user integer which the spinbox will be set to. <em>minValue</em> and <em>maxValue</em> are the minimum and maximum values the user may choose, and <em>step</em> is the amount by which the values change as the user presses the arrow buttons to increment or decrement the value. -<p> If <em>ok</em> is not-null *<em>ok</em> will be set to TRUE if the user -pressed OK and to FALSE if the user pressed Cancel. The dialog's +<p> If <em>ok</em> is not-null *<em>ok</em> will be set to true if the user +pressed OK and to false if the user pressed Cancel. The dialog's parent is <em>parent</em>; the dialog is called <em>name</em>. The dialog will be modal. <p> This function returns the integer which has been entered by the user. @@ -125,28 +125,28 @@ be modal. </pre> -<h3 class=fn><a href="tqstring.html">TQString</a> <a name="getItem"></a>TQInputDialog::getItem ( const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & label, const <a href="tqstringlist.html">TQStringList</a> & list, int current = 0, bool editable = TRUE, bool * ok = 0, <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * name = 0 )<tt> [static]</tt> +<h3 class=fn><a href="tqstring.html">TQString</a> <a name="getItem"></a>TQInputDialog::getItem ( const <a href="tqstring.html">TQString</a> & caption, const <a href="tqstring.html">TQString</a> & label, const <a href="tqstringlist.html">TQStringList</a> & list, int current = 0, bool editable = true, bool * ok = 0, <a href="tqwidget.html">TQWidget</a> * parent = 0, const char * name = 0 )<tt> [static]</tt> </h3> Static convenience function to let the user select an item from a string list. <em>caption</em> is the text which is displayed in the title bar of the dialog. <em>label</em> is the text which is shown to the user (it should say what should be entered). <em>list</em> is the string list which is inserted into the combobox, and <em>current</em> is the number -of the item which should be the current item. If <em>editable</em> is TRUE -the user can enter their own text; if <em>editable</em> is FALSE the user +of the item which should be the current item. If <em>editable</em> is true +the user can enter their own text; if <em>editable</em> is false the user may only select one of the existing items. -<p> If <em>ok</em> is not-null <em>*</em><em>ok</em> will be set to TRUE if the user -pressed OK and to FALSE if the user pressed Cancel. The dialog's +<p> If <em>ok</em> is not-null <em>*</em><em>ok</em> will be set to true if the user +pressed OK and to false if the user pressed Cancel. The dialog's parent is <em>parent</em>; the dialog is called <em>name</em>. The dialog will be modal. -<p> This function returns the text of the current item, or if <em>editable</em> is TRUE, the current text of the combobox. +<p> This function returns the text of the current item, or if <em>editable</em> is true, the current text of the combobox. <p> Use this static function like this: <p> <pre> <a href="tqstringlist.html">TQStringList</a> lst; lst << "First" << "Second" << "Third" << "Fourth" << "Fifth"; bool ok; <a href="tqstring.html">TQString</a> res = TQInputDialog::<a href="#getItem">getItem</a>( - "MyApp 3000", "Select an item:", lst, 1, TRUE, &ok, + "MyApp 3000", "Select an item:", lst, 1, true, &ok, this ); if ( ok ) { // user selected an item and pressed OK @@ -162,8 +162,8 @@ Static convenience function to get a string from the user. <em>caption</em> is t dialog. <em>label</em> is the text which is shown to the user (it should say what should be entered). <em>text</em> is the default text which is placed in the line edit. The <em>mode</em> is the echo mode the line edit -will use. If <em>ok</em> is not-null <em>*</em><em>ok</em> will be set to TRUE if the -user pressed OK and to FALSE if the user pressed Cancel. The +will use. If <em>ok</em> is not-null <em>*</em><em>ok</em> will be set to true if the +user pressed OK and to false if the user pressed Cancel. The dialog's parent is <em>parent</em>; the dialog is called <em>name</em>. The dialog will be modal. <p> This function returns the text which has been entered in the line |