コード例 #1
0
ファイル: CaGroup.cpp プロジェクト: haosir7/SKJ_FWSK_1.0000
void CaGroup::ReCreateFocusList()
{
	 if(!m_bFocusObjChanged)
	 {
// 		 DBG_PRN("info",("focus list needn't recreate !"));
		 return;
	 }
	 else
	 {
		m_bFocusObjChanged=false;
	 }

	 CaObject*const* a = FocusObjList();
	 if(m_pFocusList != NULL && m_iFocusObjCount > 1 )
	 {
		 free((void *)a);
	 }
	 m_iFocusObjCount=CalFocusObjCount();
	 int i=0,j=0;
	 if(m_iFocusObjCount >1 )
	 {
		 m_pFocusList=(CaObject**)malloc(m_iFocusObjCount*sizeof(CaObject*));
		 CaObject*const *b =ObjList();
		 for(i=0;i<ObjCount();i++)
		 {
			 if((*b)->m_bFocus) 
			 {
				m_pFocusList[j++]=*b;
			 }
			b++;
		 }
		 if(m_pCurObj== NULL )
		 {
			 m_pCurObj=m_pFocusList[0];
		 }
		 
	 }
	 else if(m_iFocusObjCount == 1)
	 {
		 CaObject*const *b =ObjList();
		 if(ObjCount() == 1)
		 {
			 m_pFocusList=(CaObject**)&(*b);
			 m_pCurObj=*b;
		 }
		 else
		 {
 			 for(i=0;i<ObjCount();i++)
			 {
				 if((*b)->m_bFocus) 
				 {
					 m_pFocusList=(CaObject**)&(*b);
					 m_pCurObj=*b;
					 break;
				 }
				b++;
			 }
		 }
	 }
}	 
コード例 #2
0
ファイル: CaGroup.cpp プロジェクト: haosir7/SKJ_FWSK_1.0000
void CaGroup::ClearRefreshFlag()
{
	CaObject*const* a = ObjList();
	int i; 
	for (i=0; i < m_iObjCount; i++) 
	{
		a[i]->ClearRefreshFlag();
	}
	m_bRefreshFlag=false;
}
コード例 #3
0
ファイル: CaGroup.cpp プロジェクト: haosir7/SKJ_FWSK_1.0000
int CaGroup::CalFocusObjCount()const
{
	CaObject*const* a = ObjList();
	int i=0,j=0; 
	for (i=0; i < m_iObjCount; i++)
	{
		 if((*a)->m_bFocus)j++;
		 a++;
	}
	return j;
}
コード例 #4
0
ファイル: CaGroup.cpp プロジェクト: haosir7/SKJ_FWSK_1.0000
bool CaGroup::GetRefreshFlag()
{
	CaObject*const* a = ObjList();
	int i; 
	for (i=0; i < m_iObjCount; i++) 
	{
		if( a[i]->GetRefreshFlag() )
		{
			m_bRefreshFlag=true;
			break;
		}
	}
	if (i == m_iObjCount)
	{
		m_bRefreshFlag = false;
	}
	return m_bRefreshFlag;
}
コード例 #5
0
ファイル: CaGroup.cpp プロジェクト: haosir7/SKJ_FWSK_1.0000
void CaGroup::Clear()
{
  CaObject*const* old_array = ObjList();
  int old_children = ObjCount();
  // clear everything now, in case 
  m_iObjCount = 0;
  m_pCurObj=NULL;
  // okay, now it is safe to destroy the children:
  CaObject*const* a = old_array;
  for (int i=old_children; i--;) { //if i == 0 break
    CaObject* o = *a++;
    if (o->m_pOwner == this && o != NULL )
	{
		o->m_pOwner=NULL; 
		delete o;
		o=NULL;
	};
  }
  if (old_children > 1) free((void*)old_array);	
  m_bFocusObjChanged=true;
}
コード例 #6
0
ファイル: CaGroup.cpp プロジェクト: haosir7/SKJ_FWSK_1.0000
int  CaGroup::ReFresh(void)
{
	CaObject*const* a = ObjList();
	int i; 
	ClearDisp();
	DrawBox();
	for (i=0; i < m_iObjCount; i++) 
	{
		if(a[i]->m_Visible)
			a[i]->ReFresh();
	}
	if(m_pCurObj != NULL )
	{
		if(this->m_iType >= CA_PAGE )
		{
			m_pCurObj->SetFocus();
		}
	}

	return 1;
}
コード例 #7
0
int Domain::NamedObject::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: CS_Set((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 1: CS_Set((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 2: CS_SetBack((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 3: CS_Begin((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 4: CS_Begin((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 5: CS_End((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 6: CS_Discard((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 7: CS_Timeout((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 8: CS_Exec((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
        case 9: CS_Exec((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 10: CS_Print((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 11: CS_Print((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 12: CS_Exit((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 13: CS_Info((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1]))); break;
        case 14: ObjCreate((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4]))); break;
        case 15: ObjCreate((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
        case 16: ObjCreate((*reinterpret_cast< DRI::ISessionCmdContext*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 17: ObjDelete((*reinterpret_cast< DRI::IAsyncCmd*(*)>(_a[1]))); break;
        case 18: ObjList((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 19: ObjList((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 20: ObjList((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1]))); break;
        case 21: ObjView((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
        case 22: ObjView((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 23: ObjView((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1]))); break;
        case 24: MetaMethods((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
        case 25: MetaMethods((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 26: MetaMethods((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1]))); break;
        case 27: MetaFields((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
        case 28: MetaFields((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 29: MetaFields((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1]))); break;
        case 30: MetaEnums((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
        case 31: MetaEnums((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 32: MetaEnums((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1]))); break;
        case 33: MetaTypeInfo((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 34: MetaTypeInfo((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2]))); break;
        case 35: MetaTypeInfo((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1]))); break;
        case 36: MetaTypes((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4]))); break;
        case 37: MetaTypes((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 38: MetaTypes((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 39: MetaTypes((*reinterpret_cast< DRI::ICmdOutput*(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 40;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = LogLevelDri(); break;
        }
        _id -= 1;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: LogLevelDri(*reinterpret_cast< int*>(_v)); break;
        }
        _id -= 1;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 1;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 1;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}