Пример #1
0
OptionsDialog::OptionsDialog(ModelsRepository * provider, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::OptionsDialog), _modelsProvider(provider)
{
    ui->setupUi(this);

    setupModels();
    setupConnections();
    setupGeneralSettings();
    ui->pageSelectionWidget->setCurrentRow(0);
    ui->buttonBox->button(QDialogButtonBox::Apply)->setEnabled(false);
}
Пример #2
0
void testApp::setupGui(){
    
    tabBarWidth = 320;
    tabBarHeight = 120;
    
    isSettingsGui = true;
    isDisplayGui = true;
    
    setupGeneralSettings();
    setupZonePanels();
    setupDisplaySettings();
    
    dialog = new ofxUICanvas(0, 150, tabBarWidth, 100);
    dialog->setColorFill(ofxUIColor(200));
    dialog->setColorFillHighlight(ofxUIColor(255));
    dialog->setColorBack(ofxUIColor(20, 20, 20, 150));
    confLab = dialog->addLabel("CONFIRM");
    dialog->addLabelButton("OK", true);
    dialog->addLabelButton("CANCEL", true);
    dialog->setVisible(false);
    
    ofAddListener(dialog->newGUIEvent, this, &testApp::s0Events);
    
    fakeCanvas = new ofxUICanvas(ofGetWidth() - tabBarWidth, 450, tabBarWidth, 125);
    fakeCanvas->setColorFill(ofxUIColor(200));
    fakeCanvas->setColorFillHighlight(ofxUIColor(255));
    fakeCanvas->setColorBack(ofxUIColor(20, 20, 20, 150));
    
    fakeCanvas->addSlider("F_POS_X", -5, 5, m_kinectManager.getFakePos().x);
    fakeCanvas->addSlider("F_POS_Y", -2, 2, m_kinectManager.getFakePos().y);
    fakeCanvas->addSlider("F_POS_Z", 0, 10, m_kinectManager.getFakePos().z);
    
    ofAddListener(fakeCanvas->newGUIEvent,this,&testApp::fEvents);
    fakeCanvas->setVisible(false);
    
    
    synthCanvas = NULL;
    
    
}