Replace check box by checkbox

This commit is contained in:
Harrissou Sant-anna 2017-07-02 22:51:26 +02:00
parent 338b4c0621
commit 35cbfa0087
20 changed files with 30 additions and 28 deletions

View File

@ -63,7 +63,7 @@ class QgsDefaultSearchWidgetWrapper : QgsSearchWidgetWrapper
QCheckBox *caseSensitiveCheckBox(); QCheckBox *caseSensitiveCheckBox();
%Docstring %Docstring
Returns a pointer to the case sensitivity check box in the widget. Returns a pointer to the case sensitivity checkbox in the widget.
.. note:: .. note::
this method is in place for unit testing only, and is not considered this method is in place for unit testing only, and is not considered

View File

@ -170,7 +170,7 @@ class QgsEffectStackPropertiesDialog: QgsDialog
class QgsEffectStackCompactWidget: QgsPanelWidget class QgsEffectStackCompactWidget: QgsPanelWidget
{ {
%Docstring %Docstring
A small widget consisting of a check box for enabling/disabling an effect stack A small widget consisting of a checkbox for enabling/disabling an effect stack
and a button for opening an effect stack customisation dialog. and a button for opening an effect stack customisation dialog.
.. versionadded:: 2.9 .. versionadded:: 2.9

View File

@ -13,7 +13,7 @@ You can add any random text to the map not only a copyright label.
<li>Click on <label>View > Decorations > Copyright Label</label>. <li>Click on <label>View > Decorations > Copyright Label</label>.
<li>Enter the text you want to place on the map. You can use HTML. <li>Enter the text you want to place on the map. You can use HTML.
<li>Choose the placement of the label from the <label>Placement Bottom Right</label> drop-down box. <li>Choose the placement of the label from the <label>Placement Bottom Right</label> drop-down box.
<li>Make sure the <label>Enable Copyright Label check box</label> is checked. <li>Make sure the <label>Enable Copyright Label checkbox</label> is checked.
<li>Click <label>OK</label>. <li>Click <label>OK</label>.
</ol> </ol>
<a name="text"> <a name="text">

View File

@ -11,7 +11,7 @@ Choose the type of layer you want to create.
<h4>EPSG SRID</h4> <h4>EPSG SRID</h4>
Enter the EPSG number for the spatial reference id (SRID). By default the SRID for WGS 84 is filled in for you. Click on <label>Find SRID</label> button to change the coordinate reference system of the layer if needed. The SRID must exist within the spatial_ref_sys in your SpatiaLite database. You can search for the SRID using partial matches on both name and SRID. Enter the EPSG number for the spatial reference id (SRID). By default the SRID for WGS 84 is filled in for you. Click on <label>Find SRID</label> button to change the coordinate reference system of the layer if needed. The SRID must exist within the spatial_ref_sys in your SpatiaLite database. You can search for the SRID using partial matches on both name and SRID.
<h4>Create an auto-incrementing Primary Key</h4> <h4>Create an auto-incrementing Primary Key</h4>
Clicking this check box will add a primary key to the new layer. This key field will be auto-incrementing, meaning you don't have to enter a value for it when adding features to the attribute table of the layer. Clicking this checkbox will add a primary key to the new layer. This key field will be auto-incrementing, meaning you don't have to enter a value for it when adding features to the attribute table of the layer.
<h4>New attribute</h4> <h4>New attribute</h4>
Add the desired attributes by clicking on the <label>Add to attributes list</label> button after you have specified a name and type for the attribute. Only real, integer, and string attributes are supported.<br/> Add the desired attributes by clicking on the <label>Add to attributes list</label> button after you have specified a name and type for the attribute. Only real, integer, and string attributes are supported.<br/>
Width and precision are irrelevant in a SpatiaLite database so you do not have to specify these. Width and precision are irrelevant in a SpatiaLite database so you do not have to specify these.

View File

@ -28,7 +28,7 @@ By default, QGIS renders all visible layers whenever the map canvas must be refr
</ul> </ul>
QGIS allows you to control the rendering process in a number of ways:<p> QGIS allows you to control the rendering process in a number of ways:<p>
You can set an option to always load new layers without drawing them.<br> You can set an option to always load new layers without drawing them.<br>
This means the layer will be added to the map, but its visibility check box in the legend will be unchecked by default. To set this option, uncheck the <label>By default new layers added to the map should be displayed</label> check box.<p> This means the layer will be added to the map, but its visibility checkbox in the legend will be unchecked by default. To set this option, uncheck the <label>By default new layers added to the map should be displayed</label> checkbox.<p>
You can set an option to update the map display as features are drawn. <br> You can set an option to update the map display as features are drawn. <br>
By default, QGIS does not display any features for a layer until the entire layer has been rendered. To update the display as features are read from the data store, set the <label>Number of features to draw before updating the display</label> to an appropriate value. Setting a value of 0 disables update during drawing (this is the default). Setting a value too low will result in poor performance as the map canvas is continually updated during the reading of the features. A suggested value to start with is 500. By default, QGIS does not display any features for a layer until the entire layer has been rendered. To update the display as features are read from the data store, set the <label>Number of features to draw before updating the display</label> to an appropriate value. Setting a value of 0 disables update during drawing (this is the default). Setting a value too low will result in poor performance as the map canvas is continually updated during the reading of the features. A suggested value to start with is 500.
<a name="map"> <a name="map">

View File

@ -109,7 +109,7 @@
</p> </p>
<p> <p>
To use 'on the fly' CRS transformation, click the <label>Enable 'on the fly' To use 'on the fly' CRS transformation, click the <label>Enable 'on the fly'
CRS transformation</label> check box. Then choose the projection for the CRS transformation</label> checkbox. Then choose the projection for the
project (map canvas) from the list of Geographic or Projected coordinate project (map canvas) from the list of Geographic or Projected coordinate
systems. systems.
</p> </p>

View File

@ -38,7 +38,7 @@ If you wish to always use a particular style whenever the layer is loaded, use t
<h4>Labels</h4> <h4>Labels</h4>
</a> </a>
The Labels tab allows you to enable labeling features and control a number of options related to fonts, placement, style, alignment and buffering.<br/> The Labels tab allows you to enable labeling features and control a number of options related to fonts, placement, style, alignment and buffering.<br/>
Check the <label>Display labels</label> check box to enable labeling. Check the <label>Display labels</label> checkbox to enable labeling.
<h5>Basic Label options</h5> <h5>Basic Label options</h5>
Choose the field to label with.<p> Choose the field to label with.<p>
@ -54,7 +54,7 @@ The <label>Font size units</label> allows you to select between <label>Points</l
<h5>Buffer labels</h5> <h5>Buffer labels</h5>
To buffer the labels means putting a backdrop around them to make them stand out better. To buffer the lakes labels: To buffer the labels means putting a backdrop around them to make them stand out better. To buffer the lakes labels:
<ol> <ol>
<li>Click the <label>Buffer Labels</label> check box to enable buffering. <li>Click the <label>Buffer Labels</label> checkbox to enable buffering.
<li>Choose a size for the buffer using the spin box. <li>Choose a size for the buffer using the spin box.
<li>Choose a color by clicking on <label>Color</label> and choosing your favorite from the color selector. You can also set some transparency for the buffer if you prefer. <li>Choose a color by clicking on <label>Color</label> and choosing your favorite from the color selector. You can also set some transparency for the buffer if you prefer.
<li>Click <label>Apply</label> to see if you like the changes. <li>Click <label>Apply</label> to see if you like the changes.
@ -82,7 +82,7 @@ Within the Attributes tab you also find an edit widget column. This column can b
<li><label>Enumeration</label> Opens a combo box with values that can be used within the columns type. This is currently only supported by the Postgres provider. <li><label>Enumeration</label> Opens a combo box with values that can be used within the columns type. This is currently only supported by the Postgres provider.
<li><label>Immutable</label> The immutable attribute column is read-only. The user is not able to modify the content. <li><label>Immutable</label> The immutable attribute column is read-only. The user is not able to modify the content.
<li><label>Hidden</label> A hidden attribute column is invisible to the user. <li><label>Hidden</label> A hidden attribute column is invisible to the user.
<li><label>Checkbox</label> A check box is shown. The value representing the state of the check box in the attribute has to be entered. <li><label>Checkbox</label> A checkbox is shown. The value representing the state of the checkbox in the attribute has to be entered.
<li><label>Text edit</label> A text edit field is shown, that allows entering multiline text. <li><label>Text edit</label> A text edit field is shown, that allows entering multiline text.
</ul> </ul>

View File

@ -1235,6 +1235,7 @@ chceked:checked
chceking:checking chceking:checking
chceks:checks chceks:checks
check-box:checkbox check-box:checkbox
check box:checkbox
checkk:check checkk:check
checksuming:checksumming checksuming:checksumming
cheif:chief cheif:chief
@ -3297,6 +3298,7 @@ heathy:healthy
Heidelburg:Heidelberg Heidelburg:Heidelberg
heigh:height heigh:height
heigher:higher heigher:higher
heighest:highest
heigt:height heigt:height
heigth:height heigth:height
heirachies:hierarchies heirachies:hierarchies

View File

@ -596,13 +596,13 @@ void QgsComposerMapWidget::updateGuiElements()
mMapRotationSpinBox->setValue( mComposerMap->mapRotation( QgsComposerObject::OriginalValue ) ); mMapRotationSpinBox->setValue( mComposerMap->mapRotation( QgsComposerObject::OriginalValue ) );
// follow preset check box // follow preset checkbox
mFollowVisibilityPresetCheckBox->setCheckState( mFollowVisibilityPresetCheckBox->setCheckState(
mComposerMap->followVisibilityPreset() ? Qt::Checked : Qt::Unchecked ); mComposerMap->followVisibilityPreset() ? Qt::Checked : Qt::Unchecked );
int presetModelIndex = mFollowVisibilityPresetCombo->findText( mComposerMap->followVisibilityPresetName() ); int presetModelIndex = mFollowVisibilityPresetCombo->findText( mComposerMap->followVisibilityPresetName() );
mFollowVisibilityPresetCombo->setCurrentIndex( presetModelIndex != -1 ? presetModelIndex : 0 ); // 0 == none mFollowVisibilityPresetCombo->setCurrentIndex( presetModelIndex != -1 ? presetModelIndex : 0 ); // 0 == none
//keep layer list check box //keep layer list checkbox
if ( mComposerMap->keepLayerSet() ) if ( mComposerMap->keepLayerSet() )
{ {
mKeepLayerListCheckBox->setCheckState( Qt::Checked ); mKeepLayerListCheckBox->setCheckState( Qt::Checked );
@ -1185,7 +1185,7 @@ void QgsComposerMapWidget::on_mGridListWidget_itemChanged( QListWidgetItem *item
grid->setName( item->text() ); grid->setName( item->text() );
if ( item->isSelected() ) if ( item->isSelected() )
{ {
//update check box title if item is current item //update checkbox title if item is current item
mDrawGridCheckBox->setText( QString( tr( "Draw \"%1\" grid" ) ).arg( grid->name() ) ); mDrawGridCheckBox->setText( QString( tr( "Draw \"%1\" grid" ) ).arg( grid->name() ) );
} }
} }
@ -1397,7 +1397,7 @@ void QgsComposerMapWidget::on_mOverviewListWidget_itemChanged( QListWidgetItem *
overview->setName( item->text() ); overview->setName( item->text() );
if ( item->isSelected() ) if ( item->isSelected() )
{ {
//update check box title if item is current item //update checkbox title if item is current item
mOverviewCheckBox->setTitle( QString( tr( "Draw \"%1\" overview" ) ).arg( overview->name() ) ); mOverviewCheckBox->setTitle( QString( tr( "Draw \"%1\" overview" ) ).arg( overview->name() ) );
} }
} }

View File

@ -3381,7 +3381,7 @@ void QgisApp::addUserInputWidget( QWidget *widget )
void QgisApp::initLayerTreeView() void QgisApp::initLayerTreeView()
{ {
mLayerTreeView->setWhatsThis( tr( "Map legend that displays all the layers currently on the map canvas. Click on the check box to turn a layer on or off. Double click on a layer in the legend to customize its appearance and set other properties." ) ); mLayerTreeView->setWhatsThis( tr( "Map legend that displays all the layers currently on the map canvas. Click on the checkbox to turn a layer on or off. Double click on a layer in the legend to customize its appearance and set other properties." ) );
mLayerTreeDock = new QgsDockWidget( tr( "Layers Panel" ), this ); mLayerTreeDock = new QgsDockWidget( tr( "Layers Panel" ), this );
mLayerTreeDock->setObjectName( QStringLiteral( "Layers" ) ); mLayerTreeDock->setObjectName( QStringLiteral( "Layers" ) );

View File

@ -105,7 +105,7 @@ void QgsDecorationNorthArrow::run()
void QgsDecorationNorthArrow::render( const QgsMapSettings &mapSettings, QgsRenderContext &context ) void QgsDecorationNorthArrow::render( const QgsMapSettings &mapSettings, QgsRenderContext &context )
{ {
//Large IF statement controlled by enable check box //Large IF statement controlled by enable checkbox
if ( enabled() ) if ( enabled() )
{ {
QSize size( 64, 64 ); QSize size( 64, 64 );

View File

@ -56,8 +56,8 @@ class CORE_EXPORT QgsComposerModel: public QAbstractItemModel
//! Columns returned by the model //! Columns returned by the model
enum Columns enum Columns
{ {
Visibility = 0, //!< Item visibility check box Visibility = 0, //!< Item visibility checkbox
LockStatus, //!< Item lock status check box LockStatus, //!< Item lock status checkbox
ItemId, //!< Item ID ItemId, //!< Item ID
}; };

View File

@ -100,7 +100,7 @@ class CORE_EXPORT QgsLayerTreeModel : public QAbstractItemModel
// behavioral flags // behavioral flags
AllowNodeReorder = 0x1000, //!< Allow reordering with drag'n'drop AllowNodeReorder = 0x1000, //!< Allow reordering with drag'n'drop
AllowNodeRename = 0x2000, //!< Allow renaming of groups and layers AllowNodeRename = 0x2000, //!< Allow renaming of groups and layers
AllowNodeChangeVisibility = 0x4000, //!< Allow user to set node visibility with a check box AllowNodeChangeVisibility = 0x4000, //!< Allow user to set node visibility with a checkbox
AllowLegendChangeState = 0x8000, //!< Allow check boxes for legend nodes (if supported by layer's legend) AllowLegendChangeState = 0x8000, //!< Allow check boxes for legend nodes (if supported by layer's legend)
ActionHierarchical = 0x10000, //!< Check/uncheck action has consequences on children (or parents for leaf node) ActionHierarchical = 0x10000, //!< Check/uncheck action has consequences on children (or parents for leaf node)
}; };

View File

@ -49,7 +49,7 @@ void QgsEditorWidgetRegistry::initEditors( QgsMapCanvas *mapCanvas, QgsMessageBa
registerWidget( QStringLiteral( "ValueMap" ), new QgsValueMapWidgetFactory( tr( "Value Map" ) ) ); registerWidget( QStringLiteral( "ValueMap" ), new QgsValueMapWidgetFactory( tr( "Value Map" ) ) );
registerWidget( QStringLiteral( "Enumeration" ), new QgsEnumerationWidgetFactory( tr( "Enumeration" ) ) ); registerWidget( QStringLiteral( "Enumeration" ), new QgsEnumerationWidgetFactory( tr( "Enumeration" ) ) );
registerWidget( QStringLiteral( "Hidden" ), new QgsHiddenWidgetFactory( tr( "Hidden" ) ) ); registerWidget( QStringLiteral( "Hidden" ), new QgsHiddenWidgetFactory( tr( "Hidden" ) ) );
registerWidget( QStringLiteral( "CheckBox" ), new QgsCheckboxWidgetFactory( tr( "Check Box" ) ) ); registerWidget( QStringLiteral( "CheckBox" ), new QgsCheckboxWidgetFactory( tr( "Checkbox" ) ) );
registerWidget( QStringLiteral( "ValueRelation" ), new QgsValueRelationWidgetFactory( tr( "Value Relation" ) ) ); registerWidget( QStringLiteral( "ValueRelation" ), new QgsValueRelationWidgetFactory( tr( "Value Relation" ) ) );
registerWidget( QStringLiteral( "UuidGenerator" ), new QgsUuidWidgetFactory( tr( "Uuid Generator" ) ) ); registerWidget( QStringLiteral( "UuidGenerator" ), new QgsUuidWidgetFactory( tr( "Uuid Generator" ) ) );
registerWidget( QStringLiteral( "Color" ), new QgsColorWidgetFactory( tr( "Color" ) ) ); registerWidget( QStringLiteral( "Color" ), new QgsColorWidgetFactory( tr( "Color" ) ) );
@ -186,7 +186,7 @@ bool QgsEditorWidgetRegistry::registerWidget( const QString &widgetId, QgsEditor
{ {
mWidgetFactories.insert( widgetId, widgetFactory ); mWidgetFactories.insert( widgetId, widgetFactory );
// Use this factory as default where it provides the heighest priority // Use this factory as default where it provides the highest priority
QHash<const char *, int> types = widgetFactory->supportedWidgetTypes(); QHash<const char *, int> types = widgetFactory->supportedWidgetTypes();
QHash<const char *, int>::ConstIterator it; QHash<const char *, int>::ConstIterator it;
it = types.constBegin(); it = types.constBegin();

View File

@ -66,7 +66,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper
*/ */
QgsFilterLineEdit *lineEdit(); QgsFilterLineEdit *lineEdit();
/** Returns a pointer to the case sensitivity check box in the widget. /** Returns a pointer to the case sensitivity checkbox in the widget.
* \note this method is in place for unit testing only, and is not considered * \note this method is in place for unit testing only, and is not considered
* stable API * stable API
*/ */

View File

@ -179,7 +179,7 @@ class GUI_EXPORT QgsEffectStackPropertiesDialog: public QgsDialog
/** \ingroup gui /** \ingroup gui
* \class QgsEffectStackCompactWidget * \class QgsEffectStackCompactWidget
* \brief A small widget consisting of a check box for enabling/disabling an effect stack * \brief A small widget consisting of a checkbox for enabling/disabling an effect stack
* and a button for opening an effect stack customisation dialog. * and a button for opening an effect stack customisation dialog.
* *
* \since QGIS 2.9 * \since QGIS 2.9

View File

@ -97,7 +97,7 @@ void QgsDetailedItemDelegate::paintManually( QPainter *thepPainter,
const QgsDetailedItemData &data ) const const QgsDetailedItemData &data ) const
{ {
// //
// Get the strings and check box properties // Get the strings and checkbox properties
// //
//bool myCheckState = index.model()->data(theIndex, Qt::CheckStateRole).toBool(); //bool myCheckState = index.model()->data(theIndex, Qt::CheckStateRole).toBool();
mpCheckBox->setChecked( data.isChecked() ); mpCheckBox->setChecked( data.isChecked() );

View File

@ -54,7 +54,7 @@ class GUI_EXPORT QgsMessageViewer: public QDialog, public QgsMessageOutput, priv
// A checkbox that can be used for something like // A checkbox that can be used for something like
// "don't show this message again" // "don't show this message again"
void setCheckBoxText( const QString &text ); void setCheckBoxText( const QString &text );
// Make the check box visible/invisible // Make the checkbox visible/invisible
void setCheckBoxVisible( bool visible ); void setCheckBoxVisible( bool visible );
// Sets the check state // Sets the check state
void setCheckBoxState( Qt::CheckState state ); void setCheckBoxState( Qt::CheckState state );

View File

@ -806,7 +806,7 @@ void eVisGenericEventBrowserGui::on_buttonboxOptions_clicked( QAbstractButton *b
} }
/** /**
* Slot called when the state changes for the chkboxApplyPathRulesToDocs check box. * Slot called when the state changes for the chkboxApplyPathRulesToDocs checkbox.
* @param state - The new state of the checkbox * @param state - The new state of the checkbox
*/ */
void eVisGenericEventBrowserGui::on_chkboxApplyPathRulesToDocs_stateChanged( int state ) void eVisGenericEventBrowserGui::on_chkboxApplyPathRulesToDocs_stateChanged( int state )
@ -911,7 +911,7 @@ void eVisGenericEventBrowserGui::on_chkboxDisplayCompassBearing_stateChanged( in
} }
/** /**
* Slot called when the state changes for the chkboxEventImagePathRelative check box. * Slot called when the state changes for the chkboxEventImagePathRelative checkbox.
* @param state - The new state of the checkbox * @param state - The new state of the checkbox
*/ */
void eVisGenericEventBrowserGui::on_chkboxEventImagePathRelative_stateChanged( int state ) void eVisGenericEventBrowserGui::on_chkboxEventImagePathRelative_stateChanged( int state )
@ -927,7 +927,7 @@ void eVisGenericEventBrowserGui::on_chkboxEventImagePathRelative_stateChanged( i
} }
/** /**
* Slot called when the state changes for the chkboxUseOnlyFilename check box. * Slot called when the state changes for the chkboxUseOnlyFilename checkbox.
* @param state - The new state of the checkbox * @param state - The new state of the checkbox
*/ */
void eVisGenericEventBrowserGui::on_chkboxUseOnlyFilename_stateChanged( int state ) void eVisGenericEventBrowserGui::on_chkboxUseOnlyFilename_stateChanged( int state )

View File

@ -22,7 +22,7 @@ QgsXyzConnectionDialog::QgsXyzConnectionDialog( QWidget *parent )
{ {
setupUi( this ); setupUi( this );
// Behavior for min and max zoom check box // Behavior for min and max zoom checkbox
connect( mCheckBoxZMin, &QCheckBox::toggled, mSpinZMin, &QSpinBox::setEnabled ); connect( mCheckBoxZMin, &QCheckBox::toggled, mSpinZMin, &QSpinBox::setEnabled );
connect( mCheckBoxZMax, &QCheckBox::toggled, mSpinZMax, &QSpinBox::setEnabled ); connect( mCheckBoxZMax, &QCheckBox::toggled, mSpinZMax, &QSpinBox::setEnabled );
} }