2024-08-25 04:08:24 +00:00
# include <QInputDialog>
# include <QList>
# include <QMetaObject>
# include <QSize>
# include <QString>
2024-08-29 07:01:51 +00:00
# include <QByteArray>
# include <cstring>
# include <QWidget>
# include "qinputdialog.h"
# include "gen_qinputdialog.h"
2024-09-14 22:29:05 +00:00
# include "_cgo_export.h"
2024-08-25 04:08:24 +00:00
2024-08-29 07:01:51 +00:00
QInputDialog * QInputDialog_new ( ) {
return new QInputDialog ( ) ;
}
QInputDialog * QInputDialog_new2 ( QWidget * parent ) {
return new QInputDialog ( parent ) ;
}
QInputDialog * QInputDialog_new3 ( QWidget * parent , int flags ) {
return new QInputDialog ( parent , static_cast < Qt : : WindowFlags > ( flags ) ) ;
}
2024-09-11 05:41:09 +00:00
QMetaObject * QInputDialog_MetaObject ( const QInputDialog * self ) {
return ( QMetaObject * ) self - > metaObject ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-20 22:32:57 +00:00
void * QInputDialog_Metacast ( QInputDialog * self , const char * param1 ) {
return self - > qt_metacast ( param1 ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_Tr ( const char * s ) {
QString _ret = QInputDialog : : tr ( s ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_TrUtf8 ( const char * s ) {
QString _ret = QInputDialog : : trUtf8 ( s ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-18 00:12:02 +00:00
void QInputDialog_SetInputMode ( QInputDialog * self , int mode ) {
2024-08-29 07:01:51 +00:00
self - > setInputMode ( static_cast < QInputDialog : : InputMode > ( mode ) ) ;
}
2024-09-18 00:12:02 +00:00
int QInputDialog_InputMode ( const QInputDialog * self ) {
2024-09-14 22:29:05 +00:00
QInputDialog : : InputMode _ret = self - > inputMode ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
void QInputDialog_SetLabelText ( QInputDialog * self , struct miqt_string * text ) {
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
2024-08-25 04:08:24 +00:00
self - > setLabelText ( text_QString ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_LabelText ( const QInputDialog * self ) {
QString _ret = self - > labelText ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-18 00:12:02 +00:00
void QInputDialog_SetOption ( QInputDialog * self , int option ) {
2024-08-29 07:01:51 +00:00
self - > setOption ( static_cast < QInputDialog : : InputDialogOption > ( option ) ) ;
}
2024-09-18 00:12:02 +00:00
bool QInputDialog_TestOption ( const QInputDialog * self , int option ) {
2024-09-11 05:41:09 +00:00
return self - > testOption ( static_cast < QInputDialog : : InputDialogOption > ( option ) ) ;
2024-08-29 07:01:51 +00:00
}
void QInputDialog_SetOptions ( QInputDialog * self , int options ) {
self - > setOptions ( static_cast < QInputDialog : : InputDialogOptions > ( options ) ) ;
}
2024-09-11 05:41:09 +00:00
int QInputDialog_Options ( const QInputDialog * self ) {
2024-09-14 22:29:05 +00:00
QInputDialog : : InputDialogOptions _ret = self - > options ( ) ;
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
void QInputDialog_SetTextValue ( QInputDialog * self , struct miqt_string * text ) {
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
2024-08-25 04:08:24 +00:00
self - > setTextValue ( text_QString ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_TextValue ( const QInputDialog * self ) {
QString _ret = self - > textValue ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-18 00:12:02 +00:00
void QInputDialog_SetTextEchoMode ( QInputDialog * self , int mode ) {
2024-08-29 07:01:51 +00:00
self - > setTextEchoMode ( static_cast < QLineEdit : : EchoMode > ( mode ) ) ;
}
2024-09-18 00:12:02 +00:00
int QInputDialog_TextEchoMode ( const QInputDialog * self ) {
2024-09-14 22:29:05 +00:00
QLineEdit : : EchoMode _ret = self - > textEchoMode ( ) ;
2024-09-18 00:12:02 +00:00
return static_cast < int > ( _ret ) ;
2024-08-29 07:01:51 +00:00
}
2024-08-25 04:08:24 +00:00
void QInputDialog_SetComboBoxEditable ( QInputDialog * self , bool editable ) {
self - > setComboBoxEditable ( editable ) ;
}
2024-09-11 05:41:09 +00:00
bool QInputDialog_IsComboBoxEditable ( const QInputDialog * self ) {
return self - > isComboBoxEditable ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-16 07:33:40 +00:00
void QInputDialog_SetComboBoxItems ( QInputDialog * self , struct miqt_array * /* of struct miqt_string* */ items ) {
2024-08-25 04:08:24 +00:00
QList < QString > items_QList ;
2024-09-14 22:29:05 +00:00
items_QList . reserve ( items - > len ) ;
2024-09-17 07:43:35 +00:00
struct miqt_string * * items_arr = static_cast < struct miqt_string * * > ( items - > data ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 ; i < items - > len ; + + i ) {
2024-09-17 07:43:35 +00:00
QString items_arr_i_QString = QString : : fromUtf8 ( & items_arr [ i ] - > data , items_arr [ i ] - > len ) ;
items_QList . push_back ( items_arr_i_QString ) ;
2024-08-25 04:08:24 +00:00
}
self - > setComboBoxItems ( items_QList ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_array * QInputDialog_ComboBoxItems ( const QInputDialog * self ) {
QStringList _ret = self - > comboBoxItems ( ) ;
2024-09-17 06:29:11 +00:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-14 22:29:05 +00:00
struct miqt_string * * _arr = static_cast < struct miqt_string * * > ( malloc ( sizeof ( struct miqt_string * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QString _lv_ret = _ret [ i ] ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _lv_b = _lv_ret . toUtf8 ( ) ;
_arr [ i ] = miqt_strdup ( _lv_b . data ( ) , _lv_b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_array * _out = static_cast < struct miqt_array * > ( malloc ( sizeof ( struct miqt_array ) ) ) ;
_out - > len = _ret . length ( ) ;
_out - > data = static_cast < void * > ( _arr ) ;
return _out ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetIntValue ( QInputDialog * self , int value ) {
self - > setIntValue ( static_cast < int > ( value ) ) ;
}
2024-09-11 05:41:09 +00:00
int QInputDialog_IntValue ( const QInputDialog * self ) {
return self - > intValue ( ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetIntMinimum ( QInputDialog * self , int min ) {
self - > setIntMinimum ( static_cast < int > ( min ) ) ;
}
2024-09-11 05:41:09 +00:00
int QInputDialog_IntMinimum ( const QInputDialog * self ) {
return self - > intMinimum ( ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetIntMaximum ( QInputDialog * self , int max ) {
self - > setIntMaximum ( static_cast < int > ( max ) ) ;
}
2024-09-11 05:41:09 +00:00
int QInputDialog_IntMaximum ( const QInputDialog * self ) {
return self - > intMaximum ( ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetIntRange ( QInputDialog * self , int min , int max ) {
self - > setIntRange ( static_cast < int > ( min ) , static_cast < int > ( max ) ) ;
}
void QInputDialog_SetIntStep ( QInputDialog * self , int step ) {
self - > setIntStep ( static_cast < int > ( step ) ) ;
}
2024-09-11 05:41:09 +00:00
int QInputDialog_IntStep ( const QInputDialog * self ) {
return self - > intStep ( ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetDoubleValue ( QInputDialog * self , double value ) {
self - > setDoubleValue ( static_cast < double > ( value ) ) ;
}
2024-09-11 05:41:09 +00:00
double QInputDialog_DoubleValue ( const QInputDialog * self ) {
return self - > doubleValue ( ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetDoubleMinimum ( QInputDialog * self , double min ) {
self - > setDoubleMinimum ( static_cast < double > ( min ) ) ;
}
2024-09-11 05:41:09 +00:00
double QInputDialog_DoubleMinimum ( const QInputDialog * self ) {
return self - > doubleMinimum ( ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetDoubleMaximum ( QInputDialog * self , double max ) {
self - > setDoubleMaximum ( static_cast < double > ( max ) ) ;
}
2024-09-11 05:41:09 +00:00
double QInputDialog_DoubleMaximum ( const QInputDialog * self ) {
return self - > doubleMaximum ( ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetDoubleRange ( QInputDialog * self , double min , double max ) {
self - > setDoubleRange ( static_cast < double > ( min ) , static_cast < double > ( max ) ) ;
}
void QInputDialog_SetDoubleDecimals ( QInputDialog * self , int decimals ) {
self - > setDoubleDecimals ( static_cast < int > ( decimals ) ) ;
}
2024-09-11 05:41:09 +00:00
int QInputDialog_DoubleDecimals ( const QInputDialog * self ) {
return self - > doubleDecimals ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
void QInputDialog_SetOkButtonText ( QInputDialog * self , struct miqt_string * text ) {
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
2024-08-25 04:08:24 +00:00
self - > setOkButtonText ( text_QString ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_OkButtonText ( const QInputDialog * self ) {
QString _ret = self - > okButtonText ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
void QInputDialog_SetCancelButtonText ( QInputDialog * self , struct miqt_string * text ) {
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
2024-08-25 04:08:24 +00:00
self - > setCancelButtonText ( text_QString ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_CancelButtonText ( const QInputDialog * self ) {
QString _ret = self - > cancelButtonText ( ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QSize * QInputDialog_MinimumSizeHint ( const QInputDialog * self ) {
2024-09-17 06:29:11 +00:00
return new QSize ( self - > minimumSizeHint ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QSize * QInputDialog_SizeHint ( const QInputDialog * self ) {
2024-09-17 06:29:11 +00:00
return new QSize ( self - > sizeHint ( ) ) ;
2024-08-25 04:08:24 +00:00
}
void QInputDialog_SetVisible ( QInputDialog * self , bool visible ) {
self - > setVisible ( visible ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_GetText ( QWidget * parent , struct miqt_string * title , struct miqt_string * label ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString _ret = QInputDialog : : getText ( parent , title_QString , label_QString ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_GetMultiLineText ( QWidget * parent , struct miqt_string * title , struct miqt_string * label ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString _ret = QInputDialog : : getMultiLineText ( parent , title_QString , label_QString ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-16 07:33:40 +00:00
struct miqt_string * QInputDialog_GetItem ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_array * /* of struct miqt_string* */ items ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
QList < QString > items_QList ;
2024-09-14 22:29:05 +00:00
items_QList . reserve ( items - > len ) ;
2024-09-17 07:43:35 +00:00
struct miqt_string * * items_arr = static_cast < struct miqt_string * * > ( items - > data ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 ; i < items - > len ; + + i ) {
2024-09-17 07:43:35 +00:00
QString items_arr_i_QString = QString : : fromUtf8 ( & items_arr [ i ] - > data , items_arr [ i ] - > len ) ;
items_QList . push_back ( items_arr_i_QString ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
QString _ret = QInputDialog : : getItem ( parent , title_QString , label_QString , items_QList ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
int QInputDialog_GetInt ( QWidget * parent , struct miqt_string * title , struct miqt_string * label ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getInt ( parent , title_QString , label_QString ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble ( QWidget * parent , struct miqt_string * title , struct miqt_string * label ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble2 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , double value , double minValue , double maxValue , int decimals , bool * ok , int flags , double step ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString , static_cast < double > ( value ) , static_cast < double > ( minValue ) , static_cast < double > ( maxValue ) , static_cast < int > ( decimals ) , ok , static_cast < Qt : : WindowFlags > ( flags ) , static_cast < double > ( step ) ) ;
}
2024-08-25 04:08:24 +00:00
void QInputDialog_SetDoubleStep ( QInputDialog * self , double step ) {
self - > setDoubleStep ( static_cast < double > ( step ) ) ;
}
2024-09-11 05:41:09 +00:00
double QInputDialog_DoubleStep ( const QInputDialog * self ) {
return self - > doubleStep ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
void QInputDialog_TextValueChanged ( QInputDialog * self , struct miqt_string * text ) {
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
2024-08-25 04:08:24 +00:00
self - > textValueChanged ( text_QString ) ;
}
void QInputDialog_connect_TextValueChanged ( QInputDialog * self , void * slot ) {
QInputDialog : : connect ( self , static_cast < void ( QInputDialog : : * ) ( const QString & ) > ( & QInputDialog : : textValueChanged ) , self , [ = ] ( const QString & text ) {
2024-09-14 22:29:05 +00:00
const QString text_ret = text ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray text_b = text_ret . toUtf8 ( ) ;
struct miqt_string * sigval1 = miqt_strdup ( text_b . data ( ) , text_b . length ( ) ) ;
miqt_exec_callback_QInputDialog_TextValueChanged ( slot , sigval1 ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
2024-09-14 22:29:05 +00:00
void QInputDialog_TextValueSelected ( QInputDialog * self , struct miqt_string * text ) {
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
2024-08-25 04:08:24 +00:00
self - > textValueSelected ( text_QString ) ;
}
void QInputDialog_connect_TextValueSelected ( QInputDialog * self , void * slot ) {
QInputDialog : : connect ( self , static_cast < void ( QInputDialog : : * ) ( const QString & ) > ( & QInputDialog : : textValueSelected ) , self , [ = ] ( const QString & text ) {
2024-09-14 22:29:05 +00:00
const QString text_ret = text ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray text_b = text_ret . toUtf8 ( ) ;
struct miqt_string * sigval1 = miqt_strdup ( text_b . data ( ) , text_b . length ( ) ) ;
miqt_exec_callback_QInputDialog_TextValueSelected ( slot , sigval1 ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
void QInputDialog_IntValueChanged ( QInputDialog * self , int value ) {
self - > intValueChanged ( static_cast < int > ( value ) ) ;
}
void QInputDialog_connect_IntValueChanged ( QInputDialog * self , void * slot ) {
QInputDialog : : connect ( self , static_cast < void ( QInputDialog : : * ) ( int ) > ( & QInputDialog : : intValueChanged ) , self , [ = ] ( int value ) {
2024-09-14 22:29:05 +00:00
int sigval1 = value ;
miqt_exec_callback_QInputDialog_IntValueChanged ( slot , sigval1 ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
void QInputDialog_IntValueSelected ( QInputDialog * self , int value ) {
self - > intValueSelected ( static_cast < int > ( value ) ) ;
}
void QInputDialog_connect_IntValueSelected ( QInputDialog * self , void * slot ) {
QInputDialog : : connect ( self , static_cast < void ( QInputDialog : : * ) ( int ) > ( & QInputDialog : : intValueSelected ) , self , [ = ] ( int value ) {
2024-09-14 22:29:05 +00:00
int sigval1 = value ;
miqt_exec_callback_QInputDialog_IntValueSelected ( slot , sigval1 ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
void QInputDialog_DoubleValueChanged ( QInputDialog * self , double value ) {
self - > doubleValueChanged ( static_cast < double > ( value ) ) ;
}
void QInputDialog_connect_DoubleValueChanged ( QInputDialog * self , void * slot ) {
QInputDialog : : connect ( self , static_cast < void ( QInputDialog : : * ) ( double ) > ( & QInputDialog : : doubleValueChanged ) , self , [ = ] ( double value ) {
2024-09-14 22:29:05 +00:00
double sigval1 = value ;
miqt_exec_callback_QInputDialog_DoubleValueChanged ( slot , sigval1 ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
void QInputDialog_DoubleValueSelected ( QInputDialog * self , double value ) {
self - > doubleValueSelected ( static_cast < double > ( value ) ) ;
}
void QInputDialog_connect_DoubleValueSelected ( QInputDialog * self , void * slot ) {
QInputDialog : : connect ( self , static_cast < void ( QInputDialog : : * ) ( double ) > ( & QInputDialog : : doubleValueSelected ) , self , [ = ] ( double value ) {
2024-09-14 22:29:05 +00:00
double sigval1 = value ;
miqt_exec_callback_QInputDialog_DoubleValueSelected ( slot , sigval1 ) ;
2024-08-25 04:08:24 +00:00
} ) ;
}
void QInputDialog_Done ( QInputDialog * self , int result ) {
self - > done ( static_cast < int > ( result ) ) ;
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_Tr2 ( const char * s , const char * c ) {
QString _ret = QInputDialog : : tr ( s , c ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_Tr3 ( const char * s , const char * c , int n ) {
QString _ret = QInputDialog : : tr ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_TrUtf82 ( const char * s , const char * c ) {
QString _ret = QInputDialog : : trUtf8 ( s , c ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_TrUtf83 ( const char * s , const char * c , int n ) {
QString _ret = QInputDialog : : trUtf8 ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-18 00:12:02 +00:00
void QInputDialog_SetOption2 ( QInputDialog * self , int option , bool on ) {
2024-08-29 07:01:51 +00:00
self - > setOption ( static_cast < QInputDialog : : InputDialogOption > ( option ) , on ) ;
}
2024-09-18 00:12:02 +00:00
struct miqt_string * QInputDialog_GetText4 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int echo ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString _ret = QInputDialog : : getText ( parent , title_QString , label_QString , static_cast < QLineEdit : : EchoMode > ( echo ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
struct miqt_string * QInputDialog_GetText5 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int echo , struct miqt_string * text ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getText ( parent , title_QString , label_QString , static_cast < QLineEdit : : EchoMode > ( echo ) , text_QString ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
struct miqt_string * QInputDialog_GetText6 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int echo , struct miqt_string * text , bool * ok ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getText ( parent , title_QString , label_QString , static_cast < QLineEdit : : EchoMode > ( echo ) , text_QString , ok ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
struct miqt_string * QInputDialog_GetText7 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int echo , struct miqt_string * text , bool * ok , int flags ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getText ( parent , title_QString , label_QString , static_cast < QLineEdit : : EchoMode > ( echo ) , text_QString , ok , static_cast < Qt : : WindowFlags > ( flags ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-18 00:12:02 +00:00
struct miqt_string * QInputDialog_GetText8 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int echo , struct miqt_string * text , bool * ok , int flags , int inputMethodHints ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getText ( parent , title_QString , label_QString , static_cast < QLineEdit : : EchoMode > ( echo ) , text_QString , ok , static_cast < Qt : : WindowFlags > ( flags ) , static_cast < Qt : : InputMethodHints > ( inputMethodHints ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_GetMultiLineText4 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_string * text ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getMultiLineText ( parent , title_QString , label_QString , text_QString ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_GetMultiLineText5 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_string * text , bool * ok ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getMultiLineText ( parent , title_QString , label_QString , text_QString , ok ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_GetMultiLineText6 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_string * text , bool * ok , int flags ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getMultiLineText ( parent , title_QString , label_QString , text_QString , ok , static_cast < Qt : : WindowFlags > ( flags ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
struct miqt_string * QInputDialog_GetMultiLineText7 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_string * text , bool * ok , int flags , int inputMethodHints ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
QString text_QString = QString : : fromUtf8 ( & text - > data , text - > len ) ;
QString _ret = QInputDialog : : getMultiLineText ( parent , title_QString , label_QString , text_QString , ok , static_cast < Qt : : WindowFlags > ( flags ) , static_cast < Qt : : InputMethodHints > ( inputMethodHints ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-16 07:33:40 +00:00
struct miqt_string * QInputDialog_GetItem5 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_array * /* of struct miqt_string* */ items , int current ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
QList < QString > items_QList ;
2024-09-14 22:29:05 +00:00
items_QList . reserve ( items - > len ) ;
2024-09-17 07:43:35 +00:00
struct miqt_string * * items_arr = static_cast < struct miqt_string * * > ( items - > data ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 ; i < items - > len ; + + i ) {
2024-09-17 07:43:35 +00:00
QString items_arr_i_QString = QString : : fromUtf8 ( & items_arr [ i ] - > data , items_arr [ i ] - > len ) ;
items_QList . push_back ( items_arr_i_QString ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
QString _ret = QInputDialog : : getItem ( parent , title_QString , label_QString , items_QList , static_cast < int > ( current ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-16 07:33:40 +00:00
struct miqt_string * QInputDialog_GetItem6 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_array * /* of struct miqt_string* */ items , int current , bool editable ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
QList < QString > items_QList ;
2024-09-14 22:29:05 +00:00
items_QList . reserve ( items - > len ) ;
2024-09-17 07:43:35 +00:00
struct miqt_string * * items_arr = static_cast < struct miqt_string * * > ( items - > data ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 ; i < items - > len ; + + i ) {
2024-09-17 07:43:35 +00:00
QString items_arr_i_QString = QString : : fromUtf8 ( & items_arr [ i ] - > data , items_arr [ i ] - > len ) ;
items_QList . push_back ( items_arr_i_QString ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
QString _ret = QInputDialog : : getItem ( parent , title_QString , label_QString , items_QList , static_cast < int > ( current ) , editable ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-16 07:33:40 +00:00
struct miqt_string * QInputDialog_GetItem7 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_array * /* of struct miqt_string* */ items , int current , bool editable , bool * ok ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
QList < QString > items_QList ;
2024-09-14 22:29:05 +00:00
items_QList . reserve ( items - > len ) ;
2024-09-17 07:43:35 +00:00
struct miqt_string * * items_arr = static_cast < struct miqt_string * * > ( items - > data ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 ; i < items - > len ; + + i ) {
2024-09-17 07:43:35 +00:00
QString items_arr_i_QString = QString : : fromUtf8 ( & items_arr [ i ] - > data , items_arr [ i ] - > len ) ;
items_QList . push_back ( items_arr_i_QString ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
QString _ret = QInputDialog : : getItem ( parent , title_QString , label_QString , items_QList , static_cast < int > ( current ) , editable , ok ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-16 07:33:40 +00:00
struct miqt_string * QInputDialog_GetItem8 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_array * /* of struct miqt_string* */ items , int current , bool editable , bool * ok , int flags ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
QList < QString > items_QList ;
2024-09-14 22:29:05 +00:00
items_QList . reserve ( items - > len ) ;
2024-09-17 07:43:35 +00:00
struct miqt_string * * items_arr = static_cast < struct miqt_string * * > ( items - > data ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 ; i < items - > len ; + + i ) {
2024-09-17 07:43:35 +00:00
QString items_arr_i_QString = QString : : fromUtf8 ( & items_arr [ i ] - > data , items_arr [ i ] - > len ) ;
items_QList . push_back ( items_arr_i_QString ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
QString _ret = QInputDialog : : getItem ( parent , title_QString , label_QString , items_QList , static_cast < int > ( current ) , editable , ok , static_cast < Qt : : WindowFlags > ( flags ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-16 07:33:40 +00:00
struct miqt_string * QInputDialog_GetItem9 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , struct miqt_array * /* of struct miqt_string* */ items , int current , bool editable , bool * ok , int flags , int inputMethodHints ) {
2024-09-14 22:29:05 +00:00
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
QList < QString > items_QList ;
2024-09-14 22:29:05 +00:00
items_QList . reserve ( items - > len ) ;
2024-09-17 07:43:35 +00:00
struct miqt_string * * items_arr = static_cast < struct miqt_string * * > ( items - > data ) ;
2024-09-14 22:29:05 +00:00
for ( size_t i = 0 ; i < items - > len ; + + i ) {
2024-09-17 07:43:35 +00:00
QString items_arr_i_QString = QString : : fromUtf8 ( & items_arr [ i ] - > data , items_arr [ i ] - > len ) ;
items_QList . push_back ( items_arr_i_QString ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
QString _ret = QInputDialog : : getItem ( parent , title_QString , label_QString , items_QList , static_cast < int > ( current ) , editable , ok , static_cast < Qt : : WindowFlags > ( flags ) , static_cast < Qt : : InputMethodHints > ( inputMethodHints ) ) ;
2024-08-29 07:01:51 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
return miqt_strdup ( _b . data ( ) , _b . length ( ) ) ;
2024-08-29 07:01:51 +00:00
}
2024-09-14 22:29:05 +00:00
int QInputDialog_GetInt4 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int value ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getInt ( parent , title_QString , label_QString , static_cast < int > ( value ) ) ;
}
2024-09-14 22:29:05 +00:00
int QInputDialog_GetInt5 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int value , int minValue ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getInt ( parent , title_QString , label_QString , static_cast < int > ( value ) , static_cast < int > ( minValue ) ) ;
}
2024-09-14 22:29:05 +00:00
int QInputDialog_GetInt6 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int value , int minValue , int maxValue ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getInt ( parent , title_QString , label_QString , static_cast < int > ( value ) , static_cast < int > ( minValue ) , static_cast < int > ( maxValue ) ) ;
}
2024-09-14 22:29:05 +00:00
int QInputDialog_GetInt7 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int value , int minValue , int maxValue , int step ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getInt ( parent , title_QString , label_QString , static_cast < int > ( value ) , static_cast < int > ( minValue ) , static_cast < int > ( maxValue ) , static_cast < int > ( step ) ) ;
}
2024-09-14 22:29:05 +00:00
int QInputDialog_GetInt8 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int value , int minValue , int maxValue , int step , bool * ok ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getInt ( parent , title_QString , label_QString , static_cast < int > ( value ) , static_cast < int > ( minValue ) , static_cast < int > ( maxValue ) , static_cast < int > ( step ) , ok ) ;
}
2024-09-14 22:29:05 +00:00
int QInputDialog_GetInt9 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , int value , int minValue , int maxValue , int step , bool * ok , int flags ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getInt ( parent , title_QString , label_QString , static_cast < int > ( value ) , static_cast < int > ( minValue ) , static_cast < int > ( maxValue ) , static_cast < int > ( step ) , ok , static_cast < Qt : : WindowFlags > ( flags ) ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble4 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , double value ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString , static_cast < double > ( value ) ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble5 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , double value , double minValue ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString , static_cast < double > ( value ) , static_cast < double > ( minValue ) ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble6 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , double value , double minValue , double maxValue ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString , static_cast < double > ( value ) , static_cast < double > ( minValue ) , static_cast < double > ( maxValue ) ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble7 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , double value , double minValue , double maxValue , int decimals ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString , static_cast < double > ( value ) , static_cast < double > ( minValue ) , static_cast < double > ( maxValue ) , static_cast < int > ( decimals ) ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble8 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , double value , double minValue , double maxValue , int decimals , bool * ok ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString , static_cast < double > ( value ) , static_cast < double > ( minValue ) , static_cast < double > ( maxValue ) , static_cast < int > ( decimals ) , ok ) ;
}
2024-09-14 22:29:05 +00:00
double QInputDialog_GetDouble9 ( QWidget * parent , struct miqt_string * title , struct miqt_string * label , double value , double minValue , double maxValue , int decimals , bool * ok , int flags ) {
QString title_QString = QString : : fromUtf8 ( & title - > data , title - > len ) ;
QString label_QString = QString : : fromUtf8 ( & label - > data , label - > len ) ;
2024-08-29 07:01:51 +00:00
return QInputDialog : : getDouble ( parent , title_QString , label_QString , static_cast < double > ( value ) , static_cast < double > ( minValue ) , static_cast < double > ( maxValue ) , static_cast < int > ( decimals ) , ok , static_cast < Qt : : WindowFlags > ( flags ) ) ;
}
2024-08-25 04:08:24 +00:00
void QInputDialog_Delete ( QInputDialog * self ) {
delete self ;
}