void QgsOracleSelectGeoraster::connectToServer() { if ( cmbConnections->currentText().isEmpty() ) return; QSettings settings; QString key = "/Oracle/connections/" + cmbConnections->currentText(); QString username = settings.value( key + "/username" ).toString(); QString password = settings.value( key + "/password" ).toString(); QString savepass = settings.value( key + "/savepass" ).toString(); QString database = settings.value( key + "/database" ).toString(); QString subdtset = settings.value( key + "/subdtset" ).toString(); bool makeConnection = true; if ( savepass == "false" ) { makeConnection = false; QString password = QInputDialog::getText( this, tr( "Password for %1/<password>@%2" ).arg( username ).arg( database ), tr( "Please enter your password:"******"/Oracle/connections/selected", cmbConnections->currentText() ); showSelection( subdtset ); lineEdit->setText( subdtset ); } }
void QgsOracleSelectGeoraster::on_listWidget_clicked( const QModelIndex& Index ) { Q_UNUSED( Index ); if ( lineEdit->text() == listWidget->currentItem()->text() ) { showSelection( lineEdit->text() ); } else { lineEdit->setText( listWidget->currentItem()->text() ); } }
void CInfoBar::clickLeft(tribool down, bool previousState) { if (down) { if (state == HERO || state == TOWN) showGameStatus(); else if (state == GAME) showDate(); else showSelection(); } }
void Advanced::prepareUi() { Selection *s = new Selection(this); connect(ui->actionOpen, SIGNAL(triggered()), this, SLOT(openRaster())); connect(ui->actionSave_Reprojection, SIGNAL(triggered()), this, SLOT(saveReprojection())); connect(ui->actionSelection_Screen, SIGNAL(triggered()), s, SLOT(showSelection())); connect(ui->actionSelection_Screen, SIGNAL(triggered()), this, SLOT(close())); connect(ui->actionExit, SIGNAL(triggered()), this, SLOT(close())); connect(ui->actionLoad_Projection_Info, SIGNAL(triggered()), this, SLOT(loadParams())); connect(ui->actionSave_Projection_Info, SIGNAL(triggered()), this, SLOT(saveParams())); connect(ui->actionToggle_Preview, SIGNAL(triggered()), this, SLOT(togglePreview())); connect(ui->actionAbout_dRasterBlaster, SIGNAL(triggered()), s, SLOT(about())); connect(ui->actionAbout_Qt, SIGNAL(triggered()), s, SLOT(aboutQt())); connect(ui->actionEdit_Author, SIGNAL(triggered()), s, SLOT(showEditAuthor())); connect(ui->actionUser_Guide, SIGNAL(triggered()), s, SLOT(showUserGuide())); connect(ui->fillEnable, SIGNAL(stateChanged(int)), this, SLOT(fillEnable(int))); connect(ui->noDataValueEnable, SIGNAL(stateChanged(int)), this, SLOT(noDataEnable(int))); //Validators QIntValidator *intValid = new QIntValidator(this); intValid->setBottom(0); QDoubleValidator *doubleValid = new QDoubleValidator(this); doubleValid->setNotation(QDoubleValidator::StandardNotation); doubleValid->setBottom(0.0); ui->Rows->setValidator(intValid); ui->Cols->setValidator(intValid); ui->FillValue->setValidator(intValid); ui->noDataValue->setValidator(intValid); ui->pixelSize->setValidator(doubleValid); //projections p; //p.callGenerate(_UTM); //ui->tabProjectionInfo->setLayout(p.projVLayout); }
void CInfoBar::tick() { removeUsedEvents(TIME); showSelection(); }