Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 993a3c2e authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos

parent 57814120
......@@ -27,7 +27,7 @@
// Standard includes
#include <KConfig>
#include <KLocalizedString> /// \todo Where is \c i18n() defiend?
#include <KLocalizedString> /// \todo Where is \c i18n() defined?
#include <KIconLoader>
#include <KSharedConfig>
#include <KConfigGroup>
......
/**
* \file
*
* \brief Declate Kate's Close Except/Like plugin classes
* \brief Declare Kate's Close Except/Like plugin classes
*
* Copyright (C) 2012 Alex Turbov <i.zaufi@gmail.com>
*
......
......@@ -120,7 +120,7 @@ KateFileBrowser::KateFileBrowser(KTextEditor::MainWindow *mainWindow,
KateFileBrowser::~KateFileBrowser()
{
}
//END Constroctor/Destrctor
//END Constructor/Destructor
//BEGIN Public Methods
void KateFileBrowser::setupToolbar()
......
......@@ -75,7 +75,7 @@ Q_SIGNALS:
void clearBreakpointMarks();
void stackFrameInfo(QString const& level, QString const& info);
void stackFrameChanged(int level);
void threadInfo(int number, bool avtive);
void threadInfo(int number, bool active);
void infoLocal(QString const& line);
......
......@@ -2018,7 +2018,7 @@ bool KatePluginSearchView::eventFilter(QObject *obj, QEvent *event)
}
}
}
// NOTE: Qt::Key_Escape is handeled by handleEsc
// NOTE: Qt::Key_Escape is handled by handleEsc
}
return QObject::eventFilter(obj, event);
}
......
......@@ -41,7 +41,7 @@ namespace KTextEditor
* To add a snippet, @p appendRow() it.
* To access the name of the repository, use @p text() and @p setText().
*
* NOTE: Unchecked repositores are considered "disabled" in the sense that their snippets
* NOTE: Unchecked repositories are considered "disabled" in the sense that their snippets
* won't show up during code completion.
*
* @author Robert Gruber <rgruber@users.sourceforge.net>
......
......@@ -101,7 +101,7 @@ public Q_SLOTS:
void updateDocumentName(KTextEditor::Document * document);
/**
* Raise @p view in a lru fasion.
* Raise @p view in a lru fashion.
*/
void raiseView(KTextEditor::View * view);
......
......@@ -27,7 +27,7 @@
namespace detail {
/**
* adpated from https://helloacm.com/c-coding-exercise-longest-common-prefix/
* adapted from https://helloacm.com/c-coding-exercise-longest-common-prefix/
* see also http://www.cplusplus.com/forum/beginner/83540/
* Note that if strs contains the empty string, the result will be ""
*/
......
......@@ -30,14 +30,14 @@
//TODO:
// Cleanup unneeded headers
// Find resourses and translate i18n messages
// Find resources and translate i18n messages
// all translations were deleted in https://websvn.kde.org/?limit_changes=0&view=revision&revision=1433517
// What to do with catalogs? What is it for?
// Implement hot key shoutcut to do xml validation
// Remove copyright above due to author orphoned this plugin?
// Implement hot key shortcut to do xml validation
// Remove copyright above due to author orphaned this plugin?
// Possibility to check only well-formdness without validation
// Hide output in dock when switching to another tab
// Make ability to validate agains xml schema and then edit docbook
// Make ability to validate against xml schema and then edit docbook
// Should del space in [km] strang in katexmlcheck.desktop?
// Which variant should I choose? QUrl.adjusted(rm filename).path() or QUrl.toString(rm filename|rm schema)
// What about replace xmllint xmlstarlet or something?
......@@ -327,7 +327,7 @@ bool PluginKateXMLCheckView::slotValidate()
args << "--noout";
// tell xmllint the working path of the document's file, if possible.
// otherweise it will not find relative DTDs
// otherwise it will not find relative DTDs
// I should give path to location of file, but remove filename
// I can make QUrl.adjusted(rm filename).path()
......@@ -344,7 +344,7 @@ bool PluginKateXMLCheckView::slotValidate()
// As workaround we can encode ':' with %3A
QString path = kv->document()->url().toString(QUrl::RemoveFilename|QUrl::PreferLocalFile|QUrl::EncodeSpaces);
path.replace(':',"%3A");
// because of such inconvinience with xmllint and pathes, maybe switch to xmlstarlet?
// because of such inconvenience with xmllint and paths, maybe switch to xmlstarlet?
qDebug() << "path=" << path;
......@@ -387,7 +387,7 @@ bool PluginKateXMLCheckView::slotValidate()
qDebug() << "m_tmp_file->fileName()=" << m_tmp_file->fileName();
m_proc.start(exe,args);
qDebug() << "m_proc.program():" << m_proc.program(); // I want to see parmeters
qDebug() << "m_proc.program():" << m_proc.program(); // I want to see parameters
qDebug() << "args=" << args;
qDebug() << "exit code:"<< m_proc.exitCode();
if( ! m_proc.waitForStarted(-1) ) {
......
......@@ -148,7 +148,7 @@ PluginKateXMLToolsView::~PluginKateXMLToolsView()
{
m_mainWindow->guiFactory()->removeClient(this);
//qDebug() << "xml tools descructor 1...";
//qDebug() << "xml tools destructor 1...";
//TODO: unregister the model
}
......
......@@ -101,7 +101,7 @@ bool PseudoDTD::parseElements(QDomDocument *doc, QProgressDialog *progress)
m_elementsList.clear();
// We only display a list, i.e. we pretend that the content model is just
// a set, so we use a map. This is necessay e.g. for xhtml 1.0's head element,
// a set, so we use a map. This is necessary e.g. for xhtml 1.0's head element,
// which would otherwise display some elements twice.
QMap<QString, bool> subelementList; // the bool is not used
......
......@@ -105,7 +105,7 @@ bool KateApp::init()
// let us handle our command line args and co ;)
// we can exit here if session chooser decides
if (!startupKate()) {
// session chooser telled to exit kate
// session chooser told to exit kate
return false;
}
}
......
......@@ -171,7 +171,7 @@ Q_SIGNALS:
void aboutToCreateDocuments();
/**
* This signal is emitted after the batch of ducuments is created.
* This signal is emitted after the batch of documents is created.
*
* @param documents list of documents that have been created
*/
......@@ -186,7 +186,7 @@ Q_SIGNALS:
void aboutToDeleteDocuments(const QList<KTextEditor::Document *> &);
/**
* This singnal is emitted after the documents batch was deleted
* This signal is emitted after the documents batch was deleted
*
* This is the batch closing signal for aboutToDeleteDocuments
* @param documents the documents that weren't deleted after all
......
......@@ -535,7 +535,7 @@ void KateMainWindow::slotNewToolbarConfig()
{
applyMainWindowSettings(KConfigGroup(KSharedConfig::openConfig(), "MainWindow"));
// we neeed to relod all View's XML Gui from disk to ensure toolbar
// we need to reload all View's XML Gui from disk to ensure toolbar
// changes are applied to all views.
reloadXmlGui();
}
......
......@@ -386,7 +386,7 @@ public Q_SLOTS:
}
/**
* Split current view space according to @orientation
* Split current view space according to \p orientation
* \param orientation in which line split the view
*/
void splitView(Qt::Orientation orientation)
......@@ -396,7 +396,7 @@ public Q_SLOTS:
/**
* Try to create a view bar for the given view.
* @param view view for which we want an view bar
* @param View view for which we want a view bar
* @return suitable widget that can host view bars widgets or nullptr
*/
QWidget *createViewBar(KTextEditor::View *) {
......
......@@ -401,14 +401,14 @@ bool Sidebar::showWidget(ToolView *widget)
setTab(m_widgetToId[widget], true);
/**
* resize to right size again and show, else artefacts
* resize to right size again and show, else artifacts
*/
if (m_widgetToSize[widget].isValid()) {
widget->resize(m_widgetToSize[widget]);
}
/**
* resize to right size again and show, else artefacts
* resize to right size again and show, else artifacts
* same as for widget, both needed
*/
if (m_preHideSize.isValid()) {
......
......@@ -116,7 +116,7 @@ protected:
public:
/**
* destuct me, this is allowed for all, will care itself that the toolview is removed
* destruct me, this is allowed for all, will care itself that the toolview is removed
* from the mainwindow and sidebar
*/
~ToolView() override;
......@@ -389,7 +389,6 @@ public:
/**
* save the current session config to given object and group
* @param config config object to use
* @param group config group to use
*/
void saveSession(KConfigGroup &group);
......
......@@ -47,7 +47,7 @@ private:
QVector<ModelEntry> m_modelEntries;
/* TODO: don't rely in a pointer to the main window.
* this is bad enginering, but current code is too tigth
* this is bad engineering, but current code is too tight
* on this and it's hard to untangle without breaking existing
* code.
*/
......
......@@ -115,7 +115,7 @@ public:
return false;
}
} else {
//document has an exising location
//document has an existing location
if (!m_document->save()) {
setState(SaveFailedState);
setText(1, m_document->url().toString());
......
......@@ -160,7 +160,7 @@ private Q_SLOTS:
void aboutToDeleteDocuments(const QList<KTextEditor::Document *> &documents);
/**
* This singnal is emitted after the documents batch was deleted
* This signal is emitted after the documents batch was deleted
*
* This is the batch closing signal for aboutToDeleteDocuments
* @param documents the documents that weren't deleted after all
......
......@@ -134,7 +134,7 @@ private Q_SLOTS:
int removeTab(KTextEditor::Document * doc, bool documentDestroyed);
/**
* Remove @p count tabs, since the tab bar shrinked.
* Remove @p count tabs, since the tab bar shrunk.
*/
void removeTabs(int count);
......
......@@ -268,7 +268,7 @@ int main(int argc, char **argv)
/**
* use dbus, if available for linux and co.
* allows for resuse of running Kate instances
* allows for reuse of running Kate instances
*/
#ifndef USE_QT_SINGLE_APP
if (QDBusConnectionInterface * const sessionBusInterface = QDBusConnection::sessionBus().interface()) {
......
......@@ -49,7 +49,7 @@ QString QtLocalPeer::appSessionId(const QString &appId)
{
QByteArray idc = appId.toUtf8();
quint16 idNum = qChecksum(idc.constData(), idc.size());
//### could do: two 16bit checksums over separate halves of id, for a 32bit result - improved uniqeness probability. Every-other-char split would be best.
//### could do: two 16bit checksums over separate halves of id, for a 32bit result - improved uniqueness probability. Every-other-char split would be best.
QString res = QLatin1String("qtsingleapplication-")
+ QString::number(idNum, 16);
......
......@@ -51,7 +51,7 @@ public:
* session config
* on first access, will create the config object, delete will be done automagic
* return 0 if we have no file to read config from atm
* @return correct KConfig, neverl null
* @return correct KConfig, never null
* @note never delete configRead(), because the return value might be
* KSharedConfig::openConfig(). Only delete the member variables directly.
*/
......@@ -66,12 +66,12 @@ public:
}
/**
* update @number of openned documents in session
* update \p number of opened documents in session
*/
void setDocuments(const unsigned int number);
/**
* @return true if this is anonymouse/new session
* @return true if this is anonymous/new session
*/
bool isAnonymous() const {
return m_anonymous;
......
......@@ -43,7 +43,7 @@ public:
KateSessionList sessionList();
/**
* activate session by @name
* activate session by \p name
* first, it will look if a session with this name exists in list
* if yes, it will use this session, else it will create a new session file
* @param name name of the session to activate
......@@ -138,8 +138,9 @@ public:
void deleteSession(KateSession::Ptr session);
/**
* renames the session to @newName
* @return true if succesfull
* renames the session to \p newName
* @param newName new name of the session
* @return true if successful
*/
bool renameSession(KateSession::Ptr session, const QString &newName);
......
Markdown is supported
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