本文整理汇总了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();
}
示例2: optionsClicked
void CryptographicanomalyGUI::optionsClicked()
{
if(!clientModel || !clientModel->getOptionsModel())
return;
OptionsDialog dlg;
dlg.setModel(clientModel->getOptionsModel());
dlg.exec();
}
示例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());
}
}
示例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());
}
}
示例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();
}
示例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());
}
}
示例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));
}
}
示例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();
}
}
示例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;
}
示例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;
}
示例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();
}
}
示例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);
}
示例13: on_actionOptions_triggered
void MainWindow::on_actionOptions_triggered() {
OptionsDialog optDlg;
optDlg.exec();
}
示例14: OptionsDialog
void MainWindow::on_actionOptions_triggered()
{
OptionsDialog *dlg = new OptionsDialog(this);
dlg->show();
}
示例15: callback_optionsDialogTab
void callback_optionsDialogTab(Button* b)
{
OptionsDialog* o = (OptionsDialog*)b->GetParent();
o->Toggle(b->mId);
}