Navigation Menu

Skip to content

Commit

Permalink
indentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Aug 17, 2014
1 parent 346b50e commit 07165ea
Show file tree
Hide file tree
Showing 25 changed files with 935 additions and 711 deletions.
116 changes: 58 additions & 58 deletions doc/TRANSLATORS

Large diffs are not rendered by default.

706 changes: 409 additions & 297 deletions i18n/qgis_de.ts

Large diffs are not rendered by default.

706 changes: 409 additions & 297 deletions i18n/qgis_en.ts

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/core/composer/qgsatlascomposition.sip
Expand Up @@ -188,7 +188,7 @@ public:
const QString& currentFilename() const;

void writeXML( QDomElement& elem, QDomDocument& doc ) const;

/**Reads general atlas settings from xml
* @param elem a QDomElement holding the atlas properties.
* @param doc QDomDocument for the source xml.
Expand Down
2 changes: 1 addition & 1 deletion python/core/composer/qgscomposerframe.sip
Expand Up @@ -23,7 +23,7 @@ class QgsComposerFrame: QgsComposerItem
int type() const;

QgsComposerMultiFrame* multiFrame() const;

//Overriden to allow multiframe to set display name
virtual QString displayName() const;
};
16 changes: 8 additions & 8 deletions python/core/composer/qgscomposerhtml.sip
Expand Up @@ -5,15 +5,15 @@ class QgsComposerHtml: QgsComposerMultiFrame
%End

public:

/** Source modes for the HTML content to render in the item
*/
enum ContentMode
{
Url, /*< Using this mode item fetches its content via a url*/
ManualHtml /*< HTML content is manually set for the item*/
};

QgsComposerHtml( QgsComposition* c, bool createUndoCommands );
QgsComposerHtml();
~QgsComposerHtml();
Expand Down Expand Up @@ -73,7 +73,7 @@ class QgsComposerHtml: QgsComposerMultiFrame
* @note added in 2.5
*/
QString html() const;

/**Returns whether html item will evaluate QGIS expressions prior to rendering
* the HTML content. If set, any content inside [% %] tags will be
* treated as a QGIS expression and evaluated against the current atlas
Expand All @@ -92,7 +92,7 @@ class QgsComposerHtml: QgsComposerMultiFrame
* @see evaluateExpressions
* @note added in QGIS 2.5
*/
void setEvaluateExpressions( bool evaluateExpressions );
void setEvaluateExpressions( bool evaluateExpressions );

QSizeF totalSize() const;
void render( QPainter* p, const QRectF& renderExtent );
Expand Down Expand Up @@ -144,7 +144,7 @@ class QgsComposerHtml: QgsComposerMultiFrame
* @see useSmartBreaks
*/
double maxBreakDistance() const;

/**Sets the user stylesheet CSS rules to use while rendering the HTML content. These
* allow for overriding the styles specified within the HTML source. Setting the stylesheet
* using this function does not automatically refresh the item's contents. Call loadHtml
Expand Down Expand Up @@ -181,7 +181,7 @@ class QgsComposerHtml: QgsComposerMultiFrame
* @note added in 2.5
*/
bool userStylesheetEnabled() const;

virtual QString displayName() const;

public slots:
Expand All @@ -191,9 +191,9 @@ class QgsComposerHtml: QgsComposerMultiFrame
* @see url
*/
void loadHtml();

void refreshExpressionContext();

virtual void refreshDataDefinedProperty( const QgsComposerObject::DataDefinedProperty property = QgsComposerObject::AllProperties );

};
20 changes: 10 additions & 10 deletions python/core/composer/qgscomposeritem.sip
Expand Up @@ -452,7 +452,7 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
* @deprecated use QgsComposerUtils::fontDescentMM instead
*/
double fontDescentMillimeters( const QFont& font ) const /Deprecated/;

/**Returns the font height in Millimeters (considers upscaling and downscaling with FONT_WORKAROUND_SCALE.
* Font height equals the font ascent+descent+1 (for baseline).
* @note Added in version 2.4
Expand Down Expand Up @@ -525,7 +525,7 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
* @see setId
*/
QString uuid() const;

/**Get item display name. This is the item's id if set, and if
* not, a user-friendly string identifying item type.
* @returns display name for item
Expand All @@ -534,16 +534,16 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
* @note added in version 2.5
*/
virtual QString displayName() const;

/**Sets visibility for item.
* @param visible set to true to show item, false to hide item
* @note QGraphicsItem::setVisible should not be called directly
* on a QgsComposerItem, as some item types (eg groups) need to override
* the visibility toggle.
* @note added in version 2.5
*/
virtual void setVisibility( const bool visible );
virtual void setVisibility( const bool visible );

