<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;"><br></div>Hi Marco:<br><br>> >thinking in usability it will be better if we<br>> >could add multiple database layers without needing to close and reopen <br>> QGgsDbSourceSelect<br>> <br>> It is possible to add multiple tables from one database by selecting and <br>> holding the ctrl key pressed. Or do you mean to add layers from multiple <br>> databases with one dialog? If yes, how do you intend to change the gui <br>> elements in the dialog?<br><br>I was thinking to create the selected layers of one database when pressing the<br>add button in QGgsDbSourceSelect. Because the gui elements of dialog will be<br>the same to postgres databases and ogr databases, I was also thinking in add<br>a disconnect button to close the actual connection being able to choose another<br>connection, maybe of different type and populate again the list of tables, being<br>possible to add another set of tables without closing the dialog.<br> <br>> >What do you think about this change, or it could be better to add the code to <br>> manage ogr database layers<br>> >in QgisApp::addDatabaseLayer()?<br>> <br>> Maybe QgsDbSourceSelect should just give back a list of urls and provider <br>> strings and QgisApp::addDatabaseLayer() just create the vector layers with <br>> this information. That way, the assembly of the database urls for postgres- <br>> or ogr-database layers could happen inside QGgsDbSourceSelect class. Does <br>> that make sense?<br>> <br>This is the how postgres vector is added actually.<br><br><br /><hr />Peek-a-boo FREE Tricks & Treats for You! <a href='http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us' target='_new'>Get 'em!</a></body>
</html>