DocumentHandler

Search for usage in LXR

#include <documenthandler.h>

Inheritance diagram for DocumentHandler:

Properties

Alertsalerts
 
Qt::Alignment alignment
 
bool autoReload
 
bool autoSave
 
QColor backgroundColor
 
bool bold
 
int currentLineIndex
 
int cursorPosition
 
QML_ELEMENTQQuickTextDocument * document
 
bool enableSyntaxHighlighting
 
bool externallyModified
 
QVariantMap fileInfo
 
QString fileName
 
QString fileType
 
QUrl fileUrl
 
bool findCaseSensitively
 
bool findWholeWords
 
QString fontFamily
 
int fontSize
 
QString formatName
 
bool isRich = false
 
bool italic
 
int lineCount
 
bool modified
 
int selectionEnd
 
int selectionStart
 
qreal tabSpace
 
QString text
 
QColor textColor
 
QString theme
 
bool underline
 
bool uppercase
 
- Properties inherited from QObject
 objectName
 

Signals

void alignmentChanged ()
 
void autoReloadChanged ()
 
void autoSaveChanged ()
 
void backgroundColorChanged ()
 
void boldChanged ()
 
void currentLineIndexChanged ()
 
void cursorPositionChanged ()
 
void documentChanged ()
 
void enableSyntaxHighlightingChanged ()
 
void error (const QString &message)
 
void externallyModifiedChanged ()
 
void fileInfoChanged ()
 
void fileSaved ()
 
void fileUrlChanged ()
 
void findCaseSensitivelyChanged ()
 
void findWholeWordsChanged ()
 
void fontFamilyChanged ()
 
void fontSizeChanged ()
 
void formatNameChanged ()
 
void isRichChanged ()
 
void italicChanged ()
 
void lineCountChanged ()
 
void loaded (const QUrl &url)
 
void loadFile (QUrl url)
 
void modifiedChanged ()
 
void searchFound (int start, int end)
 
void selectionEndChanged ()
 
void selectionStartChanged ()
 
void tabSpaceChanged ()
 
void textChanged ()
 
void textColorChanged ()
 
void themeChanged ()
 
void underlineChanged ()
 
void uppercaseChanged ()
 

Public Slots

void find (const QString &query, const bool &forward=true)
 
int getCurrentLineIndex ()
 
static const QString getLanguageNameFromFileName (const QUrl &fileName)
 
static const QStringList getLanguageNameList ()
 
int goToLine (const int &line)
 
bool isFoldable (const int &line) const
 
bool isFolded (const int &line) const
 
int lineCount ()
 
int lineHeight (const int &line)
 
void replace (const QString &query, const QString &value)
 
void replaceAll (const QString &query, const QString &value)
 
void saveAs (const QUrl &url)
 
void toggleFold (const int &line)
 

Public Member Functions

Qt::Alignment alignment () const
 
bool autoSave () const
 
bool bold () const
 
int cursorPosition () const
 
QQuickTextDocumentdocument () const
 
bool enableSyntaxHighlighting () const
 
QVariantMap fileInfo () const
 
QString fileName () const
 
QString fileType () const
 
QUrl fileUrl () const
 
QString fontFamily () const
 
int fontSize () const
 
QString formatName () const
 
AlertsgetAlerts () const
 
bool getAutoReload () const
 
QColor getBackgroundColor () const
 
bool getExternallyModified () const
 
bool getIsRich () const
 
bool getModified () const
 
bool italic () const
 
int selectionEnd () const
 
int selectionStart () const
 
void setAlignment (Qt::Alignment alignment)
 
void setAutoReload (const bool &value)
 
void setAutoSave (const bool &value)
 
void setBackgroundColor (const QColor &color)
 
void setBold (bool bold)
 
void setCursorPosition (int position)
 
void setDocument (QQuickTextDocument *document)
 
void setEnableSyntaxHighlighting (const bool &value)
 
void setExternallyModified (const bool &value)
 
void setFileUrl (const QUrl &url)
 
void setFontFamily (const QString &family)
 
void setFontSize (int size)
 
void setFormatName (const QString &formatName)
 
void setItalic (bool italic)
 
void setSelectionEnd (int position)
 
void setSelectionStart (int position)
 
void setTabSpace (qreal value)
 
void setText (const QString &text)
 
void setTextColor (const QColor &color)
 
void setTheme (const QString &theme)
 
void setUnderline (bool underline)
 
void setUppercase (bool uppercase)
 
qreal tabSpace () const
 
QString text () const
 
QColor textColor () const
 
QString theme () const
 
bool underline () const
 
bool uppercase () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Static Public Member Functions

static bool isDark (const QColor &color)
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 

Additional Inherited Members

- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

The DocumentHandler class.

