Skip to content
Permalink
Browse files

Capitalization

  • Loading branch information
nyalldawson committed Nov 13, 2018
1 parent 3fa4d6a commit 4761d7cb9796c3577189d945530cfe420be752c4
@@ -989,21 +989,21 @@ void QgsPluginManager::showPluginDetails( QStandardItem *item )
buttonInstall->setDefault( false );
if ( metadata->value( QStringLiteral( "status" ) ) == QLatin1String( "upgradeable" ) )
{
buttonInstall->setText( tr( "Upgrade plugin" ) );
buttonInstall->setText( tr( "Upgrade Plugin" ) );
buttonInstall->setDefault( true );
}
else if ( metadata->value( QStringLiteral( "status" ) ) == QLatin1String( "newer" ) )
{
buttonInstall->setText( tr( "Downgrade plugin" ) );
buttonInstall->setText( tr( "Downgrade Plugin" ) );
}
else if ( metadata->value( QStringLiteral( "status" ) ) == QLatin1String( "not installed" ) || metadata->value( QStringLiteral( "status" ) ) == QLatin1String( "new" ) )
{
buttonInstall->setText( tr( "Install plugin" ) );
buttonInstall->setText( tr( "Install Plugin" ) );
}
else
{
// Default (will be grayed out if not available for reinstallation)
buttonInstall->setText( tr( "Reinstall plugin" ) );
buttonInstall->setText( tr( "Reinstall Plugin" ) );
}

// Enable/disable buttons
@@ -5862,7 +5862,7 @@ bool QgisApp::addProject( const QString &projectFile )


QToolButton *btnEnableMacros = new QToolButton();
btnEnableMacros->setText( tr( "Enable macros" ) );
btnEnableMacros->setText( tr( "Enable Macros" ) );
btnEnableMacros->setStyleSheet( QStringLiteral( "background-color: rgba(255, 255, 255, 0); color: black; text-decoration: underline;" ) );
btnEnableMacros->setCursor( Qt::PointingHandCursor );
btnEnableMacros->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Preferred );
@@ -43,10 +43,10 @@ void QgsHandleBadLayersHandler::handleBadLayers( const QList<QDomNode> &layers )
QgsHandleBadLayers *dialog = new QgsHandleBadLayers( layers );

dialog->buttonBox->button( QDialogButtonBox::Ignore )->setToolTip( tr( "Import all unavailable layers unmodified (you can fix them later)." ) );
dialog->buttonBox->button( QDialogButtonBox::Ignore )->setText( tr( "Keep unavailable layers" ) );
dialog->buttonBox->button( QDialogButtonBox::Ignore )->setText( tr( "Keep Unavailable Layers" ) );
dialog->buttonBox->button( QDialogButtonBox::Discard )->setToolTip( tr( "Remove all unavailable layers from the project" ) );
dialog->buttonBox->button( QDialogButtonBox::Discard )->setText( tr( "Remove unavailable layers" ) );
dialog->buttonBox->button( QDialogButtonBox::Discard )->setIcon( QgsApplication::getThemeIcon( "/mActionDeleteSelected.svg" ) );
dialog->buttonBox->button( QDialogButtonBox::Discard )->setText( tr( "Remove Unavailable Layers" ) );
dialog->buttonBox->button( QDialogButtonBox::Discard )->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionDeleteSelected.svg" ) ) );

