<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>I was looking into your patch for postgis dialog and I noticed that in qgsdbsourceselectbase.ui <br>the encoding combobox is missing. It wont be used anymore?<br><br>Regards<br>Godofredo Contreras<br><br><br><hr id="stopSpelling">&gt; From: marco.hugentobler@karto.baug.ethz.ch<br>&gt; To: qgis-developer@lists.qgis.org<br>&gt; Date: Sat, 29 Dec 2007 16:43:16 +0100<br>&gt; Subject: Re: [Qgis-developer] extensions to postgis dialog<br>&gt; <br>&gt; Hi all,<br>&gt; <br>&gt; Here is the patch that adds a tree view and options for table search to the <br>&gt; postgis dialog. Please test it and report bugs and/or comments.<br>&gt; <br>&gt; There are two new classes derived from Qt model in this patch. One is the base <br>&gt; model and the second one a proxy model that adds the capability of filtering <br>&gt; according to wildcard or regexp. <br>&gt; <br>&gt; cheers,<br>&gt; Marco<br>&gt; <br>&gt; Am Freitag 14 Dezember 2007 13:44:12 schrieb Marco Hugentobler:<br>&gt; &gt; Hi Godofredo and Tim,<br>&gt; &gt;<br>&gt; &gt; Thanks for your feedback. So I'll make a patch for svn head with the<br>&gt; &gt; proposed extensions.<br>&gt; &gt;<br>&gt; &gt; &gt; Could I suggest using Qt model/view for this - whever list become lone<br>&gt; &gt; &gt; I think the model / view approach will always be more efficient. It<br>&gt; &gt; &gt; also has QSortFilterProxModel by which you can easily add sorting and<br>&gt; &gt; &gt; filtering.<br>&gt; &gt;<br>&gt; &gt; This is a good idea. QSortFilterProxModel will certainly help me with<br>&gt; &gt; filtering.<br>&gt; &gt; Reading through the Qt documentation, the model/view concept seems to be a<br>&gt; &gt; very flexible way of accessing and displaying data. In a way, the qgis<br>&gt; &gt; vector data provider is also a model.<br>&gt; &gt;<br>&gt; &gt; &gt; I was going to suggest also that we create src/models and src/views<br>&gt; &gt; &gt; for any custom models and views we create.<br>&gt; &gt;<br>&gt; &gt; As models are always non-gui related and views are dialogs, would it make<br>&gt; &gt; sense to have src/core/models and src/app/views?<br>&gt; &gt;<br>&gt; &gt; &gt;I think is a good idea, but how could we deal with databases that donīt<br>&gt; &gt; &gt; use schemas<br>&gt; &gt; &gt;like mysql? maybe in this case we could place all tables into public<br>&gt; &gt; &gt; schema.<br>&gt; &gt;<br>&gt; &gt; Also possible would be to introduce a schema name "" (empty string)<br>&gt; &gt; or "default". I suppose you just ignore the schema name when accessing<br>&gt; &gt; mysql databases?<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt; Marco<br>&gt; &gt;<br>&gt; &gt; On Thursday 13 December 2007 17:03:20 Tim Sutton wrote:<br>&gt; &gt; &gt; Hi<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Could I suggest using Qt model/view for this - whever list become lone<br>&gt; &gt; &gt; I think the model / view approach will always be more efficient. It<br>&gt; &gt; &gt; also has QSortFilterProxModel by which you can easily add sorting and<br>&gt; &gt; &gt; filtering.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; http://doc.trolltech.com/4.3/qsortfilterproxymodel.html#details<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I was going to suggest also that we create src/models and src/views<br>&gt; &gt; &gt; for any custom models and views we create.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Regards<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Tim<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; 2007/12/13, Hugentobler  Marco &lt;marco.hugentobler@karto.baug.ethz.ch&gt;:<br>&gt; &gt; &gt; &gt; Hi,<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; The list of tables in the postgis connection dialog may become quite<br>&gt; &gt; &gt; &gt; long for users that have a lot of tables and views. I therefore would<br>&gt; &gt; &gt; &gt; like the following extensions:<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; -Convert the table widget to a tree widget. For every schema, there<br>&gt; &gt; &gt; &gt; would an item that can be expanded/collapsed and contains the<br>&gt; &gt; &gt; &gt; tables/views of the schema. Like this, there will be much better<br>&gt; &gt; &gt; &gt; overview in situations with many schemas/tables/views.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; -Add a line edit that takes regular expressions and, if not empty,<br>&gt; &gt; &gt; &gt; displays only the entries where the table name matches the regular<br>&gt; &gt; &gt; &gt; expression.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Are there any objections or suggestions to this?<br>&gt; &gt; &gt; &gt; Godofredo, does this fit together with the work you are doing in the<br>&gt; &gt; &gt; &gt; ogr-plugin-branch and shall I code the dialog extensions also into this<br>&gt; &gt; &gt; &gt; branch?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; Regards,<br>&gt; &gt; &gt; &gt; Marco<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; &gt; Qgis-developer mailing list<br>&gt; &gt; &gt; &gt; Qgis-developer@lists.qgis.org<br>&gt; &gt; &gt; &gt; http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-developer<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Dr. Marco Hugentobler<br>&gt; Institute of Cartography<br>&gt; ETH Zurich<br>&gt; Technical Advisor QGIS Project Steering Committee<br><br /><hr />Get the power of Windows + Web with the new Windows Live. <a href='http://www.windowslive.com?ocid=TXT_TAGHM_Wave2_powerofwindows_012008' target='_new'>Get it now!</a></body>
</html>