render fix

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@106 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2002-08-18 16:17:21 +00:00
parent d920764fc0
commit 8d3a6d631d
3 changed files with 15 additions and 2 deletions

View File

@ -17,6 +17,6 @@ enum WKBTYPE{
WKBMultiLineString,
WKBMultiPolygon
};
static const char *qgisVersion = "0.0.4-alpha";
static const char *qgisVersion = "0.0.5-alpha";
}
#endif

View File

@ -36,7 +36,7 @@ User Interface=*.kdevdlg,*.ui,*.rc,*.dlg
groups=Headers,Sources,User Interface,Others
[Makefile.am]
files=main.cpp,qgisapp.cpp,qgscoordinatetransform.cpp,qgsdatabaselayer.cpp,qgsdatasource.cpp,qgsdbsourceselect.cpp,qgsmapcanvas.cpp,qgsmaplayer.cpp,qgsnewconnection.cpp,qgspoint.cpp,qgsrasterlayer.cpp,qgsrect.cpp,qgisapp.h,qgscoordinatetransform.h,qgsdatabaselayer.h,qgsdatasource.h,qgsdbsourceselect.h,qgslinesymbol.h,qgsmapcanvas.h,qgsmaplayer.h,qgsmarkersymbol.h,qgsnewconnection.h,qgspoint.h,qgspolygonsymbol.h,qgsrasterlayer.h,qgsrect.h,qgsshapefilelayer.h,qgisappbase.ui,qgsdbsourceselectbase.ui,qgsnewconnectionbase.ui,qgscustomsymbol.cpp,qgscustomsymbol.h,qgslegend.h,qgslegend.cpp,qgslegenditem.cpp,qgslegenditem.h,qgssymbol.h,qgstable.h,qgsshapefilelayer.cpp,qgslegenditembase.h,qgsabout.ui,qgsabout.ui.h,QgsSymbol.cpp,qgsmarkersymbol.cpp,qgslinesymbol.cpp,qgspolygonsymbol.cpp,qgslayerproperties.cpp,qgslayerproperties.h
files=main.cpp,qgisapp.cpp,qgscoordinatetransform.cpp,qgsdatabaselayer.cpp,qgsdatasource.cpp,qgsdbsourceselect.cpp,qgsmapcanvas.cpp,qgsmaplayer.cpp,qgsnewconnection.cpp,qgspoint.cpp,qgsrasterlayer.cpp,qgsrect.cpp,qgisapp.h,qgscoordinatetransform.h,qgsdatabaselayer.h,qgsdatasource.h,qgsdbsourceselect.h,qgslinesymbol.h,qgsmapcanvas.h,qgsmaplayer.h,qgsmarkersymbol.h,qgsnewconnection.h,qgspoint.h,qgspolygonsymbol.h,qgsrasterlayer.h,qgsrect.h,qgsshapefilelayer.h,qgisappbase.ui,qgsdbsourceselectbase.ui,qgsnewconnectionbase.ui,qgscustomsymbol.cpp,qgscustomsymbol.h,qgslegend.h,qgslegend.cpp,qgslegenditem.cpp,qgslegenditem.h,qgssymbol.h,qgstable.h,qgsshapefilelayer.cpp,qgslegenditembase.h,qgsabout.ui,qgsabout.ui.h,QgsSymbol.cpp,qgsmarkersymbol.cpp,qgslinesymbol.cpp,qgspolygonsymbol.cpp,qgslayerproperties.cpp,qgslayerproperties.h,qgis.h
sharedlib_LDFLAGS=-version-info 0:0:0
sharedlib_rootname=src
sub_dirs=
@ -62,6 +62,12 @@ install=false
install_location=
type=SOURCE
[qgis.h]
dist=true
install=false
install_location=
type=HEADER
[qgis.kdevprj]
dist=true
install=false

View File

@ -32,6 +32,7 @@
#include <qrect.h>
#include <qpoint.h>
#include <qpainter.h>
#include <qcursor.h>
#include <qlayout.h>
#include <qwmatrix.h>
#include <qfiledialog.h>
@ -130,6 +131,7 @@ void QgisApp::addLayer()
mapCanvas->freeze();
QStringList files = QFileDialog::getOpenFileNames("Shapefiles (*.shp);;All files (*.*)", 0, this, "open files dialog",
"Select one or more layers to add");
QApplication::setOverrideCursor( Qt::WaitCursor );
QStringList::Iterator it = files.begin();
while (it != files.end()) {
@ -163,6 +165,7 @@ void QgisApp::addLayer()
qApp->processEvents();
mapCanvas->freeze(false);
mapCanvas->render2();
QApplication::restoreOverrideCursor();
statusBar()->message(mapCanvas->extent().stringRep());
@ -178,6 +181,9 @@ void QgisApp::addDatabaseLayer()
QgsDbSourceSelect *dbs = new QgsDbSourceSelect();
mapCanvas->freeze();
if (dbs->exec()) {
QApplication::setOverrideCursor( Qt::WaitCursor );
// repaint the canvas if it was covered by the dialog
// add files to the map canvas
@ -212,6 +218,7 @@ void QgisApp::addDatabaseLayer()
mapCanvas->freeze(false);
mapCanvas->render2();
QApplication::restoreOverrideCursor();
}