if ( dialog->layerCount() < layers.size() )
QgisApp::instance()->messageBar()->pushMessage(
@@ -79,12 +79,12 @@ QgsRelationReferenceWidget::QgsRelationReferenceWidget( QWidget *parent )
// open form button
mOpenFormButton = new QToolButton();
mOpenFormButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionPropertyItem.svg" ) ) );
mOpenFormButton->setText( tr( "Open related feature form" ) );
mOpenFormButton->setText( tr( "Open Related Feature Form" ) );
editLayout->addWidget( mOpenFormButton );

mAddEntryButton = new QToolButton();
mAddEntryButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionAdd.svg" ) ) );
mAddEntryButton->setText( tr( "Add new entry" ) );
mAddEntryButton->setText( tr( "Add New Entry" ) );
editLayout->addWidget( mAddEntryButton );

// highlight button
@@ -102,14 +102,14 @@ QgsRelationReferenceWidget::QgsRelationReferenceWidget( QWidget *parent )
// map identification button
mMapIdentificationButton = new QToolButton( this );
mMapIdentificationButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionMapIdentification.svg" ) ) );
mMapIdentificationButton->setText( tr( "Select on map" ) );
mMapIdentificationButton->setText( tr( "Select on Map" ) );
mMapIdentificationButton->setCheckable( true );
editLayout->addWidget( mMapIdentificationButton );

// remove foreign key button
mRemoveFKButton = new QToolButton( this );
mRemoveFKButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionRemove.svg" ) ) );
mRemoveFKButton->setText( tr( "No selection" ) );
mRemoveFKButton->setText( tr( "No Selection" ) );
editLayout->addWidget( mRemoveFKButton );

// add line to top layout
@@ -245,7 +245,7 @@ void QgsSearchWidgetToolButton::updateState()
}
else
{
setText( tr( "Exclude field" ) );
setText( tr( "Exclude Field" ) );
setToolTip( QString() );
}

@@ -1414,26 +1414,26 @@ void QgsAttributeForm::init()
mSearchButtonBox->setLayout( boxLayout );
mSearchButtonBox->setObjectName( QStringLiteral( "searchButtonBox" ) );

QPushButton *clearButton = new QPushButton( tr( "&Reset form" ), mSearchButtonBox );
QPushButton *clearButton = new QPushButton( tr( "&Reset Form" ), mSearchButtonBox );
connect( clearButton, &QPushButton::clicked, this, &QgsAttributeForm::resetSearch );
boxLayout->addWidget( clearButton );
boxLayout->addStretch( 1 );

QPushButton *flashButton = new QPushButton();
flashButton->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
flashButton->setText( tr( "&Flash features" ) );
flashButton->setText( tr( "&Flash Features" ) );
connect( flashButton, &QToolButton::clicked, this, &QgsAttributeForm::searchFlash );
boxLayout->addWidget( flashButton );

QPushButton *zoomButton = new QPushButton();
zoomButton->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
zoomButton->setText( tr( "&Zoom to features" ) );
zoomButton->setText( tr( "&Zoom to Features" ) );
connect( zoomButton, &QToolButton::clicked, this, &QgsAttributeForm::searchZoomTo );
boxLayout->addWidget( zoomButton );

