Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' of github.com:qgis/Quantum-GIS
  • Loading branch information
timlinux committed Oct 6, 2011
2 parents 7e059af + f09417d commit 8154103
Show file tree
Hide file tree
Showing 35 changed files with 202 additions and 124 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Expand Up @@ -8,6 +8,7 @@ qgis (1.8.0) UNRELEASED; urgency=low
* include internal pyspatialite in python-qgis
* update watch
* drop abi postfix from sqlanywhere plugin
* include network analysis library

-- Jürgen E. Fischer <jef@norbit.de> Thu, 29 Sep 2011 21:44:50 +0000

Expand Down
1 change: 1 addition & 0 deletions debian/libqgis{QGIS_ABI}.install
@@ -1,3 +1,4 @@
usr/lib/libqgis_core.so.{QGIS_ABI}
usr/lib/libqgis_gui.so.{QGIS_ABI}
usr/lib/libqgis_analysis.so.{QGIS_ABI}
usr/lib/libqgis_networkanalysis.so.{QGIS_ABI}
2 changes: 1 addition & 1 deletion doc/INSTALL.t2t
Expand Up @@ -33,7 +33,7 @@ Building QGIS from source - step by step
%! PostProc(tex): '\\section' '\\newpage\\section'
%! PostProc(tex): 'section{' 'section{\\color{qgis-green}'
%! PostProc(tex): NEWPAGE '\\newpage'
% Give alternating table rows different colours and use a smaller font in tables (\tiny)
% Give alternating table rows different colors and use a smaller font in tables (\tiny)
%! PostProc(tex): '\\begin{tabular}' '\\rowcolors{2}{tableShade}{white} \n\\tiny\\begin{tabular}'
%! encoding: iso-8859-1

Expand Down
4 changes: 2 additions & 2 deletions doc/changelog.t2t
Expand Up @@ -81,7 +81,7 @@ http://linfiniti.com/2011/08/improvements-to-raster-performance-in-qgis-master/]
- Reduce top and side margins for attribute table dialog
- Remove the (hopefully) last SVN reference
- More svn version removal
- Added missing colour accessor/mutator/member from composerlegenditem header
- Added missing color accessor/mutator/member from composerlegenditem header
- Get rid of svn version stuff from release branch.
- Other workaround for Qt#5114 (fixes #3250, #3028, #2598)
- Try to make the histogram smoother
Expand Down Expand Up @@ -216,7 +216,7 @@ changed so we will just provide a bullet list of key new features here.

- Support for icons of plugins in the plugin manager dialog.
- Removed quickprint plugin - use easyprint plugin rather from plugin repo.
- Removed ogr convertor plugin - use 'save as' context menu rather.
- Removed ogr converter plugin - use 'save as' context menu rather.
-

==Printing==
Expand Down
Binary file added doc/qgis-download-stats.ods
Binary file not shown.
2 changes: 1 addition & 1 deletion resources/customization.xml
Expand Up @@ -1935,7 +1935,7 @@
<widget class="QLabel" label="&lt;p align=&quot;right&quot;&gt;Full&lt;/p&gt;" objectName="textLabel4"/>
</widget>
<widget class="QGroupBox" label="" objectName="gboxCustomTransparency">
<widget class="QLabel" label="Transparency band" objectName="lblTransarent"/>
<widget class="QLabel" label="Transparency band" objectName="lblTransparent"/>
<widget class="QComboBox" label="" objectName="cboxTransparencyBand"/>
<widget class="QLabel" label="Transparent pixel list" objectName="label_2"/>
</widget>
Expand Down
23 changes: 23 additions & 0 deletions scripts/make_gource_video.sh
@@ -0,0 +1,23 @@
#!/bin/bash

echo "A script to generate a source video progression"
echo "see http://woostuff.wordpress.com/2011/01/03/generating-a-gource-source-commit-history-visualization-for-qgis-quantum-gis/"
echo "Run it from the root directory e.g. scripts/$0"

gource --title "Quantum GIS" --logo images/icons/qgis-icon.png \
--hide filenames \
--date-format "%d, %B %Y" \
--seconds-per-day 0.05 \
--highlight-all-users \
--auto-skip-seconds 0.5 \
--file-idle-time 0 \
--max-files 999999999 \
--multi-sampling \
--stop-at-end \
--elasticity 0.1 \
-b ffffff \
--disable-progress \
--user-friction .2 \
--output-ppm-stream - | \
ffmpeg -an -threads 4 -y -b 3000K -vb 8000000 -r 60 -f image2pipe \
-vcodec ppm -i - -vcodec libx264 -vpre libx264-medium qgis-history.mp4
8 changes: 6 additions & 2 deletions src/analysis/network/qgsarcproperter.h
Expand Up @@ -48,7 +48,11 @@ class ANALYSIS_EXPORT QgsArcProperter
/**
* calculate and return adge property
*/
virtual QVariant property( double distance, const QgsFeature& f ) const
{ return QVariant(); }
virtual QVariant property( double distance, const QgsFeature &f ) const
{
Q_UNUSED( distance );
Q_UNUSED( f );
return QVariant();
}
};
#endif //QGSEDGEPROPERTYH
1 change: 1 addition & 0 deletions src/analysis/network/qgsdistancearcproperter.cpp
Expand Up @@ -14,5 +14,6 @@

