Esempio n. 1
0
 void releaseParent_pp() {
   super.releaseParent_pp();
   if (cascade != null) cascade.setMenu(null);
   if ((style & SWT.BAR) != 0 && this == parent.menuBar) {
     parent.setMenuBar(null);
   }
 }
Esempio n. 2
0
 void releaseHandle() {
   if (handle != 0) OS.GCHandle_Free(handle);
   handle = 0;
   if (imageHandle != 0) OS.GCHandle_Free(imageHandle);
   imageHandle = 0;
   super.releaseHandle();
 }
Esempio n. 3
0
 void releaseWidget() {
   super.releaseWidget();
   parent = null;
   text = null;
   styles = null;
   ranges = null;
 }
Esempio n. 4
0
 void releaseChildren_pp(boolean destroy) {
   MenuItem[] items = getItems();
   for (int i = 0; i < items.length; i++) {
     MenuItem item = items[i];
     if (item != null && !item.isDisposed()) {
       item.release(false);
     }
   }
   super.releaseChildren_pp(destroy);
 }
Esempio n. 5
0
 void hookEvents_pp() {
   super.hookEvents_pp();
   if ((style & SWT.BAR) == 0) {
     int aboutToHideProxy = OS.SignalHandler_new(handle, OS.QSIGNAL_ABOUTTOHIDE);
     OS.QObject_connectOrThrow(
         handle, "aboutToHide()", aboutToHideProxy, "widgetSignal()", OS.QT_AUTOCONNECTION);
     int aboutToShowProxy = OS.SignalHandler_new(handle, OS.QSIGNAL_ABOUTTOSHOW);
     OS.QObject_connectOrThrow(
         handle, "aboutToShow()", aboutToShowProxy, "widgetSignal()", OS.QT_AUTOCONNECTION);
   }
 }
Esempio n. 6
0
 void releaseWidget() {
   super.releaseWidget();
   parent = null;
   rectangles = proportions = null;
   bounds = null;
 }
Esempio n. 7
0
 void releaseWidget_pp() {
   super.releaseWidget_pp();
   if (parent != null) parent.removeMenu(this);
   parent = null;
   cascade = null;
 }
Esempio n. 8
0
 void createWidget(int index) {
   checkOrientation(parent);
   super.createWidget(index);
   parent.addMenu(this);
 }
Esempio n. 9
0
 void releaseWidget() {
   super.releaseWidget();
   parent = null;
   image = null;
   font = null;
 }
Esempio n. 10
0
 void releaseParent() {
   super.releaseParent();
   if (this == parent.getCaret()) parent.setCaret(null);
 }