QToolButton *selectButton = new QToolButton();
selectButton->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
selectButton->setText( tr( "&Select features" ) );
selectButton->setText( tr( "&Select Features" ) );
selectButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconFormSelect.svg" ) ) );
selectButton->setPopupMode( QToolButton::MenuButtonPopup );
selectButton->setToolButtonStyle( Qt::ToolButtonTextBesideIcon );
@@ -49,50 +49,50 @@ QgsRelationEditorWidget::QgsRelationEditorWidget( QWidget *parent )
mToggleEditingButton = new QToolButton( this );
mToggleEditingButton->setObjectName( QStringLiteral( "mToggleEditingButton" ) );
mToggleEditingButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionToggleEditing.svg" ) ) );
mToggleEditingButton->setText( tr( "Toggle editing" ) );
mToggleEditingButton->setText( tr( "Toggle Editing" ) );
mToggleEditingButton->setEnabled( false );
mToggleEditingButton->setCheckable( true );
mToggleEditingButton->setToolTip( tr( "Toggle editing mode for child layer" ) );
buttonLayout->addWidget( mToggleEditingButton );
// save Edits
mSaveEditsButton = new QToolButton( this );
mSaveEditsButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionSaveEdits.svg" ) ) );
mSaveEditsButton->setText( tr( "Save child layer edits" ) );
mSaveEditsButton->setText( tr( "Save Child Layer Edits" ) );
mSaveEditsButton->setToolTip( tr( "Save child layer edits" ) );
mSaveEditsButton->setEnabled( true );
buttonLayout->addWidget( mSaveEditsButton );
// add feature
mAddFeatureButton = new QToolButton( this );
mAddFeatureButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionNewTableRow.svg" ) ) );
mAddFeatureButton->setText( tr( "Add child feature" ) );
mAddFeatureButton->setText( tr( "Add Child Feature" ) );
mAddFeatureButton->setToolTip( tr( "Add child feature" ) );
mAddFeatureButton->setObjectName( QStringLiteral( "mAddFeatureButton" ) );
buttonLayout->addWidget( mAddFeatureButton );
// duplicate feature
mDuplicateFeatureButton = new QToolButton( this );
mDuplicateFeatureButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionDuplicateFeature.svg" ) ) );
mDuplicateFeatureButton->setText( tr( "Duplicate child feature" ) );
mDuplicateFeatureButton->setText( tr( "Duplicate Child Feature" ) );
mDuplicateFeatureButton->setToolTip( tr( "Duplicate child feature" ) );
mDuplicateFeatureButton->setObjectName( QStringLiteral( "mDuplicateFeatureButton" ) );
buttonLayout->addWidget( mDuplicateFeatureButton );
// delete feature
mDeleteFeatureButton = new QToolButton( this );
mDeleteFeatureButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionDeleteSelected.svg" ) ) );
mDeleteFeatureButton->setText( tr( "Delete child feature" ) );
mDeleteFeatureButton->setText( tr( "Delete Child Feature" ) );
mDeleteFeatureButton->setToolTip( tr( "Delete child feature" ) );
mDeleteFeatureButton->setObjectName( QStringLiteral( "mDeleteFeatureButton" ) );
buttonLayout->addWidget( mDeleteFeatureButton );
// link feature
mLinkFeatureButton = new QToolButton( this );
mLinkFeatureButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionLink.svg" ) ) );
mLinkFeatureButton->setText( tr( "Link existing features" ) );
mLinkFeatureButton->setText( tr( "Link Existing Features" ) );
mLinkFeatureButton->setToolTip( tr( "Link existing child features" ) );
mLinkFeatureButton->setObjectName( QStringLiteral( "mLinkFeatureButton" ) );
buttonLayout->addWidget( mLinkFeatureButton );
// unlink feature
mUnlinkFeatureButton = new QToolButton( this );
mUnlinkFeatureButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionUnlink.svg" ) ) );
mUnlinkFeatureButton->setText( tr( "Unlink feature" ) );
mUnlinkFeatureButton->setText( tr( "Unlink Feature" ) );
mUnlinkFeatureButton->setToolTip( tr( "Unlink child feature" ) );
mUnlinkFeatureButton->setObjectName( QStringLiteral( "mUnlinkFeatureButton" ) );
buttonLayout->addWidget( mUnlinkFeatureButton );
@@ -107,15 +107,15 @@ QgsRelationEditorWidget::QgsRelationEditorWidget( QWidget *parent )
buttonLayout->addItem( new QSpacerItem( 0, 0, QSizePolicy::Expanding ) );
// form view
mFormViewButton = new QToolButton( this );
mFormViewButton->setText( tr( "Form view" ) );
mFormViewButton->setText( tr( "Form View" ) );
mFormViewButton->setToolTip( tr( "Switch to form view" ) );
mFormViewButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionPropertyItem.svg" ) ) );
mFormViewButton->setCheckable( true );
mFormViewButton->setChecked( mViewMode == QgsDualView::AttributeEditor );
buttonLayout->addWidget( mFormViewButton );
// table view
mTableViewButton = new QToolButton( this );
mTableViewButton->setText( tr( "Table view" ) );
mTableViewButton->setText( tr( "Table View" ) );
mTableViewButton->setToolTip( tr( "Switch to table view" ) );
mTableViewButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionOpenTable.svg" ) ) );
mTableViewButton->setCheckable( true );
@@ -138,7 +138,7 @@ void CoordinateCapture::initGui()

// Create the action for tool
mpCaptureButton = new QPushButton( mypWidget );
mpCaptureButton->setText( tr( "Start capture" ) );
mpCaptureButton->setText( tr( "Start Capture" ) );
mpCaptureButton->setToolTip( tr( "Click to enable coordinate capture" ) );
mpCaptureButton->setIcon( QIcon( ":/coordinate_capture/coordinate_capture.png" ) );
mpCaptureButton->setWhatsThis( tr( "Click on the map to view coordinates and capture to clipboard." ) );

0 comments on commit 4761d7c

Please sign in to comment.
You can’t perform that action at this time.