Kate
katedialogs.cpp
Go to the documentation of this file.
176 connect(ui->rbIndentWithTabs, SIGNAL(toggled(bool)), ui->sbIndentWidth, SLOT(setDisabled(bool)));
224 KateDocumentConfig::global()->setIndentationMode(KateAutoIndent::modeName(ui->cmbMode->currentIndex()));
248 ui->rbTabAdvances->setChecked( KateDocumentConfig::global()->tabHandling() == KateDocumentConfig::tabInsertsTab );
249 ui->rbTabIndents->setChecked( KateDocumentConfig::global()->tabHandling() == KateDocumentConfig::tabIndents );
250 ui->rbTabSmart->setChecked( KateDocumentConfig::global()->tabHandling() == KateDocumentConfig::tabSmart );
252 ui->cmbMode->setCurrentIndex (KateAutoIndent::modeNumber (KateDocumentConfig::global()->indentationMode()));
258 if (KateDocumentConfig::global()->indentationWidth() == KateDocumentConfig::global()->tabWidth())
315 KateViewConfig::global()->setAutomaticCompletionInvocation (ui->chkAutoCompletionEnabled->isChecked());
324 ui->chkAutoCompletionEnabled->setChecked( KateViewConfig::global()->automaticCompletionInvocation () );
356 connect(ui->btnRemoveSelectedNormal, SIGNAL(clicked()), this, SLOT(removeSelectedNormalMappingRow()));
395 KateGlobal::self()->viInputModeGlobal()->addMapping( KateViGlobal::NormalModeMapping, from->text(), to->text(), recursion);
408 QStringList l = KateGlobal::self()->viInputModeGlobal()->getMappings( KateViGlobal::NormalModeMapping );
422 QString s = KateGlobal::self()->viInputModeGlobal()->getMapping( KateViGlobal::NormalModeMapping, f );
428 const bool isRecursive = KateGlobal::self()->viInputModeGlobal()->isMappingRecursive(KateViGlobal::NormalModeMapping, f);
457 KMessageBox::error(this, i18n("Unable to open the config file for reading."), i18n("Unable to open file"));
599 KateViewConfig::global()->setPersistentSelection (ui->cbTextSelectionMode->currentIndex() == 1);
609 ui->cbTextSelectionMode->setCurrentIndex( KateViewConfig::global()->persistentSelection() ? 1 : 0 );
794 connect(textareaUi->cmbDynamicWordWrapIndicator, SIGNAL(activated(int)), this, SLOT(slotChanged()));
795 connect(textareaUi->sbDynamicWordWrapDepth, SIGNAL(valueChanged(int)), this, SLOT(slotChanged()));
799 connect(textareaUi->chkShowWholeBracketExpression, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
811 connect(bordersUi->rbSortBookmarksByPosition, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
812 connect(bordersUi->rbSortBookmarksByCreation, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
832 KateViewConfig::global()->setDynWordWrapIndicators (textareaUi->cmbDynamicWordWrapIndicator->currentIndex ());
833 KateViewConfig::global()->setDynWordWrapAlignIndent(textareaUi->sbDynamicWordWrapDepth->value());
840 KateViewConfig::global()->setScrollBarMiniMapAll (bordersUi->chkScrollbarMiniMapAll->isChecked());
845 KateViewConfig::global()->setBookmarkSort (bordersUi->rbSortBookmarksByPosition->isChecked()?0:1);
846 KateRendererConfig::global()->setShowIndentationLines(textareaUi->chkShowIndentationLines->isChecked());
847 KateRendererConfig::global()->setShowWholeBracketExpression(textareaUi->chkShowWholeBracketExpression->isChecked());
850 if (!textareaUi->chkDeveloperMode->isChecked() != KateDocumentConfig::global()->allowSimpleMode())
855 i18n("Changing the power user mode affects only newly opened / created documents. In KWrite a restart is recommended."),
868 textareaUi->cmbDynamicWordWrapIndicator->setCurrentIndex( KateViewConfig::global()->dynWordWrapIndicators() );
869 textareaUi->sbDynamicWordWrapDepth->setValue(KateViewConfig::global()->dynWordWrapAlignIndent());
882 textareaUi->chkShowIndentationLines->setChecked(KateRendererConfig::global()->showIndentationLines());
883 textareaUi->chkShowWholeBracketExpression->setChecked(KateRendererConfig::global()->showWholeBracketExpression());
930 connect( ui->cbRemoveTrailingSpaces, SIGNAL(currentIndexChanged(int)), this, SLOT(slotChanged()));
1000 KateDocumentConfig::global()->setEncoding((ui->cmbEncoding->currentIndex() == 0) ? "" : KGlobal::charsets()->encodingForName(ui->cmbEncoding->currentText()));
1002 KateGlobalConfig::global()->setProberType((KEncodingProber::ProberType)ui->cmbEncodingDetection->currentIndex());
1003 KateGlobalConfig::global()->setFallbackEncoding(KGlobal::charsets()->encodingForName(ui->cmbEncodingFallback->currentText()));
1029 QTextCodec *codecForEnc = KGlobal::charsets()->codecForName(KGlobal::charsets()->encodingForName(encodings[i]), found);
1054 for (int i = 0; !KEncodingProber::nameForProberType ((KEncodingProber::ProberType) i).isEmpty(); ++i) {
1055 ui->cmbEncodingDetection->addItem (KEncodingProber::nameForProberType ((KEncodingProber::ProberType) i));
1073 uiadv->sbConfigFileSearchDepth->setValue(KateDocumentConfig::global()->searchDirConfigDepth());
1127 selector->addPlugins(plugins, KPluginSelector::IgnoreConfigFile, i18n("Editor Plugins"), "Editor");
1191 list->setHeaderLabels(QStringList() << "" << i18n("Name") << i18n("Installed") << i18n("Latest"));
1238 KMessageBox::error(this,i18n("The list of highlightings could not be found on / retrieved from the server"));
Definition: katedialogs.h:403
KGuiItem cancel()
QString saveLocation(const char *type, const QString &suffix=QString(), bool create=true) const
#define KDE_MAKE_VERSION(a, b, c)
void setKeepExtraSpaces(bool on)
Definition: kateconfig.cpp:557
QTextCodec * codecForName(const QString &name) const
bool simpleMode() const
Definition: kateconfig.h:279
Definition: katepartpluginmanager.h:39
void setWordCompletionRemoveTail(bool on)
Definition: kateconfig.cpp:1822
void changed()
KateConfigPage(QWidget *parent=0, const char *name=0)
Definition: katedialogs.cpp:124
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
void setIndentationMode(const QString &identationMode)
Definition: kateconfig.cpp:459
const QString getMapping(MappingMode mode, const QString &from, bool decode=false) const
Definition: kateviglobal.cpp:186
void setViInputModeStealKeys(bool on)
Definition: kateconfig.cpp:1724
virtual bool setCursorPosition(Cursor position)=0
QList< KateDocument * > & kateDocuments()
return a list of all registered docs
Definition: kateglobal.h:266
~KateSpellCheckConfigTab()
Definition: katedialogs.cpp:517
QPixmap DesktopIcon(const QString &name, int force_size, int state, const QStringList &overlays)
KateSaveConfigTab(QWidget *parent)
Definition: katedialogs.cpp:893
Definition: katesyntaxmanager.h:48
Definition: kateconfig.h:280
void setTabHandling(uint tabHandling)
Definition: kateconfig.cpp:482
void save()
void setAllowEolDetection(bool on)
Definition: kateconfig.cpp:904
virtual bool isValid() const
~KateViInputModeConfigTab()
Definition: katedialogs.cpp:365
Definition: kateconfig.h:196
void setBackupSuffix(const QString &suffix)
Definition: kateconfig.cpp:988
QString label(StandardShortcut id)
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
void setScrollBarMiniMapAll(bool on)
Definition: kateconfig.cpp:1452
KateHlDownloadDialog(QWidget *parent, const char *name, bool modal)
Definition: katedialogs.cpp:1175
void configEnd()
end a config change transaction, update the concerned documents/views/renderers
Definition: kateconfig.cpp:63
const QStringList getMappings(MappingMode mode, bool decode=false) const
Definition: kateviglobal.cpp:196
KStandardDirs * dirs()
KateEditConfigTab(QWidget *parent)
Definition: katedialogs.cpp:677
Definition: katedialogs.h:152
TransferJob * get(const KUrl &url, LoadType reload=NoReload, JobFlags flags=DefaultFlags)
Definition: katemodeconfigpage.h:37
static KUrl fromPath(const QString &text)
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
void setOutputChannelMode(OutputChannelMode mode)
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
Definition: katedialogs.h:402
KLocalizedString ki18np(const char *singular, const char *plural)
KGuiItem insert()
void enablePlugin(KatePartPluginInfo &item)
Definition: katepartpluginmanager.cpp:247
KUrl url
void addMapping(MappingMode mode, const QString &from, const QString &to, MappingRecursion recursion)
Definition: kateviglobal.cpp:171
KSharedConfigPtr config()
virtual void slotButtonClicked(int button)
Definition: katedialogs.cpp:1595
void unloadPlugin(KatePartPluginInfo &item)
Definition: katepartpluginmanager.cpp:226
void setDynWordWrapAlignIndent(int indent)
Definition: kateconfig.cpp:1368
void configStart()
start some config changes this method is needed to init some kind of transaction for config changes...
Definition: kateconfig.cpp:53
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2760
Definition: kateviewhelpers.h:288
void slotDiff()
Show a diff between the document text and the disk file.
Definition: katedialogs.cpp:1519
void setBackspaceIndents(bool on)
Definition: kateconfig.cpp:599
KateIndentConfigTab(QWidget *parent)
Definition: katedialogs.cpp:148
void setDefaultDictionary(const QString &dict)
Definition: katedocument.cpp:5137
void setShowWholeBracketExpression(bool on)
Definition: kateconfig.cpp:2610
~KateEditGeneralConfigTab()
Definition: katedialogs.cpp:640
KGuiItem overwrite()
KatePartPluginList & pluginList()
Definition: katepartpluginmanager.h:84
void setDictionary(const QString &dict, const KTextEditor::Range &range)
Definition: katedocument.cpp:5057
void setProberType(KEncodingProber::ProberType proberType)
Definition: kateconfig.cpp:118
static QString katePartVersion()
Returns the current version of Kate Part: KDE X.Y.Z contains Kate Part X-1.Y.
Definition: kateglobal.cpp:59
void setPluginEnabled(bool enabled)
void dictionaryChanged(const QString &dictionary)
Definition: katedialogs.cpp:1430
KateViewDefaultsConfig(QWidget *parent)
Definition: katedialogs.cpp:756
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
void setWordCompletionMinimalWordLength(int length)
Definition: kateconfig.cpp:1801
virtual void keyPressEvent(QKeyEvent *event)
Definition: katedialogs.cpp:1369
virtual Document * document() const =0
void hideMe()
Store and manage the information about Syntax Highlighting.
Definition: katesyntaxdocument.h:73
KCharsets * charsets()
void setPersistentSelection(bool on)
Definition: kateconfig.cpp:1677
QString encodingForName(const QString &descriptiveName) const
void setLineLengthLimit(int limit)
Definition: kateconfig.cpp:1080
KateGotoBar(KTextEditor::View *view, QWidget *parent=0)
Definition: katedialogs.cpp:1328
virtual Cursor cursorPosition() const =0
void setShowIndentationLines(bool on)
Definition: kateconfig.cpp:2589
void start()
KateCompletionConfigTab(QWidget *parent)
Definition: katedialogs.cpp:269
static KatePartPluginManager * self()
Definition: katepartpluginmanager.cpp:70
void setBackupPrefix(const QString &prefix)
Definition: kateconfig.cpp:975
Definition: kateview.h:78
Definition: katedialogs.h:231
Definition: kateviglobal.h:60
bool isMappingRecursive(MappingMode mode, const QString &from) const
Definition: kateviglobal.cpp:213
void setSearchDirConfigDepth(int depth)
Definition: kateconfig.cpp:1030
KateViInputModeConfigTab(QWidget *parent)
Definition: katedialogs.cpp:332
Definition: katedocument.h:74
void setAutomaticCompletionInvocation(bool on)
Definition: kateconfig.cpp:1763
Definition: kateviglobal.h:61
void disablePlugin(KatePartPluginInfo &item)
Definition: katepartpluginmanager.cpp:274
Definition: katedialogs.h:195
Definition: katedialogs.h:174
KLocalizedString ki18ncp(const char *ctxt, const char *singular, const char *plural)
void setAllowSimpleMode(bool on)
Definition: kateconfig.cpp:925
static QString nameForProberType(ProberType proberType)
ModifiedOnDiskReason
virtual int line() const
Definition: kateviglobal.h:60
static bool runUrl(const KUrl &url, const QString &mimetype, QWidget *window, bool tempFile=false, bool runExecutables=true, const QString &suggestedFileName=QString(), const QByteArray &asn=QByteArray())
QString defaultLanguage() const
void setPageUpDownMovesCursor(bool on)
Definition: kateconfig.cpp:544
Definition: katedialogs.h:92
Definition: katehighlight.h:119
KateSpellCheckConfigTab(QWidget *parent)
Definition: katedialogs.cpp:492
~KateViewDefaultsConfig()
Definition: katedialogs.cpp:815
KateModOnHdPrompt(KateDocument *doc, KTextEditor::ModificationInterface::ModifiedOnDiskReason modtype, const QString &reason, QWidget *parent)
Definition: katedialogs.cpp:1445
bool setFallbackEncoding(const QString &encoding)
Definition: kateconfig.cpp:138
void setSpacing(int space)
ProberType
QPixmap SmallIcon(const QString &name, int force_size, int state, const QStringList &overlays)
Definition: katedialogs.h:401
void refreshOnTheFlyCheck(const KTextEditor::Range &range=KTextEditor::Range::invalid())
Definition: katedocument.cpp:5194
Definition: katedialogs.h:400
Definition: katedialogs.h:255
KatePartPluginConfigPage(QWidget *parent)
Definition: katedialogs.cpp:1105
KGuiItem cont()
void setScrollBarMiniMapWidth(int width)
Definition: kateconfig.cpp:1473
KateEditGeneralConfigTab(QWidget *parent)
Definition: katedialogs.cpp:619
void setIndentPastedText(bool on)
Definition: kateconfig.cpp:578
~KateCompletionConfigTab()
Definition: katedialogs.cpp:297
bool isEmpty() const
static bool download(const KUrl &src, QString &target, QWidget *window)
static int warningContinueCancel(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonContinue=KStandardGuiItem::cont(), const KGuiItem &buttonCancel=KStandardGuiItem::cancel(), const QString &dontAskAgainName=QString(), Options options=Notify)
void setIndentationWidth(int indentationWidth)
Definition: kateconfig.cpp:435
KateDictionaryBar(KateView *view, QWidget *parent=NULL)
Definition: katedialogs.cpp:1393
~KatePartPluginConfigPage()
Definition: katedialogs.cpp:1133
static QStringList listModes()
List all possible modes by name, i.e.
Definition: kateautoindent.cpp:45
static void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
void setCurrentByDictionary(const QString &dictionary)
void setDynWordWrapIndicators(int mode)
Definition: kateconfig.cpp:1347
bool setEncoding(const QString &encoding)
Definition: kateconfig.cpp:811
virtual int lines() const =0
indents in leading space, otherwise inserts tab
Definition: kateconfig.h:197
void loadPlugin(KatePartPluginInfo &item)
Definition: katepartpluginmanager.cpp:198
Sonnet::ConfigWidget * m_sonnetConfigWidget
Definition: katedialogs.h:265
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.