/**Returns whether this item is part of a group
* @returns true if item is in a group
* @note added in version 2.5
Expand Down Expand Up @@ -643,7 +643,7 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
* @deprecated will be removed in QGIS 3.0
*/
bool imageSizeConsideringRotation( double& width, double& height, double rotation ) const /Deprecated/;

/**Calculates width and hight of the picture (in mm) such that it fits into the item frame with the given rotation
* @deprecated will be removed in QGIS 3.0
*/
Expand All @@ -662,7 +662,7 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
* @deprecated will be removed in QGIS 3.0
*/
bool cornerPointOnRotatedAndScaledRect( double& x, double& y, double width, double height, double rotation ) const /Deprecated/;

/**Calculates corner point after rotation and scaling
* @deprecated will be removed in QGIS 3.0
*/
Expand All @@ -672,19 +672,19 @@ class QgsComposerItem : QgsComposerObject, QGraphicsRectItem
* @deprecated will be removed in QGIS 3.0
*/
void sizeChangedByRotation( double& width, double& height, double rotation ) /Deprecated/;

/**Calculates width / height of the bounding box of a rotated rectangle
* @deprecated will be removed in QGIS 3.0
*/
void sizeChangedByRotation( double& width, double& height ) /Deprecated/;

/**Rotates a point / vector
* @param angle rotation angle in degrees, counterclockwise
* @param x in/out: x coordinate before / after the rotation
* @param y in/out: y cooreinate before / after the rotation
* @deprecated use QgsComposerUtils:rotate instead
*/
void rotate( double angle, double& x, double& y ) const /Deprecated/;
void rotate( double angle, double& x, double& y ) const /Deprecated/;

/**Return horizontal align snap item. Creates a new graphics line if 0*/
QGraphicsLineItem* hAlignSnapItem();
Expand Down
2 changes: 1 addition & 1 deletion python/core/composer/qgscomposeritemgroup.sip
Expand Up @@ -20,7 +20,7 @@ class QgsComposerItemGroup: QgsComposerItem
/**Sets this items bound in scene coordinates such that 1 item size units
corresponds to 1 scene size unit*/
void setSceneRect( const QRectF& rectangle );

//overridden to also hide grouped items
virtual void setVisibility( const bool visible );

Expand Down
2 changes: 1 addition & 1 deletion python/core/composer/qgscomposerlabel.sip
Expand Up @@ -75,7 +75,7 @@ class QgsComposerLabel : QgsComposerItem
* @param doc document
*/
bool readXML( const QDomElement& itemElem, const QDomDocument& doc );

//Overriden to contain part of label's text
virtual QString displayName() const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/composer/qgscomposermap.sip
Expand Up @@ -494,7 +494,7 @@ class QgsComposerMap : QgsComposerItem
* @see currentMapExtent
*/
QPolygonF visibleExtentPolygon() const;

//overriden to show "Map 1" type names
virtual QString displayName() const;

Expand Down
6 changes: 3 additions & 3 deletions python/core/composer/qgscomposermodel.sip
Expand Up @@ -15,14 +15,14 @@
* stacking of items in the composition to the last known state, and emit the corresponding signals
* as required.
*/

