Exemplo n.º 1
0
void COptionsPage2::OnChange() 
{
    switch( m_wndComponentList.GetCurSel() )
    {
        case 0: ChangeFont( "Output", "Font", "MS Sans Serif", -10 ); break;
        case 1: ChangeColour( "Output", "BkColour", GetSysColor(COLOR_WINDOW) ); break; 
        case 2: ChangeColour( "Output", "TxColour", GetSysColor(COLOR_WINDOWTEXT) ); break;
        case 3: ChangeFont( "Sheet", "UserText", "Comic Sans MS" ); break;
        case 4: ChangeColour( "Sheet", "UserTextcolour", RGB(0,0,128) ); break;
        case 5: ChangeFont( "Edit", "Font", "Courier", 15 ); break;
    }
}
Exemplo n.º 2
0
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    m_gl=new GLWindow(ui->s_GLFrame);
    connect(ui->m_rotX, SIGNAL(valueChanged(int)),  this,   SLOT(RotateGL()));
    connect(ui->m_rotY, SIGNAL(valueChanged(int)),  this,   SLOT(RotateGL()));
    connect(ui->m_rotZ, SIGNAL(valueChanged(int)),  this,   SLOT(RotateGL()));
    connect(ui->m_objectChoice,SIGNAL(currentIndexChanged(int)),this,SLOT(SetObject(int)));
    connect(ui->m_scale,SIGNAL(valueChanged(double)),this,SLOT(SetScale(double)));
    connect(ui->m_color,SIGNAL(clicked()),this,SLOT(ChangeColour()));
    connect(ui->m_wireFrame,SIGNAL(clicked()),this,SLOT(ChangeDrawMode()));

    setFocusPolicy(Qt::StrongFocus);


}