Beispiel #1
0
MLAppView* MLPageView::addPage(MLAppView* newPage)
{
	mPages.push_back(newPage);
	addChildComponent(newPage);
	newPage->setBounds(0, 0, getWidth(), getHeight());	

	int pageNum = mWidgets.size();
	addWidgetToView(newPage, MLRect(0, 0, getWidth(), getHeight()), ml::textUtils::addFinalNumber("page", pageNum));	
	return newPage;
}
Beispiel #2
0
MLAppView* MLPageView::addPage()
{
	MLAppView* newPage = new MLAppView(mpResponder, mpReporter);
    int pageNum = mPages.size();
    String pageStr = String("page") + String(pageNum);
    newPage->setName(pageStr);
    
    // //debug() << "ADDING page " << pageStr << "\n";
	mPages.push_back(newPage);
	addChildComponent(newPage);
	newPage->setBounds(0, 0, getWidth(), getHeight());	
	addWidgetToView(newPage, MLRect(0, 0, getWidth(), getHeight()), ml::textUtils::addFinalNumber("page", pageNum));
	return newPage;
}
Beispiel #3
0
MLEnvelope* MLPluginView::addEnvelope(const MLRect & r, const MLSymbol paramName)
{
	MLEnvelope * pE = new MLEnvelope();
    
	const std::string paramStr = paramName.getString();
	addPropertyView(MLSymbol(paramStr + "_delay"), pE, MLSymbol("delay"));
	addPropertyView(MLSymbol(paramStr + "_attack"), pE, MLSymbol("attack"));
	addPropertyView(MLSymbol(paramStr + "_decay"), pE, MLSymbol("decay"));
	addPropertyView(MLSymbol(paramStr + "_sustain"), pE, MLSymbol("sustain"));
	addPropertyView(MLSymbol(paramStr + "_release"), pE, MLSymbol("release"));
	addPropertyView(MLSymbol(paramStr + "_repeat"), pE, MLSymbol("repeat"));
	
	addWidgetToView(pE, r, paramName);
	return(pE);
}
Beispiel #4
0
MLPluginView* MLPluginView::addSubView(const MLRect & r, const MLSymbol name)
{
	MLPluginView* b = new MLPluginView(getProcessor(), mpController);
	addWidgetToView(b, r, name);
	return b;
}