Note
This is not part of any public API, and can it is only exposed as part of the TextEditor control.

Definition at line 238 of file documenthandler.h.

Property Documentation

◆ alerts

Alerts * DocumentHandler::alerts
read

Definition at line 375 of file documenthandler.h.

◆ alignment

Qt::Alignment DocumentHandler::alignment
readwrite

Definition at line 275 of file documenthandler.h.

◆ autoReload

bool DocumentHandler::autoReload
readwrite

Definition at line 355 of file documenthandler.h.

◆ autoSave

bool DocumentHandler::autoSave
readwrite

Definition at line 360 of file documenthandler.h.

◆ backgroundColor

QColor DocumentHandler::backgroundColor
readwrite

Definition at line 380 of file documenthandler.h.

◆ bold

bool DocumentHandler::bold
readwrite

Definition at line 280 of file documenthandler.h.

◆ currentLineIndex

int DocumentHandler::currentLineIndex
read

Definition at line 370 of file documenthandler.h.

◆ cursorPosition

int DocumentHandler::cursorPosition
readwrite

Definition at line 250 of file documenthandler.h.

◆ document

QML_ELEMENTQQuickTextDocument * DocumentHandler::document
readwrite

Definition at line 245 of file documenthandler.h.

◆ enableSyntaxHighlighting

bool DocumentHandler::enableSyntaxHighlighting
readwrite

Definition at line 390 of file documenthandler.h.

◆ externallyModified

bool DocumentHandler::externallyModified
read

Definition at line 345 of file documenthandler.h.

◆ fileInfo

QVariantMap DocumentHandler::fileInfo
read

Definition at line 330 of file documenthandler.h.

◆ fileName

QString DocumentHandler::fileName
read

Definition at line 320 of file documenthandler.h.

◆ fileType

QString DocumentHandler::fileType
read

Definition at line 325 of file documenthandler.h.

◆ fileUrl

QUrl DocumentHandler::fileUrl
readwrite

Definition at line 335 of file documenthandler.h.

◆ findCaseSensitively

bool DocumentHandler::findCaseSensitively

Definition at line 400 of file documenthandler.h.

◆ findWholeWords

bool DocumentHandler::findWholeWords

Definition at line 395 of file documenthandler.h.

◆ fontFamily

QString DocumentHandler::fontFamily
readwrite

Definition at line 270 of file documenthandler.h.

◆ fontSize

int DocumentHandler::fontSize
readwrite

Definition at line 310 of file documenthandler.h.

◆ formatName

QString DocumentHandler::formatName
readwrite

Definition at line 365 of file documenthandler.h.

◆ isRich

bool DocumentHandler::isRich = false
read

Definition at line 300 of file documenthandler.h.

◆ italic

bool DocumentHandler::italic
readwrite

Definition at line 290 of file documenthandler.h.

◆ lineCount

int DocumentHandler::lineCount
read

Definition at line 305 of file documenthandler.h.

◆ modified

bool DocumentHandler::modified
read

Definition at line 350 of file documenthandler.h.

◆ selectionEnd

int DocumentHandler::selectionEnd
readwrite

Definition at line 260 of file documenthandler.h.

◆ selectionStart

int DocumentHandler::selectionStart
readwrite

Definition at line 255 of file documenthandler.h.

◆ tabSpace

qreal DocumentHandler::tabSpace
readwrite

Definition at line 315 of file documenthandler.h.

◆ text

QString DocumentHandler::text
readwrite

Definition at line 340 of file documenthandler.h.

◆ textColor

QColor DocumentHandler::textColor
readwrite

Definition at line 265 of file documenthandler.h.

◆ theme

QString DocumentHandler::theme
readwrite

Definition at line 385 of file documenthandler.h.

◆ underline

bool DocumentHandler::underline
readwrite

Definition at line 295 of file documenthandler.h.

◆ uppercase

bool DocumentHandler::uppercase
readwrite

Definition at line 285 of file documenthandler.h.

Member Function Documentation

◆ alignment()

Qt::Alignment DocumentHandler::alignment ( ) const

alignment

Returns

Definition at line 555 of file documenthandler.cpp.

◆ autoSave()

bool DocumentHandler::autoSave ( ) const

autoSave

Returns

Definition at line 313 of file documenthandler.cpp.

◆ bold()

bool DocumentHandler::bold ( ) const

bold

Returns

Definition at line 572 of file documenthandler.cpp.

◆ cursorPosition()

int DocumentHandler::cursorPosition ( ) const

cursorPosition

Returns

Definition at line 477 of file documenthandler.cpp.

◆ document()

QQuickTextDocument * DocumentHandler::document ( ) const

document

Returns

Definition at line 447 of file documenthandler.cpp.

◆ enableSyntaxHighlighting()

