[QGIS-trac] Re: [Quantum GIS] #2634: Spatial Query Plugin source
for avaliation
Quantum GIS
qgis at qgis.org
Sun Apr 25 13:08:29 EDT 2010
#2634: Spatial Query Plugin source for avaliation
--------------------------------------------------------------+-------------
Reporter: lmotta | Owner: timlinux
Type: patch | Status: closed
Priority: critical: causes crash or data corruption | Milestone: Version 1.5.0
Component: C++ Plugins | Version: HEAD
Resolution: fixed | Keywords: Spatial Query
Platform_version: | Platform: Debian
Must_fix: No | Status_info: 0
--------------------------------------------------------------+-------------
Comment (by lmotta):
About:
When you click the button "close" (after having run a query) the plugin
closes. I would like to see also a button "back" (or else) to let the user
return to the plugin main window, so he can run another query without
having to open again the plugin.
To answer your suggestion I made the following changes:
* Attach change_spatialquerydialog_cpp_and_ui.zip)
1) qgsspatialquerydialogbase.ui
Remove Signal/slot to "reject()"
2)qgsspatialquerydialog.cpp
2.1) Change method - on_buttonBox_rejected
void QgsSpatialQueryDialog::on_buttonBox_rejected()
{
if ( grpResults->isHidden() )
{
reject();
}
else
{
grpResults->hide();
setInputsVisible( true );
progressBarStatus->show();
buttonBox->button( QDialogButtonBox::Close )->hide();
buttonBox->button( QDialogButtonBox::Cancel )->show();
buttonBox->button( QDialogButtonBox::Ok )->show();
}
} // void QgsSpatialQueryDialog::on_buttonBox_rejected()
2.2) Change method - runQuery
Only append on end of method: adjustSize();
void QgsSpatialQueryDialog::runQuery()
{
...
grpResults->show();
setInputsVisible( false );
progressBarStatus->hide();
buttonBox->button( QDialogButtonBox::Close )->show();
buttonBox->button( QDialogButtonBox::Cancel )->hide();
buttonBox->button( QDialogButtonBox::Ok )->hide();
adjustSize();
} // void QgsSpatialQueryDialog::runQuery()
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2634#comment:13>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list