Example #1
0
void BitcoinGUI::optionsClicked()
{
    if(!clientModel || !clientModel->getOptionsModel())
        return;
    OptionsDialog dlg;
    dlg.setModel(clientModel->getOptionsModel());
    dlg.exec();
}
void CryptographicanomalyGUI::optionsClicked()
{
    if(!clientModel || !clientModel->getOptionsModel())
        return;
    OptionsDialog dlg;
    dlg.setModel(clientModel->getOptionsModel());
    dlg.exec();
}
Example #3
0
void MainWindow::showOptionsDialog()
{
    if (OptionsDialog::isDialogCreated())
        return;

    OptionsDialog *dlg = new OptionsDialog(m_serverRepository, this);
    dlg->setAttribute(Qt::WA_DeleteOnClose);
    dlg->show();
}
Example #4
0
void Controls::on_actionComponent_triggered()
{
    OptionsDialog *od = new OptionsDialog(m_model->fullPath(), m_model->components(), this);
    od->setAttribute(Qt::WA_DeleteOnClose);
    int result = od->exec();
    if (result == QDialog::Accepted)
    {
        emit openFile(m_model->fullPath());
    }
}
void MainFrame::OnAppOptions(wxCommandEvent& event){

	OptionsDialog optionsDialog;
	optionsDialog.SetAppOptions(&m_appOptions);
	optionsDialog.Create(this);

	if (optionsDialog.ShowModal() == wxID_OK) {
		m_appOptions.SaveAppOptions();
		m_raceAnalyzerComm.SetSerialPort(m_appOptions.GetSerialPort());
	}
}
Example #6
0
void NewFileDialog::on_recentsList_itemDoubleClicked(QListWidgetItem *item)
{
    // Get selected item to send to options dialog
    QVariant data = item->data( Qt::UserRole );
    QString sitem = data.toString();
    // Close dialog and open OptionsDialog
    close();
    OptionsDialog* o = new OptionsDialog(nullptr);
    o->setFilename (sitem, this->strippedName(sitem));
    o->exec();
}
/*----------------------------------------------------------------------------*/
void MeasureWindow::onOptions()
{
  OptionsDialog dlg;
  if(dlg.exec() == QDialog::Accepted)
  {
    ui->retranslateUi(this);
    disconnect(database, SIGNAL(dbError(QString)));
    connect(database, SIGNAL(dbError(QString)), this, SLOT(onDatabaseError()));
    onProfileChanged(ui->profileCombo->currentIndex());
    onStatusChanged(controller->status());
  }
}
Example #8
0
void VAutoDialog::DoInvokeOptionsDialog(void)
{
	wxString mountType = Properties::Instance().Get(MOUNT_TYPE);
	wxString mountPort = Properties::Instance().Get(MOUNT_PORT);
	wxString cameraType = Properties::Instance().Get(CAMERA_TYPE);
	wxString cameraPort = Properties::Instance().Get(CAMERA_PORT);
	wxString observationLogPath = Properties::Instance().Get (OBSERVATION_LOG_FOLDER);
	wxString isoSpeed = Properties::Instance().Get (CAMERA_ISO_SPEED);

	OptionsDialog *dlg = new OptionsDialog (this);
	int rv = dlg->ShowModal ();
	if (rv == wxID_OK) {
		Properties::Instance().Save(CONFIG_FILE);

		if (Properties::Instance().Get(MOUNT_TYPE) != mountType ||
			Properties::Instance().Get(MOUNT_PORT) != mountPort) {
			TelescopeFactory::Instance().ClearTelescope();
			m_telescope = TelescopeFactory::Instance().GetTelescope (
				Properties::Instance().Get(MOUNT_TYPE),
				Properties::Instance().Get(MOUNT_PORT));
			}

		bool newCamera = false;
		if (Properties::Instance().Get(CAMERA_TYPE) != cameraType ||
			Properties::Instance().Get(CAMERA_PORT) != cameraPort) {
//			CameraFactory::Instance().ClearCamera();
			wxDELETE (m_camera);
			m_camera = CameraFactory::Instance().GetCamera (
				Properties::Instance().Get(CAMERA_TYPE),
				Properties::Instance().Get(CAMERA_PORT));
			newCamera = true;
			}

		if (Properties::Instance().Get (OBSERVATION_LOG_FOLDER) != observationLogPath) {
			ObservationLog::Instance().SetPath (Properties::Instance().Get (OBSERVATION_LOG_FOLDER));
			}

		if (m_camera->HasFeature (Camera::DCP_CAN_SET_ISO_SPEED) && (newCamera || Properties::Instance().Get(CAMERA_ISO_SPEED) != isoSpeed)) {
			unsigned long iso = wxAtol (Properties::Instance().Get(CAMERA_ISO_SPEED));
			if (iso > 0)
				m_camera->SetIsoSpeed (iso);
			}

		SetDeviceText ();

		DoDisableControls (FALSE);

		m_LogWindow->Show (Properties::Instance().GetBool(DEBUG_LOG_WINDOW));
		}
}
Example #9
0
void ViewerWindow::dialogConnectionOptions()
{
	OptionsDialog dialog;

	dialog.setConnected();
	dialog.setConnectionConfig(m_conConf);
	// FIXME: Removed Control from this code and another
	Control control = getHWnd();
	dialog.setParent(&control);

	if (dialog.showModal() == 1) {
		m_conConf->saveToStorage(&m_ccsm);
		applySettings();
	}
}
Example #10
0
void NewFileDialog::on_loadFileButton_clicked()
{
    // Check that there is a file selected
    QString fname = ui->newFileEdit->text();
    if (fname.isEmpty()) {
        QMessageBox msgBox;
        msgBox.setText("Select a new program or a previous one\nbefore continue");
        msgBox.exec();
    } else {
        // Close dialog and open OptionsDialog
        close();
        OptionsDialog* o = new OptionsDialog(nullptr);
        o->setFilename (fname, this->strippedName(fname));
        o->exec();
    }
}
Example #11
0
BOOL LoginDialog::onOptions()
{
  OptionsDialog dialog;
  dialog.setConnectionConfig(&m_connectionConfig);
  dialog.setParent(getControl());
  if (dialog.showModal() == 1) {
    StringStorage server;
    m_server.getText(&server);
    if (server.isEmpty()) {
      ConnectionConfigSM ccsm(RegistryPaths::VIEWER_PATH,
                              server.getString());
      m_connectionConfig.saveToStorage(&ccsm);
    }
    return FALSE;
  }
  return TRUE;
}
Example #12
0
void findit_pi::ShowPreferencesDialog( wxWindow* parent )
{
	int buyNotemp = buyNo;
	int  toBuyZerotemp = toBuyZero;
	int lastRowDefaulttemp = lastRowDefault;

	OptionsDialog* dlg = new OptionsDialog(parent,this);

    wxColour cl;
    GetGlobalColor(_T("DILG1"), &cl);
    dlg->SetBackgroundColour(cl);

//	dlg->m_checkBoxShowLogbook->SetValue(m_bLOGShowIcon);

    if(dlg->ShowModal() == wxID_OK)
    {
        buyNo = dlg->m_radioBox11->GetSelection();
        toBuyZero = dlg->m_radioBox1->GetSelection();
        lastRowDefault = dlg->m_radioBox5->GetSelection();
        
        if((buyNo != buyNotemp) || (toBuyZero != toBuyZerotemp) || (lastRowDefault != lastRowDefaulttemp))
            if(m_pFindItWindow)
                m_pFindItWindow->reloadData();
        
        //    Show Icon changed value?
        if(m_bFINDITShowIcon != dlg->m_checkBoxFindItIcon->GetValue())
        {
            m_bFINDITShowIcon = dlg->m_checkBoxFindItIcon->GetValue();
            
            if(m_bFINDITShowIcon)
                m_leftclick_tool_id  = InsertPlugInTool(_T(""), _img_findit, _img_findit, wxITEM_NORMAL,
                                                        _("FindIt"), _T(""), NULL, FINDIT_TOOL_POSITION, 0, this);
            else
                RemovePlugInTool(m_leftclick_tool_id);
        }
        SaveConfig();
    }
    else
    {
        if(buyNo != buyNotemp || toBuyZero != toBuyZerotemp || lastRowDefault != lastRowDefaulttemp)
            if(m_pFindItWindow)
                m_pFindItWindow->reloadData();
	 }
	 delete dlg;
}
Example #13
0
void OptionsDialog::show() {
	OptionsDialog *dlg = new OptionsDialog();
	dlg->draw();

	// Show the dialog
	GfxButton *btn = dlg->execute();

	// Get which button was pressed
	int btnIndex = -1;
	if (btn == &dlg->_btnRestore)
		btnIndex = 0;
	else if (btn == &dlg->_btnSave)
		btnIndex = 1;
	else if (btn == &dlg->_btnRestart)
		btnIndex = 2;
	else if (btn == &dlg->_btnQuit)
		btnIndex = 3;
	else if (btn == &dlg->_btnSound)
		btnIndex = 4;

	// Close the dialog
	dlg->remove();
	delete dlg;

	// Execute the given selection
	if (btnIndex == 0) {
		// Restore button
		g_globals->_game->restoreGame();
	} else if (btnIndex == 1) {
		// Save button
		g_globals->_game->saveGame();
	} else if (btnIndex == 2) {
		// Restart game
		g_globals->_game->restartGame();
	} else if (btnIndex == 3) {
		// Quit game
		if (MessageDialog::show(QUIT_CONFIRM_MSG, CANCEL_BTN_STRING, QUIT_BTN_STRING) == 1) {
			g_vm->quitGame();
		}
	} else if (btnIndex == 4) {
		// Sound dialog
		SoundDialog::execute();
	}
}
Example #14
0
void StackFrameItem::filterStackFrame()
{
  OptionsDialog *pOptionsDialog = mpStackFramesTreeWidget->getStackFramesWidget()->getMainWindow()->getOptionsDialog();
  /* If file is not readable then disable the frame. */
  QFileInfo fileInfo(getFileName());
  if (Utilities::isCFile(fileInfo.suffix()) || !fileInfo.isReadable()) {
    setDisabled(true);
  } else {
    setDisabled(false);
  }
  /* check display of C Frames */
  if (!pOptionsDialog->getDebuggerPage()->getDisplayCFramesCheckBox()->isChecked()) {
    if (Utilities::isCFile(fileInfo.suffix())) {
      setHidden(true);
      return;
    }
  }
  if (!pOptionsDialog->getDebuggerPage()->getDisplayUnknownFramesCheckBox()->isChecked()) {
    if (!(Utilities::isModelicaFile(fileInfo.suffix()) && Utilities::isCFile(fileInfo.suffix()))) {
      setHidden(true);
    }
  }
  setHidden(false);
}
Example #15
0
void MainWindow::on_actionOptions_triggered() {
    OptionsDialog optDlg;
    optDlg.exec();
}
Example #16
0
void MainWindow::on_actionOptions_triggered()
{
    OptionsDialog *dlg = new OptionsDialog(this);
    dlg->show();
}
Example #17
0
void callback_optionsDialogTab(Button* b)
{
	OptionsDialog* o = (OptionsDialog*)b->GetParent();
	o->Toggle(b->mId);
}
Example #18
0
void MainDialog::on_btnOptions_clicked()
{
    OptionsDialog *od = new OptionsDialog(this);
    od->exec();
}
Example #19
0
void BrailleMusicEditor::showOptions() {
  OptionsDialog optionsDialog;
  int retval = optionsDialog.exec();
  if (retval == QDialog::Accepted) { optionsDialog.saveSettings(); }
}
Example #20
0
int main( int argc, char ** argv )
{
    QApplication a( argc, argv );
    OptionsDialog dlg;
    return dlg.exec();
}
Example #21
0
void MainWindow::view_options_dialog()
{
    OptionsDialog* dialog = new OptionsDialog(commuter->options);
    dialog->show();
}
Example #22
0
static pascal OSStatus optionsDialogWindowHandler(EventHandlerCallRef inRef, EventRef inEvent, void* userData) {
	OptionsDialog* theOptionsDialog;
	theOptionsDialog = OptionsDialog::getOptionsDialog();
	theOptionsDialog->handleEvent(inRef, inEvent, userData);
	return noErr;
}
Example #23
0
void QucsTranscalc::slotOptions()
{
  OptionsDialog *d = new OptionsDialog(this);
  d->show();
}
Example #24
0
void BitcoinGUI::optionsClicked()
{
    OptionsDialog dlg;
    dlg.setModel(model->getOptionsModel());
    dlg.exec();
}
Example #25
0
void callback_optionsDialogSave(Button* b)
{
	OptionsDialog* o = (OptionsDialog*)b->GetParent();
	o->Save();
	o->Die();
}