bool DocumentHandler::enableSyntaxHighlighting ( ) const

enableSyntaxHighlighting

Returns

Definition at line 1129 of file documenthandler.cpp.

◆ fileInfo()

QVariantMap DocumentHandler::fileInfo ( ) const

fileInfo

Returns

Definition at line 725 of file documenthandler.cpp.

◆ fileName()

QString DocumentHandler::fileName ( ) const

fileName

Returns

Definition at line 693 of file documenthandler.cpp.

◆ fileType()

QString DocumentHandler::fileType ( ) const

fileType

Returns

Definition at line 702 of file documenthandler.cpp.

◆ fileUrl()

QUrl DocumentHandler::fileUrl ( ) const

fileUrl

Returns

Definition at line 707 of file documenthandler.cpp.

◆ find

void DocumentHandler::find ( const QString & query,
const bool & forward = true )
slot

find

Parameters
query

Definition at line 874 of file documenthandler.cpp.

◆ fontFamily()

QString DocumentHandler::fontFamily ( ) const

fontFamily

Returns

Definition at line 521 of file documenthandler.cpp.

◆ fontSize()

int DocumentHandler::fontSize ( ) const

fontSize

Returns

Definition at line 641 of file documenthandler.cpp.

◆ formatName()

QString DocumentHandler::formatName ( ) const

formatName

Returns

Definition at line 410 of file documenthandler.cpp.

◆ getAlerts()

Alerts * DocumentHandler::getAlerts ( ) const

getAlerts

Returns

Definition at line 442 of file documenthandler.cpp.

◆ getAutoReload()

bool DocumentHandler::getAutoReload ( ) const

getAutoReload

Returns

Definition at line 299 of file documenthandler.cpp.

◆ getBackgroundColor()

QColor DocumentHandler::getBackgroundColor ( ) const

getBackgroundColor

Returns

Definition at line 425 of file documenthandler.cpp.

◆ getCurrentLineIndex

int DocumentHandler::getCurrentLineIndex ( )
slot

getCurrentLineIndex

Returns

Definition at line 1096 of file documenthandler.cpp.

◆ getExternallyModified()

bool DocumentHandler::getExternallyModified ( ) const

getExternallyModified

Returns

Definition at line 341 of file documenthandler.cpp.

◆ getIsRich()

bool DocumentHandler::getIsRich ( ) const

getIsRich

Returns

Definition at line 636 of file documenthandler.cpp.

◆ getLanguageNameFromFileName

const QString DocumentHandler::getLanguageNameFromFileName ( const QUrl & fileName)
staticslot

getLanguageNameFromFileName

Parameters
fileName
Returns

Definition at line 809 of file documenthandler.cpp.

◆ getLanguageNameList

const QStringList DocumentHandler::getLanguageNameList ( )
staticslot

getLanguageNameList

Returns

Definition at line 818 of file documenthandler.cpp.

◆ getModified()

bool DocumentHandler::getModified ( ) const

getModified

Returns

Definition at line 333 of file documenthandler.cpp.

◆ goToLine

int DocumentHandler::goToLine ( const int & line)
slot

Definition at line 1104 of file documenthandler.cpp.

◆ isDark()

static bool DocumentHandler::isDark ( const QColor & color)
inlinestatic

isDark

Parameters
color
Returns

Definition at line 712 of file documenthandler.h.

◆ isFoldable

bool DocumentHandler::isFoldable ( const int & line) const
slot

Definition at line 1003 of file documenthandler.cpp.

◆ isFolded

bool DocumentHandler::isFolded ( const int & line) const
slot

Definition at line 1016 of file documenthandler.cpp.

◆ italic()

bool DocumentHandler::italic ( ) const

italic

Returns

Definition at line 604 of file documenthandler.cpp.

◆ lineHeight

int DocumentHandler::lineHeight ( const int & line)
slot

lineHeight

Parameters
line
Returns

Definition at line 1078 of file documenthandler.cpp.

◆ replace

void DocumentHandler::replace ( const QString & query,
const QString & value )
slot

Definition at line 935 of file documenthandler.cpp.

◆ replaceAll

void DocumentHandler::replaceAll ( const QString & query,
const QString & value )
slot

Definition at line 958 of file documenthandler.cpp.

◆ saveAs

void DocumentHandler::saveAs ( const QUrl & url)
slot

saveAs

Parameters
url

Definition at line 767 of file documenthandler.cpp.

◆ selectionEnd()

int DocumentHandler::selectionEnd ( ) const

selectionEnd

Returns

Definition at line 507 of file documenthandler.cpp.

◆ selectionStart()

int DocumentHandler::selectionStart ( ) const

selectionStart

Returns

Definition at line 493 of file documenthandler.cpp.

◆ setAlignment()

void DocumentHandler::setAlignment ( Qt::Alignment alignment)

