Konsole::UrlFilter::HotSpot

Search for usage in LXR

Konsole::UrlFilter::HotSpot Class Reference

#include <Filter.h>

Inheritance diagram for Konsole::UrlFilter::HotSpot:

Public Member Functions

 HotSpot (int startLine, int startColumn, int endLine, int endColumn)
 
QList< QAction * > actions () override
 
void activate (const QString &action=QString()) override
 
FilterObject * getUrlObject () const
 
- Public Member Functions inherited from Konsole::RegExpFilter::HotSpot
 HotSpot (int startLine, int startColumn, int endLine, int endColumn)
 
QStringList capturedTexts () const
 
void setCapturedTexts (const QStringList &texts)
 
- Public Member Functions inherited from Konsole::Filter::HotSpot
 HotSpot (int startLine, int startColumn, int endLine, int endColumn)
 
int endColumn () const
 
int endLine () const
 
int startColumn () const
 
int startLine () const
 
Type type () const
 

Additional Inherited Members

- Public Types inherited from Konsole::Filter::HotSpot
enum  Type { NotSpecified , Link , Marker }
 
- Protected Member Functions inherited from Konsole::Filter::HotSpot
void setType (Type type)
 

Detailed Description

Hotspot type created by UrlFilter instances.

The activate() method opens a web browser at the given URL when called.

Definition at line 245 of file Filter.h.

Constructor & Destructor Documentation

◆ HotSpot()

UrlFilter::HotSpot::HotSpot ( int startLine,
int startColumn,
int endLine,
int endColumn )

Definition at line 389 of file Filter.cpp.

◆ ~HotSpot()

UrlFilter::HotSpot::~HotSpot ( )
overridevirtual

Reimplemented from Konsole::Filter::HotSpot.

Definition at line 455 of file Filter.cpp.

Member Function Documentation

◆ actions()

QList< QAction * > UrlFilter::HotSpot::actions ( )
overridevirtual

Returns a list of actions associated with the hotspot which can be used in a menu or toolbar.

Reimplemented from Konsole::Filter::HotSpot.

Definition at line 475 of file Filter.cpp.

◆ activate()

void UrlFilter::HotSpot::activate ( const QString & action = QString())
overridevirtual

Open a web browser at the current URL.

The url itself can be determined using the capturedTexts() method.

Reimplemented from Konsole::RegExpFilter::HotSpot.

Definition at line 408 of file Filter.cpp.

◆ getUrlObject()

FilterObject * UrlFilter::HotSpot::getUrlObject ( ) const

Definition at line 470 of file Filter.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 Sat Dec 21 2024 17:00:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.