Skip to content
Permalink
Browse files

ui cleanup in newogrconnection to buttonbox

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11995 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
macho
macho committed Nov 8, 2009
1 parent 9d252c8 commit 6cd290d447a4ec27755d4e54845a49f7c3d16063
Showing with 495 additions and 498 deletions.
  1. +7 −10 src/app/ogr/qgsnewogrconnection.cpp
  2. +2 −3 src/app/ogr/qgsnewogrconnection.h
  3. +486 −485 src/ui/qgsoptionsbase.ui
@@ -34,6 +34,7 @@ QgsNewOgrConnection::QgsNewOgrConnection( QWidget *parent, const QString& connTy
: QDialog( parent, fl )
{
setupUi( this );
connect( buttonBox, SIGNAL( helpRequested() ),this,SLOT( help() ) );
//add database drivers
QStringList dbDrivers = QgsProviderRegistry::instance()->databaseDrivers().split( ";" );
for ( int i = 0;i < dbDrivers.count();i++ )
@@ -105,21 +106,16 @@ void QgsNewOgrConnection::saveConnection()
settings.setValue( baseKey + "/username", txtUsername->text() );
settings.setValue( baseKey + "/password", chkStorePassword->isChecked() ? txtPassword->text() : "" );
settings.setValue( baseKey + "/save", chkStorePassword->isChecked() ? "true" : "false" );
accept();
}

void QgsNewOgrConnection::helpInfo()
{
QgsContextHelp::run( context_id );
}

/** Autoconnected SLOTS **/
void QgsNewOgrConnection::on_btnOk_clicked()
void QgsNewOgrConnection::accept()
{
saveConnection();
QDialog::accept();
}

void QgsNewOgrConnection::on_btnHelp_clicked()
void QgsNewOgrConnection::help()
{
helpInfo();
}
@@ -129,10 +125,11 @@ void QgsNewOgrConnection::on_btnConnect_clicked()
testConnection();
}

void QgsNewOgrConnection::on_btnCancel_clicked()
void QgsNewOgrConnection::helpInfo()
{
reject();
QgsContextHelp::run( context_id );
}

/** end Autoconnected SLOTS **/


@@ -40,9 +40,8 @@ class QgsNewOgrConnection : public QDialog, private Ui::QgsNewOgrConnectionBase
//! Display the context help
void helpInfo();
public slots:
void on_btnOk_clicked();
void on_btnCancel_clicked();
void on_btnHelp_clicked();
void accept();
void help();
void on_btnConnect_clicked();
private:
static const int context_id = 63428984;

0 comments on commit 6cd290d

Please sign in to comment.
You can’t perform that action at this time.