Mercurial > projects > qtd
comparison generator/typesystem_gui-java.java @ 33:cf8a415f3f32
gui package is fully wrapped now. lots of fixes in the generator
author | eldar |
---|---|
date | Sat, 16 May 2009 17:12:06 +0000 |
parents | 374a61671448 |
children | d5a6b6269f44 |
comparison
equal
deleted
inserted
replaced
32:a293cd68d56c | 33:cf8a415f3f32 |
---|---|
221 } | 221 } |
222 */ | 222 */ |
223 }// class | 223 }// class |
224 | 224 |
225 class QTreeWidgetItemIterator___ extends QTreeWidgetItemIterator { | 225 class QTreeWidgetItemIterator___ extends QTreeWidgetItemIterator { |
226 @QtBlockedSlot | 226 public final QTreeWidgetItemIterator opAddAssign(int i) { |
227 public final void next(int i) { | 227 return operator_add_assign(i); |
228 operator_add_assign(i); | 228 } |
229 } | 229 |
230 | 230 public final QTreeWidgetItemIterator opSubAssign(int i) { |
231 @QtBlockedSlot | 231 return operator_subtract_assign(i); |
232 public final void previous(int i) { | 232 } |
233 operator_subtract_assign(i); | 233 |
234 } | 234 public final QTreeWidgetItemIterator next() { |
235 | 235 return operator_increment(); |
236 @QtBlockedSlot | 236 } |
237 public final void next() { | 237 |
238 operator_increment(); | 238 public final QTreeWidgetItemIterator previous() { |
239 } | 239 return operator_decrement(); |
240 | 240 } |
241 @QtBlockedSlot | 241 |
242 public final void previous() { | |
243 operator_decrement(); | |
244 } | |
245 | |
246 @QtBlockedSlot | |
247 public final QTreeWidgetItem current() { | 242 public final QTreeWidgetItem current() { |
248 return operator_multiply(); | 243 return operator_multiply(); |
249 } | 244 } |
250 }// class | 245 }// class |
251 | 246 |
591 } | 586 } |
592 | 587 |
593 }// class | 588 }// class |
594 | 589 |
595 class QDesktopServices___ extends QDesktopServices { | 590 class QDesktopServices___ extends QDesktopServices { |
596 | 591 /* |
597 private static java.util.Hashtable<String, InternalUrlHandler> __rcUrlHandlers = new java.util.Hashtable<String, InternalUrlHandler>(); | 592 private static java.util.Hashtable<String, InternalUrlHandler> __rcUrlHandlers = new java.util.Hashtable<String, InternalUrlHandler>(); |
598 | 593 |
599 public static interface UrlHandler { | 594 public static interface UrlHandler { |
600 public void handleUrl(qt.core.QUrl url); | 595 public void handleUrl(qt.core.QUrl url); |
601 } | 596 } |
621 __rcUrlHandlers.remove(scheme); | 616 __rcUrlHandlers.remove(scheme); |
622 else | 617 else |
623 __rcUrlHandlers.put(scheme, receiver); | 618 __rcUrlHandlers.put(scheme, receiver); |
624 setUrlHandler(scheme, receiver, QNativePointer.createCharPointer("handleUrl")); | 619 setUrlHandler(scheme, receiver, QNativePointer.createCharPointer("handleUrl")); |
625 } | 620 } |
626 | 621 */ |
627 }// class | 622 }// class |
628 | 623 |
629 class QWizardPage___ extends QWizardPage { | 624 class QWizardPage___ extends QWizardPage { |
630 | 625 |
631 protected final void registerField(String name, QWidget widget) { | 626 protected final void registerField(string name, QWidget widget, string property = null) { |
632 registerField(name, widget, (qt.QNativePointer) null, (qt.QNativePointer) null); | 627 registerField(name, widget, property is null ? null : toStringz(property), null); |
633 } | |
634 | |
635 protected final void registerField(String name, QWidget widget, String property) { | |
636 registerField(name, widget, QNativePointer.createCharPointer(property), null); | |
637 } | 628 } |
638 | 629 |
639 /** | 630 /** |
640 * Creates a field called <code>name</code> associated with the given | 631 * Creates a field called <code>name</code> associated with the given |
641 * property of the given widget. From then on, that property becomes | 632 * property of the given widget. From then on, that property becomes |
673 * property's value changes. | 664 * property's value changes. |
674 * | 665 * |
675 * @see qt.gui.QWizardPage#field | 666 * @see qt.gui.QWizardPage#field |
676 * @see qt.gui.QWizardPage#setField | 667 * @see qt.gui.QWizardPage#setField |
677 */ | 668 */ |
678 protected final void registerField(String name, QWidget widget, String property, String changedSignal) { | 669 /* protected final void registerField(String name, QWidget widget, String property, String changedSignal) { |
679 String signalSignature = qt.internal.MetaObjectTools.cppSignalSignature(widget, changedSignal); | 670 String signalSignature = qt.internal.MetaObjectTools.cppSignalSignature(widget, changedSignal); |
680 if (signalSignature.length() == 0) | 671 if (signalSignature.length() == 0) |
681 throw new QNoSuchSignalException("Signal '" + changedSignal | 672 throw new QNoSuchSignalException("Signal '" + changedSignal |
682 + "' does not exist or has argument types that cannot be converted to Qt Jambi or java.lang types."); | 673 + "' does not exist or has argument types that cannot be converted to Qt Jambi or java.lang types."); |
683 registerField(name, widget, qt.QNativePointer.createCharPointer(property), qt.QNativePointer | 674 registerField(name, widget, qt.QNativePointer.createCharPointer(property), qt.QNativePointer |
684 .createCharPointer(qt.internal.QtJambiInternal.SignalPrefix + signalSignature)); | 675 .createCharPointer(qt.internal.QtJambiInternal.SignalPrefix + signalSignature)); |
685 } | 676 } |
686 | 677 */ |
687 }// class | 678 }// class |
688 | 679 |
689 class QFontDialog___ extends QFontDialog { | 680 class QFontDialog___ extends QFontDialog { |
690 | 681 |
691 public static final class Result { | 682 public static final class Result { |
731 | 722 |
732 }// class | 723 }// class |
733 | 724 |
734 class QShortcut___ extends QShortcut { | 725 class QShortcut___ extends QShortcut { |
735 | 726 |
736 public QShortcut(QKeySequence key, QWidget parent) { | 727 public this(QKeySequence key, QWidget parent, Qt.ShortcutContext context = Qt.WindowShortcut) { |
737 this(key, parent, null, null, qt.core.Qt.ShortcutContext.WindowShortcut); | |
738 } | |
739 | |
740 public QShortcut(QKeySequence key, QWidget parent, qt.core.Qt.ShortcutContext context) { | |
741 this(key, parent, null, null, context); | 728 this(key, parent, null, null, context); |
742 } | 729 } |
743 | 730 |
744 }// class | 731 }// class |
745 | 732 |
889 class QFileDialog___ extends QFileDialog { | 876 class QFileDialog___ extends QFileDialog { |
890 | 877 |
891 public static string getOpenFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { | 878 public static string getOpenFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { |
892 string res; | 879 string res; |
893 string _selectedFilter = ""; | 880 string _selectedFilter = ""; |
894 qtd_QFileDialog_getOpenFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.nativeId, caption.ptr, caption.length, dir.ptr, dir.length, filter.ptr, filter.length, _selectedFilter.ptr, _selectedFilter.length, 0); | 881 qtd_QFileDialog_getOpenFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.nativeId, caption, dir, filter, _selectedFilter, 0); |
895 return res; | 882 return res; |
896 } | 883 } |
897 | 884 |
898 public static string getSaveFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { | 885 public static string getSaveFileName(QWidget _parent, string caption = null, string dir = null, string filter = null) { |
899 string res; | 886 string res; |
900 string _selectedFilter = ""; | 887 string _selectedFilter = ""; |
901 qtd_QFileDialog_getSaveFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.nativeId, caption.ptr, caption.length, dir.ptr, dir.length, filter.ptr, filter.length, _selectedFilter.ptr, _selectedFilter.length, 0); | 888 qtd_QFileDialog_getSaveFileName_QWidget_string_string_string_nativepointerstring_Options(&res, _parent is null ? null : _parent.nativeId, caption, dir, filter, _selectedFilter, 0); |
902 return res; | 889 return res; |
903 } | 890 } |
904 | 891 |
905 public static class Filter { | 892 public static class Filter { |
906 public this(string filter) { | 893 public this(string filter) { |
1716 | 1703 |
1717 return item; | 1704 return item; |
1718 }*/ | 1705 }*/ |
1719 | 1706 |
1720 }// class | 1707 }// class |
1708 | |
1709 class QInputDialog___ extends QInputDialog { | |
1710 private static double getDouble(QWidget _parent, string title, string label, double value = 0, double minValue = -2147483647, double maxValue = 2147483647, int decimals = 1, ref bool ok = false, int flags = 0) { | |
1711 return qtd_QInputDialog_getDouble_private_QWidget_string_string_double_double_double_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.nativeId, title, label, value, minValue, maxValue, decimals, &ok, flags); | |
1712 } | |
1713 | |
1714 private static int getInt(QWidget _parent, string title, string label, int value = 0, int minValue = -2147483647, int maxValue = 2147483647, int step = 1, ref bool ok = false, int flags = 0) { | |
1715 return qtd_QInputDialog_getInt_private_QWidget_string_string_int_int_int_int_nativepointerbool_WindowFlags(_parent is null ? null : _parent.nativeId, title, label, value, minValue, maxValue, step, &ok, flags); | |
1716 } | |
1717 | |
1718 private static string getItem(QWidget _parent, string title, string label, string[] items, int current = 0, bool editable = true, ref bool ok = false, int flags = 0) { | |
1719 string res; | |
1720 qtd_QInputDialog_getItem_private_QWidget_string_string_List_int_bool_nativepointerbool_WindowFlags(&res, _parent is null ? null : _parent.nativeId, title, label, items.ptr, items.length, current, editable, &ok, flags); | |
1721 return res; | |
1722 } | |
1723 | |
1724 private static string getText(QWidget _parent, string title, string label, QLineEdit_EchoMode echo = QLineEdit_EchoMode.Normal, string text = null, ref bool ok = false, int flags = 0) { | |
1725 string res; | |
1726 qtd_QInputDialog_getText_private_QWidget_string_string_EchoMode_string_nativepointerbool_WindowFlags(&res, _parent is null ? null : _parent.nativeId, title, label, echo, text, &ok, flags); | |
1727 return res; | |
1728 } | |
1729 }// class |