当前位置: 首页>>代码示例>>C++>>正文


C++ OptionsDialog类代码示例

本文整理汇总了C++中OptionsDialog的典型用法代码示例。如果您正苦于以下问题:C++ OptionsDialog类的具体用法?C++ OptionsDialog怎么用?C++ OptionsDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了OptionsDialog类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: optionsClicked

void BitcoinGUI::optionsClicked()
{
    if(!clientModel || !clientModel->getOptionsModel())
        return;
    OptionsDialog dlg;
    dlg.setModel(clientModel->getOptionsModel());
    dlg.exec();
}
开发者ID:prvicoin,项目名称:prvicoin1,代码行数:8,代码来源:bitcoingui.cpp

示例2: optionsClicked

void CryptographicanomalyGUI::optionsClicked()
{
    if(!clientModel || !clientModel->getOptionsModel())
        return;
    OptionsDialog dlg;
    dlg.setModel(clientModel->getOptionsModel());
    dlg.exec();
}
开发者ID:CryptographicAnomaly,项目名称:cryptographicanomaly,代码行数:8,代码来源:cryptographicanomalygui.cpp

示例3: OptionsDialog

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());
    }
}
开发者ID:slavablind91,项目名称:code,代码行数:10,代码来源:controls.cpp

示例4: OnAppOptions

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());
	}
}
开发者ID:autosportlabs,项目名称:RaceAnalyzer,代码行数:11,代码来源:raceAnalyzer.cpp

示例5: close

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();
}
开发者ID:probonopd,项目名称:iaito,代码行数:11,代码来源:newfiledialog.cpp

示例6: onOptions

/*----------------------------------------------------------------------------*/
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());
  }
}
开发者ID:olegyurchenko,项目名称:dda-control,代码行数:13,代码来源:measurewindow.cpp

示例7: OptionsDialog

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));
		}
}
开发者ID:kovihome,项目名称:VAuto,代码行数:50,代码来源:VAutoDialog.cpp

示例8: dialogConnectionOptions

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();
	}
}
开发者ID:Aliceljm1,项目名称:TightVNC-1,代码行数:15,代码来源:ViewerWindow.cpp

示例9: onOptions

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;
}
开发者ID:gwupe,项目名称:GwupeSupportScreen,代码行数:17,代码来源:LoginDialog.cpp

示例10: OptionsDialog

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;
}
开发者ID:CarCode,项目名称:Cocoa-OCPN,代码行数:45,代码来源:findit_pi.cpp

示例11: OptionsDialog

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();
	}
}
开发者ID:AReim1982,项目名称:scummvm,代码行数:44,代码来源:blueforce_dialogs.cpp

示例12: fileInfo

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);
}
开发者ID:hkiel,项目名称:OMEdit,代码行数:24,代码来源:StackFramesWidget.cpp

示例13: on_actionOptions_triggered

void MainWindow::on_actionOptions_triggered() {
    OptionsDialog optDlg;
    optDlg.exec();
}
开发者ID:xandroalmeida,项目名称:YAVC,代码行数:4,代码来源:mainwindow.cpp

示例14: OptionsDialog

void MainWindow::on_actionOptions_triggered()
{
    OptionsDialog *dlg = new OptionsDialog(this);
    dlg->show();
}
开发者ID:baz1,项目名称:TiffHDR,代码行数:5,代码来源:mainwindow.cpp

示例15: callback_optionsDialogTab

void callback_optionsDialogTab(Button* b)
{
	OptionsDialog* o = (OptionsDialog*)b->GetParent();
	o->Toggle(b->mId);
}
开发者ID:McManning,项目名称:fro_client,代码行数:5,代码来源:OptionsDialog.cpp


注:本文中的OptionsDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。