<div dir="ltr"><div>Hi All, <br><br></div><div>I'd like to let (PyQGIS) users choose between Table and Form View when calling showAttributeTable() via QgisInterface. I'm preparing a pull request for that.<br><br>However, I'm having a hard time with includes, since once I add #include "qgsdualview.h" in my qgisInterface.h file, I get the following error:<br><br><i>    .../QGIS/src/providers/delimitedtext/../../gui/qgisinterface.h:49:25: fatal error: qgsdualview.h: No such file or directory #include "qgsdualview.h"<br></i><br>Of course, if I don't add such include, I get a "qgisinterface.h:296:57: error: ‘QgsDualView’ has not been declared" error.<br><br>On the other hand, if I add the (../gui/attributetable) path to CMakeLists.txt I start getting problems with the Interpolation plugin, namely:<br><br><i>    QGIS/src/plugins/interpolation/../../gui/attributetable/qgsdualview.h:21:32: fatal error: ui_qgsdualviewbase.h: No such file or directory #include "ui_qgsdualviewbase.h"</i><br><br>Which I couldn't resolve.<br><br>I would avoid this problem by using a boolean value (bool formViewMode = False)  as parameter of showAttributeTable() but I guess it's better and clearer to use the QgsDualView::ViewMode enum, even if it's more complex to implement.<br><br>The code I'm working on can be accessed in this branch [1]. <br><br>What would be the correct way of dealing with such include?<br><br>Regards, <br><br>Germán<br></div><div>--</div><div>[1] <a href="https://github.com/gacarrillor/QGIS/tree/editform">https://github.com/gacarrillor/QGIS/tree/editform</a> </div>-- <br><div class="gmail_signature">-----------<br>   |\__  <br>(:>__)(<br>   |/    <br><br>Soluciones Geoinformáticas Libres                            <br><a href="http://geotux.tuxfamily.org/">http://geotux.tuxfamily.org/</a><br><a href="http://twitter.com/GeoTux2">http://twitter.com/GeoTux2</a><br></div>
</div>