コード例 #1
0
// Apply button clicked
void mxpanelorientation::on_buttonApply_clicked()
{
    //read in plugin ID's
    if (ui->radioHorizontalPanel->isChecked()) {
        flipToHorizontal();
        system("sleep .5");
    }

    if (ui->radioVerticalPanel->isChecked()) {
        flipToVertical();
        system("sleep .5");
    }

    if (ui->radioDefaultPanel->isChecked()) {
        restoreDefaultPanel();
        system("sleep .5");
        whichPanel();
    }

    if (ui->radioRestoreBackup->isChecked()) {
        restoreBackup();
        system("sleep .5");
        whichPanel();
    }

    if (ui->radioBackupPanel->isChecked()) {
        backupPanel();
        message();
    }

    // reset gui

    setupUiSelections();

}
コード例 #2
0
// setup versious items first time program runs
void mxpanelorientation::setup()
{
    version = getVersion("mx-panel-orientation");
    this->setWindowTitle(tr("MX Panel Orientation"));
    this->adjustSize();
    whichPanel();
    setupUiSelections();

}
コード例 #3
0
// setup versious items first time program runs
void mxpanelorientation::setup()
{
    version = getVersion("mx-panel-orientation");
    this->setWindowTitle(tr("MX Panel Orientation"));
    this->adjustSize();
    ui->buttonApply->setEnabled(false);
    whichPanel();
    setupUiSelections();

}