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>");
94 ci.defaultColor = KColorScheme(QPalette::Inactive, KColorScheme::Selection).background().color();
99 ci.whatsThis = i18n("<p>Sets the background color of the currently active line, which means the line where your cursor is positioned.</p>");
106 ci.defaultColor = Qt::yellow; // schemeView.background(KColorScheme::NeutralBackground).color();
112 ci.defaultColor = Qt::green; // schemeView.background(KColorScheme::PositiveBackground).color();
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>");
143 ci.defaultColor = KColorUtils::shade( schemeView.background().color(), bgLuma > 0.3 ? -0.15 : 0.03 );
149 ci.defaultColor = KColorScheme(QPalette::Inactive, KColorScheme::Selection).background().color();
155 ci.whatsThis = i18n("<p>Sets the color of the line modification marker for modified lines.</p>");
173 ci.whatsThis = i18n("<p>Sets the color of the line that is used to indicate spelling mistakes.</p>");
180 ci.defaultColor = KColorUtils::shade(schemeView.background().color(), bgLuma > 0.7 ? -0.35 : 0.3);
186 ci.defaultColor = KColorUtils::shade(schemeView.background().color(), bgLuma > 0.7 ? -0.35 : 0.3);
191 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>");
204 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>");
457 newFont = KateGlobal::self()->schemaManager()->schema(m_currentSchema).readEntry("Font", newFont);
479 KateSchemaConfigDefaultStylesTab::KateSchemaConfigDefaultStylesTab(KateSchemaConfigColorTab* colorTab)
565 void KateSchemaConfigDefaultStylesTab::importSchema(const QString& schemaName, const QString &schema, KConfig *cfg)
583 KateSchemaConfigHighlightTab::KateSchemaConfigHighlightTab(KateSchemaConfigDefaultStylesTab *page, KateSchemaConfigColorTab* colorTab)
614 hlCombo->addItem(KateHlManager::self()->hlSection(i) + QString ("/") + KateHlManager::self()->hlNameTranslated(i));
627 KTextEditor::MdiContainer *iface = qobject_cast<KTextEditor::MdiContainer*>(KateGlobal::self()->container());
661 QProgressDialog progress(i18n("Loading all highlightings for schema"), QString(), 0, KateHlManager::self()->highlights(), this);
766 KateHlManager::self()->getHl( it2.key() )->setKateExtendedAttributeList (it.key(), it2.value());
777 void KateSchemaConfigHighlightTab::importHl(const QString& fromSchemaName, QString schema, int hl, KConfig *cfg) {
784 QString srcName=KFileDialog::getOpenFileName( QString(KateHlManager::self()->getHl(hl)->name()+QString(".katehlcolor")),
794 if ( (grp.readEntry("full schema","true").toUpper()!="FALSE") || hlName.isEmpty() || schemaNameForLoading.isEmpty()) {
820 KateHlManager::self()->getHl( hl )->getKateExtendedAttributeListCopy(schemaNameForLoading, list, cfg);
849 QString destName=KFileDialog::getSaveFileName( QString(KateHlManager::self()->getHl(hl)->name()+".katehlcolor"),
937 lHl = new QLabel( i18n("&Default schema for %1:", KGlobal::mainComponent().aboutData()->programName ()), hbHl );
1164 KateRendererConfig::global()->setSchema (defaultSchemaCombo->itemData (defaultSchemaCombo->currentIndex()).toString());
1172 refillCombos(schemaCombo->itemData (schemaCombo->currentIndex()).toString(), defaultSchemaCombo->itemData (defaultSchemaCombo->currentIndex()).toString());
1195 void KateSchemaConfigPage::refillCombos(const QString& schemaName, const QString& defaultSchemaName)
1243 if (KateGlobal::self()->schemaManager()->schemaData(schemaNameToDelete).shippedDefaultSchema) {
1268 schemaName = KInputDialog::getText (i18n("Name for New Schema"), i18n ("Name:"), i18n("New Schema"), &ok, this);
1274 KMessageBox::information(this, i18n("<p>The schema %1 already exists.</p><p>Please choose a different schema name.</p>", schemaName), i18n("New Schema"));
1290 btndel->setEnabled( !KateGlobal::self()->schemaManager()->schemaData(schema).shippedDefaultSchema );
void changed()
KateSchemaConfigHighlightTab(KateSchemaConfigDefaultStylesTab *page, KateSchemaConfigColorTab *colorTab)
Definition: kateschemaconfig.cpp:583
void sync()
void changed()
Definition: kateschemaconfig.h:39
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
QColor selectionColor() const
Definition: kateschemaconfig.cpp:400
void changed()
void schemaChanged(const QString &newSchema)
Definition: kateschemaconfig.cpp:273
void setEditable(bool editable)
QBrush background(BackgroundRole=NormalBackground) const
QList< int > hlsForSchema(const QString &schema)
Definition: kateschemaconfig.cpp:772
Definition: katecolortreewidget.h:27
Definition: kateschema.h:33
QVector< KateColorItem > colorItems() const
Definition: katecolortreewidget.cpp:345
void schemaChanged(const QString &schema)
Definition: kateschemaconfig.cpp:518
int defaultStyleIndex() const
Definition: kateextendedattribute.cpp:69
virtual void showEvent(QShowEvent *event)
Definition: kateschemaconfig.cpp:872
void importHl(const QString &fromSchemaName=QString(), QString schema=QString(), int hl=-1, KConfig *cfg=0)
Definition: kateschemaconfig.cpp:777
static void information(QWidget *parent, const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), Options options=Notify)
void exportSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:341
QColor tint(const QColor &base, const QColor &color, qreal amount=0.3)
const char * name(StandardAction id)
void deleteGroup(const QByteArray &group, WriteConfigFlags flags=Normal)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
void updateColorPalette(const QColor &textColor)
Definition: kateschemaconfig.cpp:740
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
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
QString prefix()
QFont font
void exportSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:472
KSharedConfigPtr config()
void changed()
void deleteEntry(const QString &pKey, WriteConfigFlags pFlags=Normal)
qreal luma(const QColor &)
~KateSchemaConfigDefaultStylesTab()
Definition: kateschemaconfig.cpp:500
void schemaChanged(const QString &schema)
Definition: kateschemaconfig.cpp:678
void exportHl(QString schema=QString(), int hl=-1, KConfig *cfg=0)
Definition: kateschemaconfig.cpp:842
KateAttributeList * attributeList(const QString &schema)
Definition: kateschemaconfig.cpp:505
void updateColorPalette(const QColor &textColor)
Definition: kateschemaconfig.cpp:533
~KateSchemaConfigColorTab()
Definition: kateschemaconfig.cpp:68
virtual ~KateSchemaConfigPage()
Definition: kateschemaconfig.cpp:948
QBrush foreground(ForegroundRole=NormalText) const
void setFont(const QFont &font, bool onlyFixed=false)
void addColorItems(const QVector< KateColorItem > &colorItems)
Definition: katecolortreewidget.cpp:339
bool exists() const
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
void setDefaults(const QString &schema, KateAttributeList &, KConfig *cfg=0)
Definition: katesyntaxmanager.cpp:327
virtual void showEvent(QShowEvent *event)
Definition: kateschemaconfig.cpp:570
KateSchemaConfigFontTab()
Definition: kateschemaconfig.cpp:407
void addItem(QTreeWidgetItem *parent, const QString &styleName, KTextEditor::Attribute::Ptr defaultstyle, KateExtendedAttribute::Ptr data=KateExtendedAttribute::Ptr())
Definition: katestyletreewidget.cpp:325
QColor shade(const QColor &, qreal lumaAmount, qreal chromaAmount=0.0)
void changed()
Definition: kateview.h:78
QString getText(const QString &caption, const QString &label, const QString &value=QString(), bool *ok=0, QWidget *parent=0, QValidator *validator=0, const QString &mask=QString(), const QString &whatsThis=QString(), const QStringList &completionList=QStringList())
void writeEntry(KConfigGroup &group, const char *key, const KGlobalSettings::Completion &aValue, KConfigBase::WriteConfigFlags flags=KConfigBase::Normal)
QString name() 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
KGuiItem ok()
bool hasKey(const QString &key) const
Definition: katecolortreewidget.h:44
KateSchemaConfigPage(QWidget *parent)
Definition: kateschemaconfig.cpp:885
KateSchemaConfigDefaultStylesTab(KateSchemaConfigColorTab *colorTab)
Definition: kateschemaconfig.cpp:479
void importSchema(const QString &schemaName, const QString &schema, KConfig *cfg)
Definition: kateschemaconfig.cpp:565
~KateSchemaConfigFontTab()
Definition: kateschemaconfig.cpp:415
bool loadAllHlsForSchema(const QString &schema)
Definition: kateschemaconfig.cpp:659
Definition: katedialogs.h:92
void reparseConfiguration()
void setSpacing(int space)
void schemaChanged(const QString &newSchema)
Definition: kateschemaconfig.cpp:448
const KComponentData & mainComponent()
QBrush decoration(DecorationRole) const
void getDefaults(const QString &schema, KateAttributeList &, KConfig *cfg=0)
Definition: katesyntaxmanager.cpp:177
Definition: kateschemaconfig.h:73
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:657
void getKateExtendedAttributeListCopy(const QString &schema, QList< KateExtendedAttribute::Ptr > &, KConfig *cfg=0)
Definition: katehighlight.cpp:639
KateSchemaConfigColorTab()
Definition: kateschemaconfig.cpp:50
void exportSchema(const QString &schema, KConfig *cfg)
Definition: kateschemaconfig.cpp:560
virtual View * activeView()=0
QColor backgroundColor() const
Definition: kateschemaconfig.cpp:395
QColor findColor(const QString &key) const
Definition: katecolortreewidget.cpp:359
void importSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:465
void importSchema(KConfigGroup &config)
Definition: kateschemaconfig.cpp:328
T readEntry(const QString &key, const T &aDefault) const
~KateSchemaConfigHighlightTab()
Definition: kateschemaconfig.cpp:649
static QFont fixedFont()
QStringList list(const QString &fileClass)
QList< KTextEditor::Attribute::Ptr > KateAttributeList
Definition: kateextendedattribute.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 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:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.