mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
indentation update
This commit is contained in:
parent
abb2510561
commit
73a2858147
@ -11,7 +11,7 @@ class QgsScaleWidget : QWidget
|
|||||||
public:
|
public:
|
||||||
QgsScaleWidget( QWidget* parent = 0 );
|
QgsScaleWidget( QWidget* parent = 0 );
|
||||||
~QgsScaleWidget();
|
~QgsScaleWidget();
|
||||||
|
|
||||||
//! shows a button to set the scale to the current scale of the map canvas next to the combobox
|
//! shows a button to set the scale to the current scale of the map canvas next to the combobox
|
||||||
//! @note the map canvas must be defined to show the button
|
//! @note the map canvas must be defined to show the button
|
||||||
void setShowCurrentScaleButton( bool showCurrentScaleButton );
|
void setShowCurrentScaleButton( bool showCurrentScaleButton );
|
||||||
|
@ -1452,14 +1452,14 @@ void QgsOptions::on_mBoldGroupBoxTitleChkBx_clicked( bool chkd )
|
|||||||
mStyleSheetBuilder->buildStyleSheet( mStyleSheetNewOpts );
|
mStyleSheetBuilder->buildStyleSheet( mStyleSheetNewOpts );
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsOptions::on_leProjectGlobalCrs_crsChanged(QgsCoordinateReferenceSystem crs)
|
void QgsOptions::on_leProjectGlobalCrs_crsChanged( QgsCoordinateReferenceSystem crs )
|
||||||
{
|
{
|
||||||
mDefaultCrs = crs;
|
mDefaultCrs = crs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsOptions::on_leLayerGlobalCrs_crsChanged(QgsCoordinateReferenceSystem crs)
|
void QgsOptions::on_leLayerGlobalCrs_crsChanged( QgsCoordinateReferenceSystem crs )
|
||||||
{
|
{
|
||||||
mLayerDefaultCrs = crs;
|
mLayerDefaultCrs = crs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void QgsOptions::on_lstGdalDrivers_itemDoubleClicked( QTreeWidgetItem * item, int column )
|
void QgsOptions::on_lstGdalDrivers_itemDoubleClicked( QTreeWidgetItem * item, int column )
|
||||||
|
@ -64,9 +64,9 @@ class APP_EXPORT QgsOptions : public QgsOptionsDialogBase, private Ui::QgsOption
|
|||||||
void on_pbnTemplateFolderBrowse_pressed();
|
void on_pbnTemplateFolderBrowse_pressed();
|
||||||
void on_pbnTemplateFolderReset_pressed();
|
void on_pbnTemplateFolderReset_pressed();
|
||||||
//! Slot called when user chooses to change the project wide projection.
|
//! Slot called when user chooses to change the project wide projection.
|
||||||
void on_leProjectGlobalCrs_crsChanged(QgsCoordinateReferenceSystem crs);
|
void on_leProjectGlobalCrs_crsChanged( QgsCoordinateReferenceSystem crs );
|
||||||
//! Slot called when user chooses to change the default 'on the fly' projection.
|
//! Slot called when user chooses to change the default 'on the fly' projection.
|
||||||
void on_leLayerGlobalCrs_crsChanged(QgsCoordinateReferenceSystem crs);
|
void on_leLayerGlobalCrs_crsChanged( QgsCoordinateReferenceSystem crs );
|
||||||
void on_lstGdalDrivers_itemDoubleClicked( QTreeWidgetItem * item, int column );
|
void on_lstGdalDrivers_itemDoubleClicked( QTreeWidgetItem * item, int column );
|
||||||
void on_pbnEditCreateOptions_pressed();
|
void on_pbnEditCreateOptions_pressed();
|
||||||
void on_pbnEditPyramidsOptions_pressed();
|
void on_pbnEditPyramidsOptions_pressed();
|
||||||
|
@ -62,7 +62,7 @@ QList<QDesignerCustomWidgetInterface*> QgisCustomWidgets::customWidgets() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if QT_VERSION < 0x050000
|
#if QT_VERSION < 0x050000
|
||||||
Q_EXPORT_PLUGIN2( customwidgetsplugin, QgisCustomWidgets )
|
Q_EXPORT_PLUGIN2( customwidgetsplugin, QgisCustomWidgets )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ class QgisCustomWidgets : public QObject, public QDesignerCustomWidgetCollection
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
Q_PLUGIN_METADATA(IID "org.qgis.CustomWidgets")
|
Q_PLUGIN_METADATA( IID "org.qgis.CustomWidgets" )
|
||||||
#endif
|
#endif
|
||||||
Q_INTERFACES( QDesignerCustomWidgetCollectionInterface )
|
Q_INTERFACES( QDesignerCustomWidgetCollectionInterface )
|
||||||
|
|
||||||
|
@ -34,36 +34,36 @@ class GUI_EXPORT QgsScaleWidget : public QWidget
|
|||||||
Q_PROPERTY( bool showCurrentScaleButton READ showCurrentScaleButton WRITE setShowCurrentScaleButton )
|
Q_PROPERTY( bool showCurrentScaleButton READ showCurrentScaleButton WRITE setShowCurrentScaleButton )
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QgsScaleWidget(QWidget *parent = 0);
|
explicit QgsScaleWidget( QWidget *parent = 0 );
|
||||||
|
|
||||||
virtual ~QgsScaleWidget();
|
virtual ~QgsScaleWidget();
|
||||||
|
|
||||||
//! shows a button to set the scale to the current scale of the map canvas next to the combobox
|
//! shows a button to set the scale to the current scale of the map canvas next to the combobox
|
||||||
//! @note the map canvas must be defined to show the button
|
//! @note the map canvas must be defined to show the button
|
||||||
void setShowCurrentScaleButton( bool showCurrentScaleButton );
|
void setShowCurrentScaleButton( bool showCurrentScaleButton );
|
||||||
bool showCurrentScaleButton(){ return mShowCurrentScaleButton;}
|
bool showCurrentScaleButton() { return mShowCurrentScaleButton;}
|
||||||
|
|
||||||
//! set the map canvas associated to the current button
|
//! set the map canvas associated to the current button
|
||||||
void setMapCanvas( QgsMapCanvas* canvas );
|
void setMapCanvas( QgsMapCanvas* canvas );
|
||||||
|
|
||||||
//! Function to read the selected scale as text
|
//! Function to read the selected scale as text
|
||||||
QString scaleString(){return mScaleComboBox->scaleString();}
|
QString scaleString() { return mScaleComboBox->scaleString(); }
|
||||||
//! Function to set the selected scale from text
|
//! Function to set the selected scale from text
|
||||||
bool setScaleString( QString scaleTxt ){return mScaleComboBox->setScaleString(scaleTxt);}
|
bool setScaleString( QString scaleTxt ) { return mScaleComboBox->setScaleString( scaleTxt ); }
|
||||||
//! Function to read the selected scale as double
|
//! Function to read the selected scale as double
|
||||||
double scale(){return mScaleComboBox->scale();}
|
double scale() { return mScaleComboBox->scale();}
|
||||||
//! Function to set the selected scale from double
|
//! Function to set the selected scale from double
|
||||||
void setScale( double scale ){return mScaleComboBox->setScale(scale);}
|
void setScale( double scale ) { return mScaleComboBox->setScale( scale ); }
|
||||||
|
|
||||||
//! Helper function to convert a double to scale string
|
//! Helper function to convert a double to scale string
|
||||||
// Performs rounding, so an exact representation is not to
|
// Performs rounding, so an exact representation is not to
|
||||||
// be expected.
|
// be expected.
|
||||||
static QString toString( double scale ){return QgsScaleComboBox::toString(scale);}
|
static QString toString( double scale ) { return QgsScaleComboBox::toString( scale ); }
|
||||||
//! Helper function to convert a scale string to double
|
//! Helper function to convert a scale string to double
|
||||||
static double toDouble( QString scaleString, bool *ok = NULL ){return QgsScaleComboBox::toDouble(scaleString, ok);}
|
static double toDouble( QString scaleString, bool *ok = 0 ) { return QgsScaleComboBox::toDouble( scaleString, ok ); }
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void updateScales( const QStringList &scales = QStringList() ){return mScaleComboBox->updateScales(scales);}
|
void updateScales( const QStringList &scales = QStringList() ) { return mScaleComboBox->updateScales( scales ); }
|
||||||
|
|
||||||
//! assign the current scale from the map canvas
|
//! assign the current scale from the map canvas
|
||||||
void setScaleFromCanvas();
|
void setScaleFromCanvas();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user