QVariant QgsDistanceArcProperter::property( double distance, const QgsFeature& f ) const
{
Q_UNUSED( f );
return QVariant( distance );
}
10 changes: 0 additions & 10 deletions src/analysis/network/qgsgraph.cpp
Expand Up @@ -107,16 +107,6 @@ int QgsGraphArc::outVertex() const
return mOut;
}

int QgsGraphArc::in() const
{
return mIn;
}

int QgsGraphArc::out() const
{
return mOut;
}

QgsGraphVertex::QgsGraphVertex( const QgsPoint& point )
: mCoordinate( point )
{
Expand Down
6 changes: 2 additions & 4 deletions src/analysis/network/qgsgraph.h
Expand Up @@ -18,7 +18,7 @@
* Vertex is identified by its geographic coordinates (but you can add two vertex
* with unique coordinate), no additional properties it can not be assigned.
* Count the number of properties not limited along the arc. Graph may
* be have intsedentnye arcs.
* be have incidence arcs.
*
* \file qgsgraph.h
*/
Expand All @@ -38,7 +38,7 @@ class QgsGraphVertex;

/**
* \ingroup networkanalysis
* \class QgsGraphEdge
* \class QgsGraphArc
* \brief This class implement a graph edge
*/
class ANALYSIS_EXPORT QgsGraphArc
Expand All @@ -60,13 +60,11 @@ class ANALYSIS_EXPORT QgsGraphArc
/**
* return index of outgoing vertex
*/
int out() const;
int outVertex() const;

/**
* return index of incoming vertex
*/
int in() const;
int inVertex() const;

private:
Expand Down
10 changes: 5 additions & 5 deletions src/analysis/network/qgsgraphanalyzer.cpp 100644 → 100755
Expand Up @@ -14,7 +14,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
// C++ standart includes
// C++ standard includes
#include <limits>

// QT includes
Expand Down Expand Up @@ -63,10 +63,10 @@ void QgsGraphAnalyzer::shortestpath( const QgsGraph* source, int startPointIdx,
const QgsGraphArc& arc = source->arc( *arcIt );
double cost = arc.property( criterionNum ).toDouble() + curCost;

if ( cost < result[ arc.in()].first )
if ( cost < result[ arc.inVertex()].first )
{
result[ arc.in()] = QPair< double, int >( cost, *arcIt );
not_begin.insert( cost, arc.in() );
result[ arc.inVertex()] = QPair< double, int >( cost, *arcIt );
not_begin.insert( cost, arc.inVertex() );
}
}
}
Expand All @@ -90,7 +90,7 @@ void QgsGraphAnalyzer::shortestpath( const QgsGraph* source, int startPointIdx,
{
const QgsGraphArc& arc = source->arc( result[i].second );

treeResult->addArc( source2result[ arc.out()], source2result[ i ],
treeResult->addArc( source2result[ arc.outVertex()], source2result[ i ],
arc.properties() );
}
}
Expand Down
19 changes: 14 additions & 5 deletions src/analysis/network/qgsgraphbuilderintr.h 100644 → 100755
Expand Up @@ -79,12 +79,15 @@ class ANALYSIS_EXPORT QgsGraphBuilderInterface

/**
* add vertex
* @param id vertex identyficator
* @param id vertex identifier
* @param pt vertex coordinate
* @note id and pt is a redundant interface. You can use coordinates or id for vertex identyfy
* @note id and pt are redundant. You can use pt or id to identify the vertex
*/
virtual void addVertex( int id, const QgsPoint& pt )
{ }
virtual void addVertex( int id, const QgsPoint &pt )
{
Q_UNUSED( id );
Q_UNUSED( pt );
}

/**
* add arc
Expand All @@ -96,7 +99,13 @@ class ANALYSIS_EXPORT QgsGraphBuilderInterface
* @note pt1id, pt1 and pt2id, pt2 is a redundant interface. You can use vertex coordinates or their identificators.
*/
virtual void addArc( int pt1id, const QgsPoint& pt1, int pt2id, const QgsPoint& pt2, const QVector< QVariant >& properties )
{ }
{
Q_UNUSED( pt1id );
Q_UNUSED( pt1 );
Q_UNUSED( pt2id );
Q_UNUSED( pt2 );
Q_UNUSED( properties );
}

private:
QgsCoordinateReferenceSystem mCrs;
Expand Down
12 changes: 8 additions & 4 deletions src/analysis/network/qgsgraphdirector.h
Expand Up @@ -55,10 +55,14 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject
*
* @note if tiedPoints[i]==QgsPoint(0.0,0.0) then tied failed.
*/
virtual void makeGraph( QgsGraphBuilderInterface* builder,
const QVector< QgsPoint >& additionalPoints,
QVector< QgsPoint>& tiedPoints ) const
{}
virtual void makeGraph( QgsGraphBuilderInterface *builder,
const QVector< QgsPoint > &additionalPoints,
QVector< QgsPoint > &tiedPoints ) const
{
Q_UNUSED( builder );
Q_UNUSED( additionalPoints );
Q_UNUSED( tiedPoints );
}

void addProperter( QgsArcProperter* prop )
{
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/network/qgslinevectorlayerdirector.h
Expand Up @@ -31,7 +31,7 @@ class QgsVectorLayer;
* \class QgsLineVectorLayerDirector
* \brief Determine making the graph from vector line layer
*/
class QgsLineVectorLayerDirector : public QgsGraphDirector
class ANALYSIS_EXPORT QgsLineVectorLayerDirector : public QgsGraphDirector
{
public:
/**
Expand Down
7 changes: 7 additions & 0 deletions src/app/qgsbrowserdockwidget.cpp
@@ -1,5 +1,6 @@
#include "qgsbrowserdockwidget.h"

#include <QHeaderView>
#include <QTreeView>
#include <QMenu>
#include <QSettings>
Expand Down Expand Up @@ -56,6 +57,7 @@ QgsBrowserDockWidget::QgsBrowserDockWidget( QWidget * parent ) :
connect( mBrowserView, SIGNAL( customContextMenuRequested( const QPoint & ) ), this, SLOT( showContextMenu( const QPoint & ) ) );
//connect( mBrowserView, SIGNAL( clicked( const QModelIndex& ) ), this, SLOT( itemClicked( const QModelIndex& ) ) );
connect( mBrowserView, SIGNAL( doubleClicked( const QModelIndex& ) ), this, SLOT( itemClicked( const QModelIndex& ) ) );

}

void QgsBrowserDockWidget::showEvent( QShowEvent * e )
Expand All @@ -65,6 +67,11 @@ void QgsBrowserDockWidget::showEvent( QShowEvent * e )
{
mModel = new QgsBrowserModel( mBrowserView );
mBrowserView->setModel( mModel );

// provide a horizontal scroll bar instead of using ellipse (...) for longer items
mBrowserView->setTextElideMode( Qt::ElideNone );
mBrowserView->header()->setResizeMode( 0, QHeaderView::ResizeToContents );
mBrowserView->header()->setStretchLastSection( false );
}

QDockWidget::showEvent( e );
Expand Down
2 changes: 1 addition & 1 deletion src/browser/qgsbrowser.cpp
Expand Up @@ -52,7 +52,7 @@ QgsBrowser::QgsBrowser( QWidget *parent, Qt::WFlags flags )
mModel = new QgsBrowserModel( treeView );
treeView->setModel( mModel );

// Last expanded is stored, dont cover whole height with file system
// Last expanded is stored, don't cover whole height with file system
//treeView->expand( mModel->index(0,0) );

connect( treeView, SIGNAL( clicked( const QModelIndex& ) ), this, SLOT( itemClicked( const QModelIndex& ) ) );
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsapplication.cpp
Expand Up @@ -33,8 +33,8 @@

#include "qgsconfig.h"

#include <gdal.h>
#include <ogr_api.h>
#include <gdal_priv.h>
#include <cpl_conv.h> // for setting gdal options

QObject * QgsApplication::mFileOpenEventReceiver;
Expand Down Expand Up @@ -68,7 +68,7 @@ QStringList QgsApplication::mGdalSkipList;
QgsApplication::QgsApplication( int & argc, char ** argv, bool GUIenabled, QString customConfigPath )
: QApplication( argc, argv, GUIenabled )
{
init( customConfigPath ); //initi can also be called directly by e.g. unit tests that dont inherit QApplication.
init( customConfigPath ); // init can also be called directly by e.g. unit tests that don't inherit QApplication.
}
void QgsApplication::init( QString customConfigPath )
{
Expand Down Expand Up @@ -745,5 +745,5 @@ void QgsApplication::applyGdalSkippedDrivers()
QgsDebugMsg( "Gdal Skipped driver list set to:" );
QgsDebugMsg( myDriverList );
CPLSetConfigOption( "GDAL_SKIP", myDriverList.toUtf8() );
GetGDALDriverManager()->AutoSkipDrivers();
GDALAllRegister(); //to update driver list and skip missing ones
}

0 comments on commit 8154103

Please sign in to comment.