Пример #1
0
//---------------------------------------------
void ofxControlPanel::setWhichPanel(string panelName){
    for(int i = 0; i < (int) panels.size(); i++){
        if( panels[i]->name == panelName){
            setWhichPanel(i);
            setWhichColumn(0);
            return;
        }
    }
}
//---------------------------------------------
void ofxControlPanel::setWhichPanel(int whichPanel){
    if( whichPanel < 0 || whichPanel >= (int) panels.size() )return;
    currentPanel = whichPanel;
    setWhichColumn(0);
}
Пример #3
0
//---------------------------------------------
void ofxLabGui::setWhichGroup(int whichGroup){
	if( panels[currentPanel]->groups.size() <= 0 || whichGroup >= panels[currentPanel]->groups.size() )return;
    currentGroup = whichGroup;
	panels[currentPanel]->currentGroup = whichGroup;
    setWhichColumn(0);
}
Пример #4
0
//---------------------------------------------
void ofxLabGui::setWhichPanel(int whichPanel){
    if( whichPanel < 0 || whichPanel >= panels.size() )return;
    currentPanel = whichPanel;
    setWhichColumn(0);
}