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:1652
bool filterContextMatchesOnly() const
Definition: katecompletionmodel.cpp:1608
void setFilterAttributes(KTextEditor::CodeCompletionModel::CompletionProperties attributes)
Definition: katecompletionmodel.cpp:1639
void clear()
void setFilterContextMatchesOnly(bool filter)
Definition: katecompletionmodel.cpp:1613
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
bool accessIncludeConst() const
Definition: katecompletionmodel.cpp:1355
Qt::CheckState checkState() const
Qt::CheckState checkState(int column) const
bool accessIncludeSignalSlot() const
Definition: katecompletionmodel.cpp:1385
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:64
void setFilteringEnabled(bool enable)
Definition: katecompletionmodel.cpp:1178
void setColumnMerges(const QList< QList< int > > &columnMerges)
Definition: katecompletionmodel.cpp:1251
void setSortingCaseSensitivity(Qt::CaseSensitivity cs)
Definition: katecompletionmodel.cpp:1574
void setGroupingEnabled(bool enable)
Definition: katecompletionmodel.cpp:1194
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
Definition: katecompletionmodel.h:48
int type() const
bool accessIncludeStatic() const
Definition: katecompletionmodel.cpp:1370
GroupingMethods groupingMethod() const
Definition: katecompletionmodel.cpp:1410
static QString propertyName(KTextEditor::CodeCompletionModel::CompletionProperty property)
Definition: katecompletionmodel.cpp:1904
static QString columnName(int column)
Definition: katecompletionmodel.cpp:1226
void setAccessIncludeStatic(bool include)
Definition: katecompletionmodel.cpp:1375
bool isFilteringEnabled() const
Definition: katecompletionmodel.cpp:1216
void configStart()
start some config changes this method is needed to init some kind of transaction for config changes...
Definition: kateconfig.cpp:54
void readConfig(const KConfigGroup &config)
Read config from object.
Definition: katecompletionconfig.cpp:158
int count(const T &value) const
void append(const T &value)
const QList< QList< int > > & columnMerges() const
Definition: katecompletionmodel.cpp:1246
bool isSortingEnabled() const
Definition: katecompletionmodel.cpp:1221
bool isEmpty() const
void setSortingAlphabetical(bool alphabetical)
Definition: katecompletionmodel.cpp:1558
int maximumInheritanceDepth() const
Definition: katecompletionmodel.cpp:1647
void setCheckState(Qt::CheckState state)
void setColumnMergingEnabled(bool enable)
Definition: katecompletionmodel.cpp:1200
void setAccessIncludeConst(bool include)
Definition: katecompletionmodel.cpp:1360
bool contains(const T &value) const
void setAccessIncludeSignalSlot(bool include)
Definition: katecompletionmodel.cpp:1390
bool isColumnMergingEnabled() const
Definition: katecompletionmodel.cpp:1206
void writeConfig(KConfigGroup &config)
Write config to object.
Definition: katecompletionconfig.cpp:208
void setCheckState(int column, Qt::CheckState state)
bool isGroupingEnabled() const
Definition: katecompletionmodel.cpp:1211
void setFilterByAttribute(bool filter)
Definition: katecompletionmodel.cpp:1626
void setSortingEnabled(bool enable)
Definition: katecompletionmodel.cpp:1184
void setGroupingMethod(GroupingMethods m)
Definition: katecompletionmodel.cpp:1348
void setText(int column, const QString &text)
virtual ~KateCompletionConfig()
Definition: katecompletionconfig.cpp:153
Qt::CaseSensitivity sortingCaseSensitivity() const
Definition: katecompletionmodel.cpp:1427
int type() const
bool isSortingAlphabetical() const
Definition: katecompletionmodel.cpp:1422
KTextEditor::CodeCompletionModel::CompletionProperties filterAttributes() const
Definition: katecompletionmodel.cpp:1634
void setSortingByInheritanceDepth(bool byIneritance)
Definition: katecompletionmodel.cpp:1418
bool filterByAttribute() const
Definition: katecompletionmodel.cpp:1621
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.