Kate
kateschemaconfig.cpp
Go to the documentation of this file.
93 ci.whatsThis = i18n("<p>Sets the background color of the selection.</p><p>To set the text color for selected text, use the "<b>Configure Highlighting</b>" dialog.</p>");
99 ci.whatsThis = i18n("<p>Sets the background color of the currently active line, which means the line where your cursor is positioned.</p>");
135 ci.whatsThis = i18n("<p>This color will be used to draw the line between line numbers and the icon borders, if both are enabled.</p>");
141 ci.whatsThis = i18n("<p>Sets the color of Word Wrap-related markers:</p><dl><dt>Static Word Wrap</dt><dd>A vertical line which shows the column where text is going to be wrapped</dd><dt>Dynamic Word Wrap</dt><dd>An arrow shown to the left of visually-wrapped lines</dd></dl>");
154 ci.whatsThis = i18n("<p>Sets the color of the line modification marker for modified lines.</p>");
172 ci.whatsThis = i18n("<p>Sets the color of the line that is used to indicate spelling mistakes.</p>");
190 ci.whatsThis = i18n("<p>Sets the bracket matching color. This means, if you place the cursor e.g. at a <b>(</b>, the matching <b>)</b> will be highlighted with this color.</p>");
210 ci.whatsThis = i18n("<p>Sets the background color of mark type.</p><p><b>Note</b>: The marker color is displayed lightly because of transparency.</p>");
436 newFont = KateGlobal::self()->schemaManager()->schema(m_currentSchema).readEntry("Font", newFont);
458 KateSchemaConfigDefaultStylesTab::KateSchemaConfigDefaultStylesTab(KateSchemaConfigColorTab* colorTab)
544 void KateSchemaConfigDefaultStylesTab::importSchema(const QString& schemaName, const QString &schema, KConfig *cfg)
562 KateSchemaConfigHighlightTab::KateSchemaConfigHighlightTab(KateSchemaConfigDefaultStylesTab *page, KateSchemaConfigColorTab* colorTab)
593 hlCombo->addItem(KateHlManager::self()->hlSection(i) + QString ("/") + KateHlManager::self()->hlNameTranslated(i));
606 KTextEditor::MdiContainer *iface = qobject_cast<KTextEditor::MdiContainer*>(KateGlobal::self()->container());
640 QProgressDialog progress(i18n("Loading all highlightings for schema"), QString(), 0, KateHlManager::self()->highlights(), this);
745 KateHlManager::self()->getHl( it2.key() )->setKateExtendedAttributeList (it.key(), it2.value());
756 void KateSchemaConfigHighlightTab::importHl(const QString& fromSchemaName, QString schema, int hl, KConfig *cfg) {
763 QString srcName=KFileDialog::getOpenFileName( QString(KateHlManager::self()->getHl(hl)->name()+QString(".katehlcolor")),
773 if ( (grp.readEntry("full schema","true").toUpper()!="FALSE") || hlName.isEmpty() || schemaNameForLoading.isEmpty()) {
799 KateHlManager::self()->getHl( hl )->getKateExtendedAttributeListCopy(schemaNameForLoading, list, cfg);
828 QString destName=KFileDialog::getSaveFileName( QString(KateHlManager::self()->getHl(hl)->name()+".katehlcolor"),
916 lHl = new QLabel( i18n("&Default schema for %1:", KGlobal::mainComponent().aboutData()->programName ()), hbHl );
1143 KateRendererConfig::global()->setSchema (defaultSchemaCombo->itemData (defaultSchemaCombo->currentIndex()).toString());
1151 refillCombos(schemaCombo->itemData (schemaCombo->currentIndex()).toString(), defaultSchemaCombo->itemData (defaultSchemaCombo->currentIndex()).toString());
1174 void KateSchemaConfigPage::refillCombos(const QString& schemaName, const QString& defaultSchemaName)
1222 if (KateGlobal::self()->schemaManager()->schemaData(schemaNameToDelete).shippedDefaultSchema) {
1250 schemaName = KInputDialog::getText (i18n("Name for New Schema"), i18n ("Name:"), i18n("New Schema"), &ok, this);
1256 KMessageBox::information(this, i18n("<p>The schema %1 already exists.</p><p>Please choose a different schema name.</p>", schemaName), i18n("New Schema"));
1272 btndel->setEnabled( !KateGlobal::self()->schemaManager()->schemaData(schema).shippedDefaultSchema );
QLayout * layout() const
void changed()
KateSchemaConfigHighlightTab(KateSchemaConfigDefaultStylesTab *page, KateSchemaConfigColorTab *colorTab)
Definition: kateschemaconfig.cpp:562
bool hasNext() const
Definition: katedefaultcolors.h:33
Definition: kateschemaconfig.h:39
void expandItem(const QTreeWidgetItem *item)
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
QColor selectionColor() const
Definition: kateschemaconfig.cpp:379
palette
iterator insert(const Key &key, const T &value)
void changed()
void schemaChanged(const QString &newSchema)
Definition: kateschemaconfig.cpp:252
bool contains(const Key &key) const
QList< int > hlsForSchema(const QString &schema)
Definition: kateschemaconfig.cpp:751
Definition: katecolortreewidget.h:27
Definition: kateschema.h:33
QVector< KateColorItem > colorItems() const
Definition: katecolortreewidget.cpp:345
void append(const T &value)
void setColor(ColorGroup group, ColorRole role, const QColor &color)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void schemaChanged(const QString &schema)
Definition: kateschemaconfig.cpp:497
const Key & key() const
void setWindowModality(Qt::WindowModality windowModality)
QColor color(Kate::ColorRole color) const
Definition: katedefaultcolors.cpp:41
virtual void showEvent(QShowEvent *event)
Definition: kateschemaconfig.cpp:851
Definition: katedefaultcolors.h:65
bool hasNext() const
void importHl(const QString &fromSchemaName=QString(), QString schema=QString(), int hl=-1, KConfig *cfg=0)
Definition: kateschemaconfig.cpp:756
void exportSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:320
KSharedPtr< KateExtendedAttribute > Ptr
Definition: kateextendedattribute.h:38
Definition: katedefaultcolors.h:38
const T & at(int i) const
void updateColorPalette(const QColor &textColor)
Definition: kateschemaconfig.cpp:719
Definition: katedefaultcolors.h:30
Definition: katedefaultcolors.h:64
void clear()
QTreeWidget that automatically adds columns for KateStyleListItems and provides a popup menu and a sl...
Definition: katestyletreewidget.h:36
QString translatedName() const
construct translated name for shipped schemas
Definition: kateschema.h:42
void exportSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:451
void clear()
Definition: katedefaultcolors.h:36
Definition: katedefaultcolors.h:46
void clear()
void changed()
void setBuddy(QWidget *buddy)
Definition: katedefaultcolors.h:49
~KateSchemaConfigDefaultStylesTab()
Definition: kateschemaconfig.cpp:479
const char * name() const
void setValue(int progress)
void schemaChanged(const QString &schema)
Definition: kateschemaconfig.cpp:657
void exportHl(QString schema=QString(), int hl=-1, KConfig *cfg=0)
Definition: kateschemaconfig.cpp:821
KateAttributeList * attributeList(const QString &schema)
Definition: kateschemaconfig.cpp:484
void updateColorPalette(const QColor &textColor)
Definition: kateschemaconfig.cpp:512
~KateSchemaConfigColorTab()
Definition: kateschemaconfig.cpp:69
virtual ~KateSchemaConfigPage()
Definition: kateschemaconfig.cpp:927
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void showEvent(QShowEvent *event)
QString number(int n, int base)
int count(const T &value) const
void setLayout(QLayout *layout)
void addColorItems(const QVector< KateColorItem > &colorItems)
Definition: katecolortreewidget.cpp:339
Definition: katedefaultcolors.h:42
bool isEmpty() const
void setDefaults(const QString &schema, KateAttributeList &, KConfig *cfg=0)
Definition: katesyntaxmanager.cpp:327
Item next()
virtual void showEvent(QShowEvent *event)
Definition: kateschemaconfig.cpp:549
KateSchemaConfigFontTab()
Definition: kateschemaconfig.cpp:386
bool spontaneous() const
void addItem(QTreeWidgetItem *parent, const QString &styleName, KTextEditor::Attribute::Ptr defaultstyle, KateExtendedAttribute::Ptr data=KateExtendedAttribute::Ptr())
Definition: katestyletreewidget.cpp:325
iterator end()
void setMargin(int margin)
Definition: katedefaultcolors.h:47
Definition: katedefaultcolors.h:39
iterator begin()
void changed()
QList< Key > keys() const
Definition: kateview.h:77
Definition: katedefaultcolors.h:43
Definition: katedefaultcolors.h:70
void clear()
bool blockSignals(bool block)
T & value()
Item next()
const QFont & font() const
QList< KateSchema > list()
Constructs list of schemas atm known in config object.
Definition: kateschema.cpp:65
KConfigGroup schema(const QString &name)
return kconfiggroup for the given schema
Definition: kateschema.cpp:43
Definition: katecolortreewidget.h:44
KateSchemaConfigPage(QWidget *parent)
Definition: kateschemaconfig.cpp:864
const Key key(const T &value) const
const_iterator constBegin() const
KateSchemaConfigDefaultStylesTab(KateSchemaConfigColorTab *colorTab)
Definition: kateschemaconfig.cpp:458
void importSchema(const QString &schemaName, const QString &schema, KConfig *cfg)
Definition: kateschemaconfig.cpp:544
void setWhatsThis(const QString &)
Definition: katedefaultcolors.h:45
~KateSchemaConfigFontTab()
Definition: kateschemaconfig.cpp:394
const Key & key() const
Definition: katedefaultcolors.h:34
Definition: katedefaultcolors.h:37
void setColumnStretch(int column, int stretch)
bool loadAllHlsForSchema(const QString &schema)
Definition: kateschemaconfig.cpp:638
Definition: katedialogs.h:94
Definition: katedefaultcolors.h:41
int count(const T &value) const
void schemaChanged(const QString &newSchema)
Definition: kateschemaconfig.cpp:427
int length() const
void getDefaults(const QString &schema, KateAttributeList &, KConfig *cfg=0)
Definition: katesyntaxmanager.cpp:177
Definition: kateschemaconfig.h:73
QString left(int n) const
void setKateExtendedAttributeList(const QString &schema, QList< KateExtendedAttribute::Ptr > &, KConfig *cfg=0, bool writeDefaultsToo=false)
Saves the attribute definitions to the config file.
Definition: katehighlight.cpp:686
QString fromLatin1(const char *str, int size)
void getKateExtendedAttributeListCopy(const QString &schema, QList< KateExtendedAttribute::Ptr > &, KConfig *cfg=0)
Definition: katehighlight.cpp:668
bool contains(const Key &key) const
KateSchemaConfigColorTab()
Definition: kateschemaconfig.cpp:51
void exportSchema(const QString &schema, KConfig *cfg)
Definition: kateschemaconfig.cpp:539
const T & value() const
QColor backgroundColor() const
Definition: kateschemaconfig.cpp:374
void setRootIsDecorated(bool show)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QColor findColor(const QString &key) const
Definition: katecolortreewidget.cpp:359
QObject * parent() const
void importSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:444
void importSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:307
~KateSchemaConfigHighlightTab()
Definition: kateschemaconfig.cpp:628
Definition: katedefaultcolors.h:31
Definition: katedefaultcolors.h:44
const T value(const Key &key) const
int remove(const Key &key)
QList< KTextEditor::Attribute::Ptr > KateAttributeList
Definition: kateextendedattribute.h:26
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.