setAlignment

Parameters
alignment

Definition at line 563 of file documenthandler.cpp.

◆ setAutoReload()

void DocumentHandler::setAutoReload ( const bool & value)

setAutoReload

Parameters
value

Definition at line 304 of file documenthandler.cpp.

◆ setAutoSave()

void DocumentHandler::setAutoSave ( const bool & value)

setAutoSave

Parameters
value

Definition at line 318 of file documenthandler.cpp.

◆ setBackgroundColor()

void DocumentHandler::setBackgroundColor ( const QColor & color)

setBackgroundColor

Parameters
color

Definition at line 430 of file documenthandler.cpp.

◆ setBold()

void DocumentHandler::setBold ( bool bold)

setBold

Parameters
bold

Definition at line 580 of file documenthandler.cpp.

◆ setCursorPosition()

void DocumentHandler::setCursorPosition ( int position)

setCursorPosition

Parameters
position

Definition at line 482 of file documenthandler.cpp.

◆ setDocument()

void DocumentHandler::setDocument ( QQuickTextDocument * document)

setDocument

Parameters
document

Definition at line 452 of file documenthandler.cpp.

◆ setEnableSyntaxHighlighting()

void DocumentHandler::setEnableSyntaxHighlighting ( const bool & value)

setEnableSyntaxHighlighting

Parameters
value

Definition at line 1112 of file documenthandler.cpp.

◆ setExternallyModified()

void DocumentHandler::setExternallyModified ( const bool & value)

setExternallyModified

Parameters
value

Definition at line 346 of file documenthandler.cpp.

◆ setFileUrl()

void DocumentHandler::setFileUrl ( const QUrl & url)

setFileUrl

Parameters
url

Definition at line 712 of file documenthandler.cpp.

◆ setFontFamily()

void DocumentHandler::setFontFamily ( const QString & family)

setFontFamily

Parameters
family

Definition at line 530 of file documenthandler.cpp.

◆ setFontSize()

void DocumentHandler::setFontSize ( int size)

setFontSize

Parameters
size

Definition at line 650 of file documenthandler.cpp.

◆ setFormatName()

void DocumentHandler::setFormatName ( const QString & formatName)

setFormatName

Parameters
formatName

Definition at line 415 of file documenthandler.cpp.

◆ setItalic()

void DocumentHandler::setItalic ( bool italic)

setItalic

Parameters
italic

Definition at line 612 of file documenthandler.cpp.

◆ setSelectionEnd()

void DocumentHandler::setSelectionEnd ( int position)

setSelectionEnd

Parameters
position

Definition at line 512 of file documenthandler.cpp.

◆ setSelectionStart()

void DocumentHandler::setSelectionStart ( int position)

setSelectionStart

Parameters
position

Definition at line 498 of file documenthandler.cpp.

◆ setTabSpace()

void DocumentHandler::setTabSpace ( qreal value)

Definition at line 671 of file documenthandler.cpp.

◆ setText()

void DocumentHandler::setText ( const QString & text)

setText

Parameters
text

Definition at line 291 of file documenthandler.cpp.

◆ setTextColor()

void DocumentHandler::setTextColor ( const QColor & color)

setTextColor

Parameters
color

Definition at line 547 of file documenthandler.cpp.

◆ setTheme()

void DocumentHandler::setTheme ( const QString & theme)

setTheme

Parameters
theme

Definition at line 1134 of file documenthandler.cpp.

◆ setUnderline()

void DocumentHandler::setUnderline ( bool underline)

setUnderline

Parameters
underline

Definition at line 628 of file documenthandler.cpp.

◆ setUppercase()

void DocumentHandler::setUppercase ( bool uppercase)

setUppercase

Parameters
uppercase

Definition at line 596 of file documenthandler.cpp.

◆ tabSpace()

qreal DocumentHandler::tabSpace ( ) const

Definition at line 688 of file documenthandler.cpp.

◆ text()

QString DocumentHandler::text ( ) const
inline

text

Returns

Definition at line 600 of file documenthandler.h.

◆ textColor()

QColor DocumentHandler::textColor ( ) const

textColor

Returns

Definition at line 538 of file documenthandler.cpp.

◆ theme()

QString DocumentHandler::theme ( ) const

theme

Returns

Definition at line 1145 of file documenthandler.cpp.

◆ toggleFold

void DocumentHandler::toggleFold ( const int & line)
slot

Definition at line 1039 of file documenthandler.cpp.

◆ underline()

bool DocumentHandler::underline ( ) const

underline

Returns

Definition at line 620 of file documenthandler.cpp.

◆ uppercase()

bool DocumentHandler::uppercase ( ) const

uppercase

Returns

Definition at line 588 of file documenthandler.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:52:34 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.