class QgsComposerModel : QAbstractItemModel
{
%TypeHeaderCode
#include "qgscomposermodel.h"
%End
public:

/**Constructor
* @param composition parent composition
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ class QgsComposerModel : QAbstractItemModel
void updateItemVisibility( QgsComposerItem *item );

public slots:

/**Sets an item as the current selection from a QModelIndex
* @param index QModelIndex of item to set as selected
* @note added in QGIS 2.5
Expand Down
4 changes: 2 additions & 2 deletions python/core/composer/qgscomposermultiframe.sip
Expand Up @@ -72,7 +72,7 @@ class QgsComposerMultiFrame: QgsComposerObject
* @note added in version 2.5
*/
virtual QString displayName() const;

public slots:

/**Recalculates the portion of the multiframe item which is shown in each of it's
Expand All @@ -90,7 +90,7 @@ class QgsComposerMultiFrame: QgsComposerObject

signals:
void changed();

/**Emitted when the contents of the multi frame have changed and the frames
* must be redrawn.
*/
Expand Down
6 changes: 3 additions & 3 deletions python/core/composer/qgscomposermultiframecommand.sip
Expand Up @@ -12,15 +12,15 @@ class QgsComposerMultiFrameCommand : QUndoCommand

void savePreviousState();
void saveAfterState();

QDomDocument previousState() const;
QDomDocument afterState() const;

/**Returns true if previous state and after state are valid and different*/
bool containsChange() const;

const QgsComposerMultiFrame* multiFrame() const;

protected:

QgsComposerMultiFrameCommand(); //forbidden
Expand Down
4 changes: 2 additions & 2 deletions python/core/composer/qgscomposerpicture.sip
Expand Up @@ -161,13 +161,13 @@ class QgsComposerPicture: QgsComposerItem
* instead
*/
bool imageSizeConsideringRotation( double& width, double& height ) const /Deprecated/;

/**Calculates corner point after rotation and scaling
* @deprecated Use QgsComposerItem::cornerPointOnRotatedAndScaledRect( double& x, double& y, double width, double height, double rotation )
* instead
*/
bool cornerPointOnRotatedAndScaledRect( double& x, double& y, double width, double height ) const /Deprecated/;

/**Calculates width / height of the bounding box of a rotated rectangle
* @deprecated Use QgsComposerItem::sizeChangedByRotation( double& width, double& height, double rotation )
* instead
Expand Down
2 changes: 1 addition & 1 deletion python/core/composer/qgscomposershape.sip
Expand Up @@ -64,7 +64,7 @@ class QgsComposerShape: QgsComposerItem
* QgsComposerItem as it needs to call updateBoundingRect after the shape's size changes
*/
void setSceneRect( const QRectF& rectangle );

//Overriden to return shape type
virtual QString displayName() const;

Expand Down
2 changes: 1 addition & 1 deletion python/core/composer/qgscomposerutils.sip
Expand Up @@ -33,7 +33,7 @@ class QgsComposerUtils
* @param y in/out: y cooreinate before / after the rotation
*/
static void rotate( const double angle, double& x, double& y );

/**Ensures that an angle is in the range 0 <= angle < 360
* @param angle angle in degrees
* @returns equivalent angle within the range [0, 360)
Expand Down
2 changes: 1 addition & 1 deletion python/core/layertree/qgslayertreenode.sip
Expand Up @@ -118,7 +118,7 @@ class QgsLayerTreeNode : QObject
protected:

QgsLayerTreeNode( NodeType t );

private:
QgsLayerTreeNode( const QgsLayerTreeNode& other );

Expand Down
4 changes: 2 additions & 2 deletions python/core/qgscolorscheme.sip
Expand Up @@ -54,7 +54,7 @@ class QgsColorScheme
* @see isEditable
*/
virtual bool setColors( const QgsNamedColorList colors, const QString context = QString(), const QColor baseColor = QColor() );

/**Clones a color scheme
* @returns copy of color scheme
*/
Expand Down Expand Up @@ -108,7 +108,7 @@ class QgsCustomColorScheme : QgsColorScheme

virtual QgsNamedColorList fetchColors( const QString context = QString(),
const QColor baseColor = QColor() );

virtual bool isEditable() const;

virtual bool setColors( const QgsNamedColorList colors, const QString context = QString(), const QColor baseColor = QColor() );
Expand Down
4 changes: 2 additions & 2 deletions python/core/qgsmaplayerlegend.sip
Expand Up @@ -13,7 +13,7 @@ class QgsLayerTreeModelLegendNode : QObject
%TypeHeaderCode
#include <qgsmaplayerlegend.h>
%End

public:

/** Return pointer to the parent layer node */
Expand Down Expand Up @@ -82,7 +82,7 @@ class QgsMapLayerLegend : QObject
%TypeHeaderCode
#include <qgsmaplayerlegend.h>
%End

public:
explicit QgsMapLayerLegend( QObject *parent /TransferThis/ = 0 );

Expand Down
8 changes: 4 additions & 4 deletions python/core/symbology-ng/qgssymbollayerv2utils.sip
Expand Up @@ -59,7 +59,7 @@ class QgsSymbolLayerV2Utils

static QString encodeScaleMethod( QgsSymbolV2::ScaleMethod scaleMethod );
static QgsSymbolV2::ScaleMethod decodeScaleMethod( QString str );

static QPainter::CompositionMode decodeBlendMode( const QString& s );

static QIcon symbolPreviewIcon( QgsSymbolV2* symbol, QSize size );
Expand Down Expand Up @@ -199,7 +199,7 @@ class QgsSymbolLayerV2Utils
* @note added in 2.5
*/
static QList< QColor > parseColorList( const QString colorStr );

/**
* Attempts to parse mime data as a list of named colors
* @param data mime data to parse
Expand All @@ -216,7 +216,7 @@ class QgsSymbolLayerV2Utils
* @note added in 2.5
*/
static QMimeData* colorListToMimeData( const QgsNamedColorList colorList, const bool allFormats = true );

/**
* Exports colors to a gpl GIMP palette file
* @param file destination file
Expand All @@ -235,7 +235,7 @@ class QgsSymbolLayerV2Utils
* @see saveColorsToGpl
*/
static QgsNamedColorList importColorsFromGpl( QFile &file, bool &ok );

/**
* Attempts to parse a string as a color using a variety of common formats, including hex
* codes, rgb and rgba strings.
Expand Down

0 comments on commit 07165ea

Please sign in to comment.