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())
316 KateViewConfig::global()->setAutomaticCompletionInvocation (ui->chkAutoCompletionEnabled->isChecked());
326 ui->chkAutoCompletionEnabled->setChecked( KateViewConfig::global()->automaticCompletionInvocation () );
378 void KateViInputModeConfigTab::applyTab(QTableWidget *mappingsTable, KateViGlobal::MappingMode mode)
396 void KateViInputModeConfigTab::reloadTab(QTableWidget *mappingsTable, KateViGlobal::MappingMode mode)
510 KMessageBox::error(this, i18n("Unable to open the config file for reading."), i18n("Unable to open file"));
641 KateViewConfig::global()->setPersistentSelection (ui->cbTextSelectionMode->currentIndex() == 1);
651 ui->cbTextSelectionMode->setCurrentIndex( KateViewConfig::global()->persistentSelection() ? 1 : 0 );
836 connect(textareaUi->cmbDynamicWordWrapIndicator, SIGNAL(activated(int)), this, SLOT(slotChanged()));
837 connect(textareaUi->sbDynamicWordWrapDepth, SIGNAL(valueChanged(int)), this, SLOT(slotChanged()));
841 connect(textareaUi->chkShowWholeBracketExpression, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
842 connect(textareaUi->chkAnimateBracketMatching, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
855 connect(bordersUi->rbSortBookmarksByPosition, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
856 connect(bordersUi->rbSortBookmarksByCreation, SIGNAL(toggled(bool)), this, SLOT(slotChanged()));
877 KateViewConfig::global()->setDynWordWrapIndicators (textareaUi->cmbDynamicWordWrapIndicator->currentIndex ());
878 KateViewConfig::global()->setDynWordWrapAlignIndent(textareaUi->sbDynamicWordWrapDepth->value());
885 KateViewConfig::global()->setScrollBarMiniMapAll (bordersUi->chkScrollbarMiniMapAll->isChecked());
891 KateViewConfig::global()->setBookmarkSort (bordersUi->rbSortBookmarksByPosition->isChecked()?0:1);
892 KateRendererConfig::global()->setShowIndentationLines(textareaUi->chkShowIndentationLines->isChecked());
893 KateRendererConfig::global()->setShowWholeBracketExpression(textareaUi->chkShowWholeBracketExpression->isChecked());
894 KateRendererConfig::global()->setAnimateBracketMatching(textareaUi->chkAnimateBracketMatching->isChecked());
898 if (!textareaUi->chkDeveloperMode->isChecked() != KateDocumentConfig::global()->allowSimpleMode())
903 i18n("Changing the power user mode affects only newly opened / created documents. In KWrite a restart is recommended."),
916 textareaUi->cmbDynamicWordWrapIndicator->setCurrentIndex( KateViewConfig::global()->dynWordWrapIndicators() );
917 textareaUi->sbDynamicWordWrapDepth->setValue(KateViewConfig::global()->dynWordWrapAlignIndent());
931 textareaUi->chkShowIndentationLines->setChecked(KateRendererConfig::global()->showIndentationLines());
932 textareaUi->chkShowWholeBracketExpression->setChecked(KateRendererConfig::global()->showWholeBracketExpression());
933 textareaUi->chkAnimateBracketMatching->setChecked(KateRendererConfig::global()->animateBracketMatching());
981 connect( ui->cbRemoveTrailingSpaces, SIGNAL(currentIndexChanged(int)), this, SLOT(slotChanged()));
1044 KateDocumentConfig::global()->setSearchDirConfigDepth(uiadv->sbConfigFileSearchDepth->value());
1051 KateDocumentConfig::global()->setEncoding((ui->cmbEncoding->currentIndex() == 0) ? "" : KGlobal::charsets()->encodingForName(ui->cmbEncoding->currentText()));
1053 KateGlobalConfig::global()->setProberType((KEncodingProber::ProberType)ui->cmbEncodingDetection->currentIndex());
1054 KateGlobalConfig::global()->setFallbackEncoding(KGlobal::charsets()->encodingForName(ui->cmbEncodingFallback->currentText()));
1080 QTextCodec *codecForEnc = KGlobal::charsets()->codecForName(KGlobal::charsets()->encodingForName(encodings[i]), found);
1105 for (int i = 0; !KEncodingProber::nameForProberType ((KEncodingProber::ProberType) i).isEmpty(); ++i) {
1106 ui->cmbEncodingDetection->addItem (KEncodingProber::nameForProberType ((KEncodingProber::ProberType) i));
1124 uiadv->sbConfigFileSearchDepth->setValue(KateDocumentConfig::global()->searchDirConfigDepth());
1178 selector->addPlugins(plugins, KPluginSelector::IgnoreConfigFile, i18n("Editor Plugins"), "Editor");
1242 list->setHeaderLabels(QStringList() << "" << i18n("Name") << i18n("Installed") << i18n("Latest"));
1289 KMessageBox::error(this,i18n("The list of highlightings could not be found on / retrieved from the server"));
Definition: katedialogs.h:409
void clear()
void setKeepExtraSpaces(bool on)
Definition: kateconfig.cpp:598
void showText(const QPoint &pos, const QString &text, QWidget *w)
Definition: kateconfig.h:279
Definition: katepartpluginmanager.h:39
void setWordCompletionRemoveTail(bool on)
Definition: kateconfig.cpp:1965
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:500
const QString getMapping(MappingMode mode, const QString &from, bool decode=false) const
Definition: kateviglobal.cpp:186
void setViInputModeStealKeys(bool on)
Definition: kateconfig.cpp:1832
~KateSpellCheckConfigTab()
Definition: katedialogs.cpp:559
virtual QByteArray name() const =0
void setSelectionMode(QAbstractItemView::SelectionMode mode)
KateSaveConfigTab(QWidget *parent)
Definition: katedialogs.cpp:944
void removeRow(int row)
Qt::CheckState checkState() const
Definition: katesyntaxmanager.h:48
Definition: kateconfig.h:280
void setTabHandling(uint tabHandling)
Definition: kateconfig.cpp:523
void setAllowEolDetection(bool on)
Definition: kateconfig.cpp:945
QString attribute(const QString &name, const QString &defValue) const
~KateViInputModeConfigTab()
Definition: katedialogs.cpp:373
void setItem(int row, int column, QTableWidgetItem *item)
Definition: kateconfig.h:196
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void setBackupSuffix(const QString &suffix)
Definition: kateconfig.cpp:1029
void setScrollBarMiniMapAll(bool on)
Definition: kateconfig.cpp:1539
KateHlDownloadDialog(QWidget *parent, const char *name, bool modal)
Definition: katedialogs.cpp:1226
Definition: kateviglobal.h:61
void configEnd()
end a config change transaction, update the concerned documents/views/renderers
Definition: kateconfig.cpp:64
const QStringList getMappings(MappingMode mode, bool decode=false) const
Definition: kateviglobal.cpp:196
void setIcon(int column, const QIcon &icon)
KateEditConfigTab(QWidget *parent)
Definition: katedialogs.cpp:719
Definition: katedialogs.h:154
bool isVisible() const
Definition: katemodeconfigpage.h:37
void editItem(QTableWidgetItem *item)
QDomElement documentElement() const
void setItemSelected(const QTreeWidgetItem *item, bool select)
void setIcon(const QIcon &icon)
Definition: kateviglobal.h:61
Definition: katedialogs.h:408
void enablePlugin(KatePartPluginInfo &item)
Definition: katepartpluginmanager.cpp:247
void addMapping(MappingMode mode, const QString &from, const QString &to, MappingRecursion recursion)
Definition: kateviglobal.cpp:171
int size() const
virtual void slotButtonClicked(int button)
Definition: katedialogs.cpp:1656
QTableWidgetItem * currentItem() const
QDomNode nextSibling() const
void unloadPlugin(KatePartPluginInfo &item)
Definition: katepartpluginmanager.cpp:226
int bottomRow() const
void setDynWordWrapAlignIndent(int indent)
Definition: kateconfig.cpp:1455
void configStart()
start some config changes this method is needed to init some kind of transaction for config changes...
Definition: kateconfig.cpp:54
void setBuddy(QWidget *buddy)
QDomElement toElement() const
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2815
Definition: kateviewhelpers.h:294
void slotDiff()
Show a diff between the document text and the disk file.
Definition: katedialogs.cpp:1570
void setBackspaceIndents(bool on)
Definition: kateconfig.cpp:640
void insertRow(int row)
void setColumnWidth(int column, int width)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
KateIndentConfigTab(QWidget *parent)
Definition: katedialogs.cpp:148
int count(const T &value) const
void append(const T &value)
void setDefaultDictionary(const QString &dict)
Definition: katedocument.cpp:5133
void setShowWholeBracketExpression(bool on)
Definition: kateconfig.cpp:2759
~KateEditGeneralConfigTab()
Definition: katedialogs.cpp:682
KatePartPluginList & pluginList()
Definition: katepartpluginmanager.h:84
void setLayout(QLayout *layout)
void setDictionary(const QString &dict, const KTextEditor::Range &range)
Definition: katedocument.cpp:5055
void resizeColumnToContents(int column)
void setProberType(KEncodingProber::ProberType proberType)
Definition: kateconfig.cpp:125
static QString katePartVersion()
Returns the current version of Kate Part: KDE X.Y.Z contains Kate Part X-1.Y.
Definition: kateglobal.cpp:60
void dictionaryChanged(const QString &dictionary)
Definition: katedialogs.cpp:1481
KateViewDefaultsConfig(QWidget *parent)
Definition: katedialogs.cpp:798
void setWordCompletionMinimalWordLength(int length)
Definition: kateconfig.cpp:1944
void setFocusProxy(QWidget *w)
bool isEmpty() const
virtual void keyPressEvent(QKeyEvent *event)
Definition: katedialogs.cpp:1420
void hideMe()
int addTab(QWidget *page, const QString &label)
Store and manage the information about Syntax Highlighting.
Definition: katesyntaxdocument.h:73
void setPersistentSelection(bool on)
Definition: kateconfig.cpp:1785
void setLineLengthLimit(int limit)
Definition: kateconfig.cpp:1121
KateGotoBar(KTextEditor::View *view, QWidget *parent=0)
Definition: katedialogs.cpp:1379
void setAllColumnsShowFocus(bool enable)
void setAutoRaise(bool enable)
QTreeWidget * treeWidget() const
void setMargin(int margin)
void setColumnCount(int columns)
void setShowIndentationLines(bool on)
Definition: kateconfig.cpp:2738
void addWidget(QWidget *w)
void sortItems(int column, Qt::SortOrder order)
KateCompletionConfigTab(QWidget *parent)
Definition: katedialogs.cpp:269
static KatePartPluginManager * self()
Definition: katepartpluginmanager.cpp:70
void setBackupPrefix(const QString &prefix)
Definition: kateconfig.cpp:1016
Definition: kateview.h:77
Definition: katedialogs.h:233
void setViRelativeLineNumbers(bool on)
Definition: kateconfig.cpp:1851
Definition: kateviglobal.h:60
bool isMappingRecursive(MappingMode mode, const QString &from) const
Definition: kateviglobal.cpp:213
void setSearchDirConfigDepth(int depth)
Definition: kateconfig.cpp:1071
KateViInputModeConfigTab(QWidget *parent)
Definition: katedialogs.cpp:335
Definition: katedocument.h:74
void setAutomaticCompletionInvocation(bool on)
Definition: kateconfig.cpp:1889
Definition: kateviglobal.h:61
void disablePlugin(KatePartPluginInfo &item)
Definition: katepartpluginmanager.cpp:274
Definition: katedialogs.h:197
Definition: katedialogs.h:176
void setAllowSimpleMode(bool on)
Definition: kateconfig.cpp:966
QString text() const
bool isNull() const
QList< QTreeWidgetItem * > selectedItems() const
void setHeaderLabels(const QStringList &labels)
void setFlags(QFlags< Qt::ItemFlag > flags)
QList< QTableWidgetSelectionRange > selectedRanges() const
Definition: kateviglobal.h:60
QDomNode firstChild() const
QPoint pos()
void flush()
void addStretch(int stretch)
void setPageUpDownMovesCursor(bool on)
Definition: kateconfig.cpp:585
void setAnimateBracketMatching(bool on)
Definition: kateconfig.cpp:2777
Definition: katedialogs.h:94
Definition: katehighlight.h:119
QTextCodec * codecForName(const QByteArray &name)
KateSpellCheckConfigTab(QWidget *parent)
Definition: katedialogs.cpp:534
~KateViewDefaultsConfig()
Definition: katedialogs.cpp:860
QTableWidgetItem * item(int row, int column) const
KateModOnHdPrompt(KateDocument *doc, KTextEditor::ModificationInterface::ModifiedOnDiskReason modtype, const QString &reason, QWidget *parent)
Definition: katedialogs.cpp:1496
bool setFallbackEncoding(const QString &encoding)
Definition: kateconfig.cpp:145
void setText(int column, const QString &text)
virtual void keyPressEvent(QKeyEvent *event)
int length() const
Definition: katedialogs.h:407
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
void refreshOnTheFlyCheck(const KTextEditor::Range &range=KTextEditor::Range::invalid())
Definition: katedocument.cpp:5188
void setText(const QString &text)
Definition: katedialogs.h:406
Definition: katedialogs.h:261
KatePartPluginConfigPage(QWidget *parent)
Definition: katedialogs.cpp:1156
QString tagName() const
void setScrollBarMiniMapWidth(int width)
Definition: kateconfig.cpp:1560
KateEditGeneralConfigTab(QWidget *parent)
Definition: katedialogs.cpp:661
void setIndentPastedText(bool on)
Definition: kateconfig.cpp:619
void setKeywordCompletion(bool on)
Definition: kateconfig.cpp:1926
~KateCompletionConfigTab()
Definition: katedialogs.cpp:298
int topRow() const
void setRootIsDecorated(bool show)
void setCurrentCell(int row, int column)
int size() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
rowCount
void setToolButtonStyle(Qt::ToolButtonStyle style)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString text(int column) const
void setIndentationWidth(int indentationWidth)
Definition: kateconfig.cpp:476
KateDictionaryBar(KateView *view, QWidget *parent=NULL)
Definition: katedialogs.cpp:1444
bool setStretchFactor(QWidget *widget, int stretch)
~KatePartPluginConfigPage()
Definition: katedialogs.cpp:1184
static QStringList listModes()
List all possible modes by name, i.e.
Definition: kateautoindent.cpp:45
void setDynWordWrapIndicators(int mode)
Definition: kateconfig.cpp:1434
bool setEncoding(const QString &encoding)
Definition: kateconfig.cpp:852
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
uint toUInt(bool *ok, int base) const
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:271
void setCheckState(Qt::CheckState state)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.