Example #1
0
 void newComposition(CompositionInfo *compositionInfo) {
     curComposition = new Composition(compositionInfo);
     curComposition->setY(trackToolBar->height);
     curComposition->width = width;
     add_event_on(curComposition, VsEvent::CHANGED, onChangeHeight);
     addChildAt(curComposition, 0);
     _comps.push_back(curComposition);
 }
Example #2
0
void ProjectNode::createBinFileHeaderNode()
{
    if(binFileHeaderNode)
        return;
    binFileHeaderNode = new BinaryFileHeaderNode();
    // Should be at second position
    int id = qMin(1,childrenCount());
    addChildAt(binFileHeaderNode,id);
}
Example #3
0
void ProjectNode::createSrcFileHeaderNode()
{
    if(srcFileHeaderNode)
        return;

    srcFileHeaderNode = new SourceFileHeaderNode();
    //SourceFileNode should be first child:add at beginning
    addChildAt(srcFileHeaderNode,0);
}
Example #4
0
    void onShowComposition(void *e) {
        CompositionInfo *compositionInfo = get_paylaod(CompositionInfo);

        if (curComposition->getCompInfoIdx() == compositionInfo->idx) {

        }
        else {
            curComposition->visible = false;
            removeChild(curComposition);
            curComposition = _comps.at(compositionInfo->idx);
            curComposition->visible = true;
            curComposition->width = width;
            addChildAt(curComposition,0);
        }
    }
void BasicScreenObject::moveChildToBottom(BasicScreenObject* _child){
	removeChild(_child);
	addChildAt(_child, 0);
}
Example #6
0
	// Adds DisplayObject as child at the above all other views
	void DisplayObject::addChild(DisplayObject * displayObject)
	{
		addChildAt(displayObject, numChildren());
	}