Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
d3369d28
Commit
d3369d28
authored
Aug 26, 2022
by
Eric Armbruster
🍁
Browse files
Apply title capitalization to all actions
https://develop.kde.org/hig/style/writing/capitalization/
parent
ab66b019
Pipeline
#223149
passed with stage
in 17 minutes and 46 seconds
Changes
5
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletree.cpp
View file @
d3369d28
...
...
@@ -126,11 +126,11 @@ KateFileTree::KateFileTree(QWidget *parent)
connect
(
m_filelistCloseDocument
,
&
QAction
::
triggered
,
this
,
&
KateFileTree
::
slotDocumentClose
);
m_filelistCloseDocument
->
setWhatsThis
(
i18n
(
"Close the current document."
));
m_filelistExpandRecursive
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-list-tree"
)),
i18nc
(
"@action:inmenu"
,
"Expand
r
ecursively"
),
this
);
m_filelistExpandRecursive
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-list-tree"
)),
i18nc
(
"@action:inmenu"
,
"Expand
R
ecursively"
),
this
);
connect
(
m_filelistExpandRecursive
,
&
QAction
::
triggered
,
this
,
&
KateFileTree
::
slotExpandRecursive
);
m_filelistExpandRecursive
->
setWhatsThis
(
i18n
(
"Expand the file list sub tree recursively."
));
m_filelistCollapseRecursive
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-list-tree"
)),
i18nc
(
"@action:inmenu"
,
"Collapse
r
ecursively"
),
this
);
m_filelistCollapseRecursive
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-list-tree"
)),
i18nc
(
"@action:inmenu"
,
"Collapse
R
ecursively"
),
this
);
connect
(
m_filelistCollapseRecursive
,
&
QAction
::
triggered
,
this
,
&
KateFileTree
::
slotCollapseRecursive
);
m_filelistCollapseRecursive
->
setWhatsThis
(
i18n
(
"Collapse the file list sub tree recursively."
));
...
...
addons/katesql/katesqlview.cpp
View file @
d3369d28
...
...
@@ -105,17 +105,17 @@ void KateSQLView::setupActions()
KActionCollection
*
collection
=
actionCollection
();
action
=
collection
->
addAction
(
QStringLiteral
(
"connection_create"
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Add
c
onnection..."
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Add
C
onnection..."
));
action
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"list-add"
)));
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
KateSQLView
::
slotConnectionCreate
);
action
=
collection
->
addAction
(
QStringLiteral
(
"connection_remove"
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Remove
c
onnection"
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Remove
C
onnection"
));
action
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"list-remove"
)));
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
KateSQLView
::
slotConnectionRemove
);
action
=
collection
->
addAction
(
QStringLiteral
(
"connection_edit"
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Edit
c
onnection..."
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Edit
C
onnection..."
));
action
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"configure"
)));
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
KateSQLView
::
slotConnectionEdit
);
...
...
@@ -130,7 +130,7 @@ void KateSQLView::setupActions()
wa
->
setDefaultWidget
(
m_connectionsComboBox
);
action
=
collection
->
addAction
(
QStringLiteral
(
"query_run"
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Run
q
uery"
));
action
->
setText
(
i18nc
(
"@action:inmenu"
,
"Run
Q
uery"
));
action
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"quickopen"
)));
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
KateSQLView
::
slotRunQuery
);
...
...
addons/lspclient/lspclientpluginview.cpp
View file @
d3369d28
...
...
@@ -673,32 +673,32 @@ public:
// diagnostics
m_diagnostics
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_diagnostics"
),
this
,
&
self_type
::
displayOptionChanged
);
m_diagnostics
->
setText
(
i18n
(
"Show
d
iagnostics
n
otifications"
));
m_diagnostics
->
setText
(
i18n
(
"Show
D
iagnostics
N
otifications"
));
m_diagnostics
->
setCheckable
(
true
);
m_diagnosticsHighlight
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_diagnostics_highlight"
),
this
,
&
self_type
::
displayOptionChanged
);
m_diagnosticsHighlight
->
setText
(
i18n
(
"Show
d
iagnostics
h
ighlights"
));
m_diagnosticsHighlight
->
setText
(
i18n
(
"Show
D
iagnostics
H
ighlights"
));
m_diagnosticsHighlight
->
setCheckable
(
true
);
m_diagnosticsMark
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_diagnostics_mark"
),
this
,
&
self_type
::
displayOptionChanged
);
m_diagnosticsMark
->
setText
(
i18n
(
"Show
d
iagnostics
m
arks"
));
m_diagnosticsMark
->
setText
(
i18n
(
"Show
D
iagnostics
M
arks"
));
m_diagnosticsMark
->
setCheckable
(
true
);
m_diagnosticsHover
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_diagnostics_hover"
),
this
,
&
self_type
::
displayOptionChanged
);
m_diagnosticsHover
->
setText
(
i18n
(
"Show
d
iagnostics on
h
over"
));
m_diagnosticsHover
->
setText
(
i18n
(
"Show
D
iagnostics on
H
over"
));
m_diagnosticsHover
->
setCheckable
(
true
);
m_diagnosticsSwitch
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_diagnostic_switch"
),
this
,
&
self_type
::
switchToDiagnostics
);
m_diagnosticsSwitch
->
setText
(
i18n
(
"Switch to
d
iagnostics
t
ab"
));
m_diagnosticsSwitch
->
setText
(
i18n
(
"Switch to
D
iagnostics
T
ab"
));
// messages
m_messages
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_messages"
),
this
,
&
self_type
::
displayOptionChanged
);
m_messages
->
setText
(
i18n
(
"Show
m
essages"
));
m_messages
->
setText
(
i18n
(
"Show
M
essages"
));
m_messages
->
setCheckable
(
true
);
// extra
m_memoryUsage
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_clangd_memoryusage"
),
this
,
&
self_type
::
clangdMemoryUsage
);
m_memoryUsage
->
setText
(
i18n
(
"Server
m
emory
u
sage"
));
m_memoryUsage
->
setText
(
i18n
(
"Server
M
emory
U
sage"
));
// server control and misc actions
m_closeDynamic
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_close_dynamic"
),
this
,
&
self_type
::
closeDynamic
);
m_closeDynamic
->
setText
(
i18n
(
"Close
a
ll
d
ynamic
r
eference
t
abs"
));
m_closeDynamic
->
setText
(
i18n
(
"Close
A
ll
D
ynamic
R
eference
T
abs"
));
m_restartServer
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_restart_server"
),
this
,
&
self_type
::
restartCurrent
);
m_restartServer
->
setText
(
i18n
(
"Restart LSP Server"
));
m_restartAll
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"lspclient_restart_all"
),
this
,
&
self_type
::
restartAll
);
...
...
addons/project/gitwidget.cpp
View file @
d3369d28
...
...
@@ -228,7 +228,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
m_commitBtn
->
setToolTip
(
commitText
);
m_commitBtn
->
setMinimumHeight
(
16
);
const
QString
&
pushText
=
i18n
(
"Git
p
ush"
);
const
QString
&
pushText
=
i18n
(
"Git
P
ush"
);
m_pushBtn
=
toolButton
();
auto
a
=
ac
->
addAction
(
QStringLiteral
(
"vcs_push"
),
this
,
[
this
]()
{
PushPullDialog
ppd
(
m_mainWin
,
m_activeGitDirPath
);
...
...
@@ -240,7 +240,7 @@ GitWidget::GitWidget(KateProject *project, KTextEditor::MainWindow *mainWindow,
a
->
setToolTip
(
pushText
);
m_pushBtn
->
setDefaultAction
(
a
);
const
QString
&
pullText
=
i18n
(
"Git
p
ull"
);
const
QString
&
pullText
=
i18n
(
"Git
P
ull"
);
m_pullBtn
=
toolButton
(
QStringLiteral
(
"vcs-pull"
),
pullText
);
a
=
ac
->
addAction
(
QStringLiteral
(
"vcs_pull"
),
this
,
[
this
]()
{
PushPullDialog
ppd
(
m_mainWin
,
m_activeGitDirPath
);
...
...
@@ -1018,7 +1018,7 @@ void GitWidget::buildMenu(KActionCollection *ac)
branchCompareFiles
(
branch
,
QString
());
});
a
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"vcs-diff"
)));
a
->
setText
(
i18n
(
"Compare Branch with
..."
));
a
->
setText
(
i18n
(
"Compare Branch with..."
));
m_gitMenu
->
addAction
(
a
);
auto
stashMenu
=
m_gitMenu
->
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"vcs-stash"
)),
i18n
(
"Stash"
));
...
...
@@ -1167,11 +1167,11 @@ void GitWidget::treeViewContextMenuEvent(QContextMenuEvent *e)
const
bool
staged
=
statusItemType
==
GitStatusModel
::
NodeStage
;
const
bool
untracked
=
statusItemType
==
GitStatusModel
::
NodeUntrack
;
auto
openFile
=
menu
.
addAction
(
i18n
(
"Open
f
ile"
));
auto
showDiffAct
=
untracked
?
nullptr
:
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"vcs-diff"
)),
i18n
(
"Show
r
aw
d
iff"
));
auto
launchDifftoolAct
=
untracked
?
nullptr
:
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"kdiff3"
)),
i18n
(
"Show in
e
xternal
g
it
d
iff
t
ool"
));
auto
openFile
=
menu
.
addAction
(
i18n
(
"Open
F
ile"
));
auto
showDiffAct
=
untracked
?
nullptr
:
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"vcs-diff"
)),
i18n
(
"Show
R
aw
D
iff"
));
auto
launchDifftoolAct
=
untracked
?
nullptr
:
menu
.
addAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"kdiff3"
)),
i18n
(
"Show in
E
xternal
G
it
D
iff
T
ool"
));
auto
openAtHead
=
untracked
?
nullptr
:
menu
.
addAction
(
i18n
(
"Open at HEAD"
));
auto
stageAct
=
staged
?
menu
.
addAction
(
i18n
(
"Unstage
f
ile"
))
:
menu
.
addAction
(
i18n
(
"Stage
f
ile"
));
auto
stageAct
=
staged
?
menu
.
addAction
(
i18n
(
"Unstage
F
ile"
))
:
menu
.
addAction
(
i18n
(
"Stage
F
ile"
));
auto
discardAct
=
staged
?
nullptr
:
untracked
?
menu
.
addAction
(
i18n
(
"Remove"
))
:
menu
.
addAction
(
i18n
(
"Discard"
));
if
(
discardAct
)
{
discardAct
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"edit-delete-remove"
)));
...
...
@@ -1210,7 +1210,7 @@ void GitWidget::treeViewContextMenuEvent(QContextMenuEvent *e)
}
else
if
(
treeItem
==
GitStatusModel
::
NodeStage
)
{
QMenu
menu
;
auto
stage
=
menu
.
addAction
(
i18n
(
"Unstage All"
));
auto
diff
=
menu
.
addAction
(
i18n
(
"Show
d
iff"
));
auto
diff
=
menu
.
addAction
(
i18n
(
"Show
D
iff"
));
auto
model
=
m_treeView
->
model
();
bool
disable
=
model
->
rowCount
(
idx
)
==
0
;
stage
->
setDisabled
(
disable
);
...
...
addons/search/SearchPlugin.cpp
View file @
d3369d28
...
...
@@ -339,7 +339,7 @@ KatePluginSearchView::KatePluginSearchView(KTextEditor::Plugin *plugin, KTextEdi
connect
(
a
,
&
QAction
::
triggered
,
this
,
&
KatePluginSearchView
::
openSearchView
);
a
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"search_in_files_new_tab"
));
a
->
setText
(
i18n
(
"Find in Files (in
n
ew
t
ab)"
));
a
->
setText
(
i18n
(
"Find in Files (in
a N
ew
T
ab)"
));
// first add tab, then open search view, since open search view switches to show the search options
connect
(
a
,
&
QAction
::
triggered
,
this
,
&
KatePluginSearchView
::
addTab
);
connect
(
a
,
&
QAction
::
triggered
,
this
,
&
KatePluginSearchView
::
openSearchView
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment