Kate
katecompletionconfig.cpp
Go to the documentation of this file.
63 for (CodeCompletionModel::CompletionProperty i = CodeCompletionModel::FirstProperty; i <= CodeCompletionModel::LastProperty; i = static_cast<CodeCompletionModel::CompletionProperty>(i << 1)) {
64 QListWidgetItem* item = new QListWidgetItem(m_model->propertyName(i), ui->filteringAttributesList, i);
76 m_groupingScopeType->setCheckState(0, (m_model->groupingMethod() & KateCompletionModel::ScopeType) ? Qt::Checked : Qt::Unchecked);
79 m_groupingScope->setCheckState(0, (m_model->groupingMethod() & KateCompletionModel::Scope) ? Qt::Checked : Qt::Unchecked);
82 m_groupingAccessType->setCheckState(0, (m_model->groupingMethod() & KateCompletionModel::AccessType) ? Qt::Checked : Qt::Unchecked);
85 m_groupingItemType->setCheckState(0, (m_model->groupingMethod() & KateCompletionModel::ItemType) ? Qt::Checked : Qt::Unchecked);
170 ui->filteringContextMatchOnly->setChecked(config.readEntry("Filter by Context Match Only", false));
171 ui->filteringHideAttributes->setChecked(config.readEntry("Hide Completions by Attribute", false));
179 ui->filteringMaximumInheritanceDepth->setValue(config.readEntry("Filter by Maximum Inheritance Depth", 0));
184 m_groupingScopeType->setCheckState(0, config.readEntry("Group by Scope Type", true) ? Qt::Checked : Qt::Unchecked);
185 m_groupingScope->setCheckState(0, config.readEntry("Group by Scope", false) ? Qt::Checked : Qt::Unchecked);
186 m_groupingAccessType->setCheckState(0, config.readEntry("Group by Access Type", true) ? Qt::Checked : Qt::Unchecked);
187 m_groupingItemType->setCheckState(0, config.readEntry("Group by Item Type", false) ? Qt::Checked : Qt::Unchecked);
199 item->setCheckState(1, config.readEntry(QString("Column %1 Merge").arg(i), (i == CodeCompletionModel::Scope || i == CodeCompletionModel::Name || i == CodeCompletionModel::Arguments)) ? Qt::Checked : Qt::Unchecked);
200 item->setCheckState(2, config.readEntry(QString("Column %1 Show").arg(i), true) ? Qt::Checked : Qt::Unchecked);
229 config.writeEntry("Filter by Maximum Inheritance Depth", ui->filteringMaximumInheritanceDepth->value());
234 config.writeEntry("Group by Scope Type", m_groupingScopeType->checkState(0) == Qt::Checked ? true : false);
235 config.writeEntry("Group by Scope", m_groupingScope->checkState(0) == Qt::Checked ? true : false);
236 config.writeEntry("Group by Access Type", m_groupingAccessType->checkState(0) == Qt::Checked ? true : false);
237 config.writeEntry("Group by Item Type", m_groupingItemType->checkState(0) == Qt::Checked ? true : false);
248 config.writeEntry(QString("Column %1 Merge").arg(i), item->checkState(1) == Qt::Checked ? true : false);
249 config.writeEntry(QString("Column %1 Show").arg(i), item->checkState(2) == Qt::Checked ? true : false);
299 m_model->setSortingCaseSensitivity(ui->sortingCaseSensitive->isChecked() ? Qt::CaseSensitive : Qt::CaseInsensitive);
344 if (item->type() != KTextEditor::CodeCompletionModel::Name && item->checkState(2) == Qt::Unchecked)
void setMaximumInheritanceDepth(int maxDepth)
Definition: katecompletionmodel.cpp:1647
bool filterContextMatchesOnly() const
Definition: katecompletionmodel.cpp:1603
void setFilterAttributes(KTextEditor::CodeCompletionModel::CompletionProperties attributes)
Definition: katecompletionmodel.cpp:1634
void setFilterContextMatchesOnly(bool filter)
Definition: katecompletionmodel.cpp:1608
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
bool accessIncludeConst() const
Definition: katecompletionmodel.cpp:1360
bool accessIncludeSignalSlot() const
Definition: katecompletionmodel.cpp:1390
KateCompletionConfig(KateCompletionModel *model, QWidget *parent=0L)
Definition: katecompletionconfig.cpp:34
void configEnd()
end a config change transaction, update the concerned documents/views/renderers
Definition: kateconfig.cpp:63
void setFilteringEnabled(bool enable)
Definition: katecompletionmodel.cpp:1186
void setColumnMerges(const QList< QList< int > > &columnMerges)
Definition: katecompletionmodel.cpp:1257
void setSortingCaseSensitivity(Qt::CaseSensitivity cs)
Definition: katecompletionmodel.cpp:1570
void setGroupingEnabled(bool enable)
Definition: katecompletionmodel.cpp:1200
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
Definition: katecompletionmodel.h:48
bool accessIncludeStatic() const
Definition: katecompletionmodel.cpp:1375
GroupingMethods groupingMethod() const
Definition: katecompletionmodel.cpp:1415
static QString propertyName(KTextEditor::CodeCompletionModel::CompletionProperty property)
Definition: katecompletionmodel.cpp:1897
static QString columnName(int column)
Definition: katecompletionmodel.cpp:1232
void setAccessIncludeStatic(bool include)
Definition: katecompletionmodel.cpp:1380
bool isFilteringEnabled() const
Definition: katecompletionmodel.cpp:1222
KSharedConfigPtr config()
void configStart()
start some config changes this method is needed to init some kind of transaction for config changes...
Definition: kateconfig.cpp:53
void readConfig(const KConfigGroup &config)
Read config from object.
Definition: katecompletionconfig.cpp:158
const QList< QList< int > > & columnMerges() const
Definition: katecompletionmodel.cpp:1252
bool isSortingEnabled() const
Definition: katecompletionmodel.cpp:1227
void setSortingAlphabetical(bool alphabetical)
Definition: katecompletionmodel.cpp:1556
int maximumInheritanceDepth() const
Definition: katecompletionmodel.cpp:1642
void setColumnMergingEnabled(bool enable)
Definition: katecompletionmodel.cpp:1206
void setAccessIncludeConst(bool include)
Definition: katecompletionmodel.cpp:1365
static const int ColumnCount
void setAccessIncludeSignalSlot(bool include)
Definition: katecompletionmodel.cpp:1395
bool isColumnMergingEnabled() const
Definition: katecompletionmodel.cpp:1212
void writeConfig(KConfigGroup &config)
Write config to object.
Definition: katecompletionconfig.cpp:208
bool isGroupingEnabled() const
Definition: katecompletionmodel.cpp:1217
void setFilterByAttribute(bool filter)
Definition: katecompletionmodel.cpp:1621
void setSortingEnabled(bool enable)
Definition: katecompletionmodel.cpp:1192
void setGroupingMethod(GroupingMethods m)
Definition: katecompletionmodel.cpp:1353
virtual ~KateCompletionConfig()
Definition: katecompletionconfig.cpp:153
Qt::CaseSensitivity sortingCaseSensitivity() const
Definition: katecompletionmodel.cpp:1432
CompletionProperty
bool isSortingAlphabetical() const
Definition: katecompletionmodel.cpp:1427
void sync()
KTextEditor::CodeCompletionModel::CompletionProperties filterAttributes() const
Definition: katecompletionmodel.cpp:1629
void setSortingByInheritanceDepth(bool byIneritance)
Definition: katecompletionmodel.cpp:1423
T readEntry(const QString &key, const T &aDefault) const
bool filterByAttribute() const
Definition: katecompletionmodel.cpp:1616
QStringList list(const QString &fileClass)
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.