// 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(); }
// 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(); }
// 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(); }