Exemple #1
0
void radeon_profile::on_graphColorsList_itemDoubleClicked(QTreeWidgetItem *item, int column)
{
    QColor c = QColorDialog::getColor(item->backgroundColor(1));
    if (c.isValid()) {
        item->setBackgroundColor(1,c);
        // apply colors
        setupGraphsStyle();
    }
}
//===================================
// === GUI setup functions === //
void radeon_profile::setupGraphs()
{
    ui->plotClocks->yAxis->setRange(startClocksScaleL,startClocksScaleH);
    ui->plotVolts->yAxis->setRange(startVoltsScaleL,startVoltsScaleH);

    ui->plotTemp->xAxis->setLabel(tr("Time (s)"));
    ui->plotTemp->yAxis->setLabel(tr("Temperature (°C)"));
    ui->plotClocks->xAxis->setLabel(tr("Time (s)"));
    ui->plotClocks->yAxis->setLabel(tr("Clock (MHz)"));
    ui->plotVolts->xAxis->setLabel(tr("Time (s)"));
    ui->plotVolts->yAxis->setLabel(tr("Voltage (mV)"));
    ui->plotTemp->xAxis->setTickLabels(false);
    ui->plotClocks->xAxis->setTickLabels(false);
    ui->plotVolts->xAxis->setTickLabels(false);

    ui->plotTemp->addGraph(); // temp graph
    ui->plotClocks->addGraph(); // core clock graph
    ui->plotClocks->addGraph(); // mem clock graph
    ui->plotClocks->addGraph(); // uvd
    ui->plotClocks->addGraph(); // uvd
    ui->plotVolts->addGraph(); // volts gpu
    ui->plotVolts->addGraph(); // volts mem

    ui->plotFanProfile->addGraph();
    ui->plotFanProfile->yAxis->setRange(0,100);
    ui->plotFanProfile->xAxis->setRange(0,110);
    ui->plotFanProfile->xAxis->setLabel(tr("Temperature"));
    ui->plotFanProfile->yAxis->setLabel(tr("Fan speed"));

    setupGraphsStyle();

    // legend clocks //
    ui->plotClocks->graph(0)->setName(tr("GPU clock"));
    ui->plotClocks->graph(1)->setName(tr("Memory clock"));
    ui->plotClocks->graph(2)->setName(tr("UVD core clock (cclk)"));
    ui->plotClocks->graph(3)->setName(tr("UVD decoder clock (dclk)"));
    ui->plotClocks->axisRect()->insetLayout()->setInsetAlignment(0, Qt::AlignTop|Qt::AlignLeft);
    ui->plotClocks->legend->setVisible(true);

    ui->plotVolts->graph(0)->setName(tr("GPU voltage (vddc)"));
    ui->plotVolts->graph(1)->setName(tr("I/O voltage (vddci)"));
    ui->plotVolts->axisRect()->insetLayout()->setInsetAlignment(0,Qt::AlignTop|Qt::AlignLeft);
    ui->plotVolts->legend->setVisible(true);

    ui->plotClocks->replot();
    ui->plotTemp->replot();
    ui->plotVolts->replot();
}
//===================================
// === GUI setup functions === //
void radeon_profile::setupGraphs()
{
    ui->plotColcks->yAxis->setRange(startClocksScaleL,startClocksScaleH);
    ui->plotVolts->yAxis->setRange(startVoltsScaleL,startVoltsScaleH);

    ui->plotTemp->xAxis->setLabel("time");
    ui->plotTemp->yAxis->setLabel("temperature");
    ui->plotColcks->xAxis->setLabel("time");
    ui->plotColcks->yAxis->setLabel("MHz");
    ui->plotVolts->xAxis->setLabel("time");
    ui->plotVolts->yAxis->setLabel("mV");
    ui->plotTemp->xAxis->setTickLabels(false);
    ui->plotColcks->xAxis->setTickLabels(false);
    ui->plotVolts->xAxis->setTickLabels(false);

    ui->plotTemp->addGraph(); // temp graph
    ui->plotColcks->addGraph(); // core clock graph
    ui->plotColcks->addGraph(); // mem clock graph
    ui->plotColcks->addGraph(); // uvd
    ui->plotColcks->addGraph(); // uvd
    ui->plotVolts->addGraph(); // volts gpu
    ui->plotVolts->addGraph(); // volts mem

    ui->plotFanProfile->addGraph();
    ui->plotFanProfile->yAxis->setRange(0,100);
    ui->plotFanProfile->xAxis->setRange(0,110);
    ui->plotFanProfile->xAxis->setLabel("Temperature");
    ui->plotFanProfile->yAxis->setLabel("Fan speed [%]");

    setupGraphsStyle();

    // legend clocks //
    ui->plotColcks->graph(0)->setName("GPU clock");
    ui->plotColcks->graph(1)->setName("Memory clock");
    ui->plotColcks->graph(2)->setName("Video core clock");
    ui->plotColcks->graph(3)->setName("Decoder clock");
    ui->plotColcks->axisRect()->insetLayout()->setInsetAlignment(0, Qt::AlignTop|Qt::AlignLeft);
    ui->plotColcks->legend->setVisible(true);

    ui->plotVolts->graph(0)->setName("GPU voltage");
    ui->plotVolts->graph(1)->setName("Memory voltage");
    ui->plotVolts->axisRect()->insetLayout()->setInsetAlignment(0,Qt::AlignTop|Qt::AlignLeft);
    ui->plotVolts->legend->setVisible(true);

    ui->plotColcks->replot();
    ui->plotTemp->replot();
    ui->plotVolts->replot();
}
Exemple #4
0
void radeon_profile::on_spin_lineThick_valueChanged(int arg1)
{
    setupGraphsStyle();
}