Commit 61491799 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Update XMLGui clients names

We don't need to prefix client names with "Kate " everywhere.
parent 826b5f2e
......@@ -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"));
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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,
......
......@@ -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
......
......@@ -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"));
/**
......
......@@ -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,
......
......@@ -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
......
......@@ -104,7 +104,7 @@ PluginKateXMLCheckView::PluginKateXMLCheckView(KTextEditor::Plugin *plugin, KTex
: QObject(mainwin)
, m_mainWindow(mainwin)
{
KXMLGUIClient::setComponentName(QStringLiteral("katexmlcheck"), i18n("Kate XML check")); // where i18n resources?
KXMLGUIClient::setComponentName(QStringLiteral("katexmlcheck"), i18n("XML Check")); // where i18n resources?
setXMLFile(QStringLiteral("ui.rc"));
dock = m_mainWindow->createToolView(plugin,
......
......@@ -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);
......
......@@ -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(
""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment