KTextEditor
katemodemenulist.h
209 QString setWordWrap(const QString &text, const int maxWidth, const QFontMetrics &fontMetrics) const;
215 * @see selectHighlighting(), selectHighlightingFromExternal(), selectHighlightingSetVisibility()
237 KateModeMenuListData::ListItem *createSectionList(const QString §ionName, const QBrush &background, bool bSeparator = true, int modelPosition = -1);
334 inline int getContentWidth(const int overlayScrollbarMargin, const int classicScrollbarMargin) const;
338 selectionModel()->setCurrentIndex(m_parentMenu->m_model->index(rowItem, 0), QItemSelectionModel::ClearAndSelect);
346 inline void scrollToItem(const int rowItem, QAbstractItemView::ScrollHint hint = QAbstractItemView::PositionAtCenter)
Backend of KTextEditor::Document related public KTextEditor interfaces.
Definition katedocument.h:68
Class of an Item of the Data Model of the List.
Definition katemodemenulist.h:373
void setMode(KateFileType *type)
Associate this item with a KateFileType object.
Definition katemodemenulist.h:393
bool generateSearchName(const QString &itemName)
Generate name of the item used for the search.
Definition katemodemenulist.cpp:689
bool matchExtension(const QString &text) const
Find matches in the extensions of the item mode, with a text.
Definition katemodemenulist.cpp:723
void setSizeList(const int height, const int width=266)
Define the size of the widget list.
Definition katemodemenulist.cpp:661
int getContentWidth() const
Get the width of the contents of the list (in pixels), that is, the list minus the scroll bar and mar...
Definition katemodemenulist.cpp:684
void keyPressEvent(QKeyEvent *event) override
Override from QListView.
Definition katemodemenulist.cpp:749
void setWidth(const int width)
Define the width of the search bar, in pixels.
Definition katemodemenulist.cpp:655
void keyPressEvent(QKeyEvent *event) override
Override from QLineEdit.
Definition katemodemenulist.cpp:765
Class of menu to select the syntax highlighting language (mode menu).
Definition katemodemenulist.h:58
bool selectHighlightingFromExternal()
Update the selected item in the list widget, but without changing the syntax highlighting in the docu...
Definition katemodemenulist.cpp:553
AlignmentVButton
Vertical Alignment with respect to the trigger button.
Definition katemodemenulist.h:80
void updateMenu(KTextEditor::Document *doc)
Set document to apply the syntax highlighting.
Definition katemodemenulist.cpp:1201
void setAutoScroll(AutoScroll scroll)
Define the scroll when cleaning the search or changing the view.
Definition katemodemenulist.h:159
AlignmentHButton
Horizontal Alignment with respect to the trigger button.
Definition katemodemenulist.h:68
void showEvent(QShowEvent *event) override
Action when displaying the menu.
Definition katemodemenulist.cpp:396
AutoScroll
Defines where the list will scroll after clearing the search or changing the view.
Definition katemodemenulist.h:100
void setButton(QPushButton *button, AlignmentHButton positionX=AlignHDefault, AlignmentVButton positionY=AlignTop, AutoUpdateTextButton autoUpdateTextButton=AutoUpdateTextButton(false))
Set the button that shows this menu.
Definition katemodemenulist.cpp:361
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
ScrollHint
QModelIndex currentIndex() const const
void scrollToTop()
QItemSelectionModel * selectionModel() const const
QIcon fromTheme(const QString &name)
ClearAndSelect
virtual void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags command)
QLineEdit(QWidget *parent)
virtual bool event(QEvent *e) override
QListView(QWidget *parent)
virtual bool event(QEvent *e) override
virtual void scrollTo(const QModelIndex &index, ScrollHint hint) override
QObject * parent() const const
QStandardItem()
QString text() const const
virtual int type() const const
CaseSensitivity
QFontMetrics fontMetrics() const const
height
void scroll(int dx, int dy)
width
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.