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
61491799
Commit
61491799
authored
Aug 15, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Aug 15, 2022
Browse files
Update XMLGui clients names
We don't need to prefix client names with "Kate " everywhere.
parent
826b5f2e
Changes
12
Hide whitespace changes
Inline
Side-by-side
addons/compiler-explorer/ce_plugin.cpp
View file @
61491799
...
...
@@ -31,6 +31,7 @@ CEPluginView::CEPluginView(CEPlugin *, KTextEditor::MainWindow *mainwindow)
:
QObject
(
mainwindow
)
,
m_mainWindow
(
mainwindow
)
{
setComponentName
(
QStringLiteral
(
"compilerexplorer"
),
i18n
(
"Compiler Explorer"
));
// create our one and only action
QAction
*
a
=
actionCollection
()
->
addAction
(
QStringLiteral
(
"kate_open_ce_tab"
));
a
->
setText
(
i18n
(
"&Open Current File in Compiler Explorer"
));
...
...
addons/filetree/katefiletreeplugin.cpp
View file @
61491799
...
...
@@ -128,7 +128,7 @@ KateFileTreePluginView::KateFileTreePluginView(KTextEditor::MainWindow *mainWind
,
m_plug
(
plug
)
,
m_mainWindow
(
mainWindow
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katefiletree"
),
i18n
(
"
Kate File Tree
"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katefiletree"
),
i18n
(
"
Documents
"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
m_toolView
=
mainWindow
->
createToolView
(
plug
,
...
...
addons/kate-ctags/kate_ctags_view.cpp
View file @
61491799
...
...
@@ -42,7 +42,7 @@ KateCTagsView::KateCTagsView(KTextEditor::Plugin *plugin, KTextEditor::MainWindo
:
QObject
(
mainWin
)
,
m_proc
(
nullptr
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katectags"
),
i18n
(
"
Kate
CTags"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katectags"
),
i18n
(
"CTags"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
m_toolView
=
mainWin
->
createToolView
(
plugin
,
...
...
addons/katebuild-plugin/plugin_katebuild.cpp
View file @
61491799
...
...
@@ -124,7 +124,7 @@ KateBuildView::KateBuildView(KTextEditor::Plugin *plugin, KTextEditor::MainWindo
,
m_filenameDetector
(
QStringLiteral
(
"((?:[a-np-zA-Z]:[
\\\\
/])?[^
\\
s:(]+)[:
\\
(](
\\
d+)[,:]?(
\\
d+)?[
\\
):]* (.*)"
))
,
m_newDirDetector
(
QStringLiteral
(
"make
\\
[.+
\\
]: .+ '(.*)'"
))
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katebuild"
),
i18n
(
"
Kate Build Plugin
"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katebuild"
),
i18n
(
"
Build
"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
m_toolView
=
mw
->
createToolView
(
plugin
,
...
...
addons/katesql/katesqlview.cpp
View file @
61491799
...
...
@@ -44,7 +44,7 @@ KateSQLView::KateSQLView(KTextEditor::Plugin *plugin, KTextEditor::MainWindow *m
,
m_manager
(
new
SQLManager
(
this
))
,
m_mainWindow
(
mw
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katesql"
),
i18n
(
"
Kate SQL Plugin
"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katesql"
),
i18n
(
"
SQL
"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
m_outputToolView
=
mw
->
createToolView
(
plugin
,
...
...
addons/konsole/kateconsole.cpp
View file @
61491799
...
...
@@ -130,7 +130,7 @@ KateConsole::KateConsole(KateKonsolePlugin *plugin, KTextEditor::MainWindow *mw,
,
m_toolView
(
parent
)
,
m_plugin
(
plugin
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katekonsole"
),
i18n
(
"
Kate
Terminal"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katekonsole"
),
i18n
(
"Terminal"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
// make sure we have a vertical layout
...
...
addons/project/kateprojectpluginview.cpp
View file @
61491799
...
...
@@ -52,7 +52,7 @@ KateProjectPluginView::KateProjectPluginView(KateProjectPlugin *plugin, KTextEdi
,
m_gotoSymbolAction
(
nullptr
)
,
m_gotoSymbolActionAppMenu
(
nullptr
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"kateproject"
),
i18n
(
"
Kate
Project Manager"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"kateproject"
),
i18n
(
"Project Manager"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
/**
...
...
addons/search/SearchPlugin.cpp
View file @
61491799
...
...
@@ -293,7 +293,7 @@ KatePluginSearchView::KatePluginSearchView(KTextEditor::Plugin *plugin, KTextEdi
,
m_kateApp
(
application
)
,
m_mainWindow
(
mainWin
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katesearch"
),
i18n
(
"
Kate
Search & Replace"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katesearch"
),
i18n
(
"Search & Replace"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
m_toolView
=
mainWin
->
createToolView
(
plugin
,
...
...
addons/snippets/katesnippets.cpp
View file @
61491799
...
...
@@ -44,7 +44,7 @@ KateSnippetsPluginView::KateSnippetsPluginView(KateSnippetsPlugin *plugin, KText
,
m_toolView
(
nullptr
)
,
m_snippets
(
nullptr
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katesnippets"
),
i18n
(
"Snippets
tool view
"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katesnippets"
),
i18n
(
"Snippets"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
// Toolview for snippets
...
...
addons/xmlcheck/plugin_katexmlcheck.cpp
View file @
61491799
...
...
@@ -104,7 +104,7 @@ PluginKateXMLCheckView::PluginKateXMLCheckView(KTextEditor::Plugin *plugin, KTex
:
QObject
(
mainwin
)
,
m_mainWindow
(
mainwin
)
{
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katexmlcheck"
),
i18n
(
"
Kate
XML
c
heck"
));
// where i18n resources?
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katexmlcheck"
),
i18n
(
"XML
C
heck"
));
// where i18n resources?
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
dock
=
m_mainWindow
->
createToolView
(
plugin
,
...
...
addons/xmltools/plugin_katexmltools.cpp
View file @
61491799
...
...
@@ -115,7 +115,7 @@ PluginKateXMLToolsView::PluginKateXMLToolsView(KTextEditor::MainWindow *mainWin)
{
// qDebug() << "PluginKateXMLTools constructor called";
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katexmltools"
),
i18n
(
"
Kate
XML Tools"
));
KXMLGUIClient
::
setComponentName
(
QStringLiteral
(
"katexmltools"
),
i18n
(
"XML Tools"
));
setXMLFile
(
QStringLiteral
(
"ui.rc"
));
QAction
*
actionInsert
=
new
QAction
(
i18n
(
"&Insert Element..."
),
this
);
...
...
apps/lib/katemdi.cpp
View file @
61491799
...
...
@@ -76,6 +76,7 @@ GUIClient::GUIClient(MainWindow *mw)
,
KXMLGUIClient
(
mw
)
,
m_mw
(
mw
)
{
setComponentName
(
QStringLiteral
(
"toolviewmanager"
),
i18n
(
"Toolview Manager"
));
connect
(
m_mw
->
guiFactory
(),
&
KXMLGUIFactory
::
clientAdded
,
this
,
&
GUIClient
::
clientAdded
);
const
QString
guiDescription
=
QStringLiteral
(
""
...
...
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