/** * コンストラクタ */ TJSObject::TJSObject(HSQUIRRELVM v, int idx, tTJSVariant &instance) : instance(instance) { initSelf(v, idx); iTJSDispatch2 *objthis = instance.AsObjectNoAddRef(); // TJSインスタンスにネイティブインスタンスとして登録しておく iTJSNativeInstance *ninstance = this; objthis->NativeInstanceSupport(TJS_NIS_REGISTER, classId, &ninstance); // callSQ メソッド登録 tCallSQFunction *callSQ = new tCallSQFunction(); if (callSQ) { tTJSVariant val(callSQ, objthis); objthis->PropSet(TJS_MEMBERENSURE, TJS_W("callSQ"), NULL, &val, objthis); callSQ->Release(); } // missing メソッド登録 tMissingFunction *missing = new tMissingFunction(); if (missing) { tTJSVariant val(missing, objthis); const tjs_char *missingName = TJS_W("missing"); objthis->PropSet(TJS_MEMBERENSURE, missingName, NULL, &val, objthis); missing->Release(); // missing 有効化 tTJSVariant name(missingName); objthis->ClassInstanceInfo(TJS_CII_SET_MISSING, 0, &name); } }
void QSFieldView::setAll(FieldContainerPtr pFC, UInt32 uiFieldId, UInt32 uiAspect) { endEdit(); delete _pLabel; delete _pEditor; Inherited::setAll(pFC, uiFieldId, uiAspect); initSelf(); }
QSFieldView::QSFieldView(FieldContainerPtr pFC, UInt32 uiFieldId, UInt32 uiAspect, QWidget *parent, const char *name ) : Inherited(pFC, uiFieldId, uiAspect, parent, name), _pLabel (NULL ), _pEditor (NULL ) { setBackgroundMode(NoBackground); initSelf(); }
void QMFieldView::setAll(FieldContainerPtr pFC, UInt32 uiFieldId, UInt32 uiAspect) { endEdit(); deleteAllLabels(); delete _pEditor; Inherited::setAll(pFC, uiFieldId, uiAspect); initSelf (); initScrollbar(); _bContentsChanged = true; }
void QSFieldView::setAspect(UInt32 uiAspect) { if(uiAspect == getAspect()) return; endEdit(); delete _pLabel; delete _pEditor; Inherited::setAspect(uiAspect); initSelf(); }
void QSFieldView::setFieldId(UInt32 uiFieldId) { if(uiFieldId == getFieldId()) return; endEdit(); delete _pLabel; delete _pEditor; Inherited::setFieldId(uiFieldId); initSelf(); }
void QSFieldView::setFieldContainer(FieldContainerPtr pFC) { if(pFC == getFieldContainer()) return; endEdit(); delete _pLabel; delete _pEditor; Inherited::setFieldContainer(pFC); initSelf(); }
void QMFieldView::setAspect(UInt32 uiAspect) { if(uiAspect == getAspect()) return; endEdit(); deleteAllLabels(); delete _pEditor; Inherited::setAspect(uiAspect); initSelf (); initScrollbar(); _bContentsChanged = true; }
void QMFieldView::setFieldContainer(FieldContainerPtr pFC) { if(pFC == getFieldContainer()) return; endEdit(); deleteAllLabels(); delete _pEditor; Inherited::setFieldContainer(pFC); initSelf (); initScrollbar(); _bContentsChanged = true; }
QMFieldView::QMFieldView(FieldContainerPtr pFC, UInt32 uiFieldId, UInt32 uiAspect, QWidget *parent, const char *name ) : Inherited (pFC, uiFieldId, uiAspect, parent, name), _pScrollbar (NULL ), _pEditor (NULL ), _poolLabels ( ), _usedLabels ( ), _bContentsChanged(true ), _uiBeginIndex (0 ), _uiEndIndex (0 ) { initSelf (); initScrollbar(); connect(_pScrollbar, SIGNAL(valueChanged(int)), this, SLOT (onSBValueChanged(int))); }
QInt32Editor::QInt32Editor(QWidget *pParent, const char *name) : Inherited (pParent, name), _editHelper(this ) { initSelf(); }