• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

  • KTextEditor
  • TextHintInterface
Public Member Functions | Friends | List of all members
KTextEditor::TextHintInterface Class Referenceabstract

#include <texthintinterface.h>

Public Member Functions

virtual void enableTextHints (int timeout)=0
 
virtual void disableTextHints ()=0
 
unsigned int textHintInterfaceNumber () const
 
virtual void needTextHint (int line, int col, TQString &text)=0
 

Friends

class PrivateTextHintInterface
 

Detailed Description

This is an interface for the KTextEditor::View class.

Definition at line 34 of file texthintinterface.h.

Constructor & Destructor Documentation

◆ TextHintInterface()

KTextEditor::TextHintInterface::TextHintInterface ( )

Definition at line 37 of file texthintinterface.cpp.

◆ ~TextHintInterface()

KTextEditor::TextHintInterface::~TextHintInterface ( )
virtual

Definition at line 45 of file texthintinterface.cpp.

Member Function Documentation

◆ disableTextHints()

virtual void KTextEditor::TextHintInterface::disableTextHints ( )
pure virtual

Disable texthints.

Per default they are disabled.

◆ enableTextHints()

virtual void KTextEditor::TextHintInterface::enableTextHints ( int  timeout)
pure virtual

enable Texthints.

If they are enabled a signal needTextHint is emitted, if the mouse changed the position and a new character is beneath the mouse cursor. The signal is delayed for a certain time, specifiedin the timeout parameter.

◆ needTextHint()

virtual void KTextEditor::TextHintInterface::needTextHint ( int  line,
int  col,
TQString &  text 
)
pure virtual

emit this signal, if a tooltip text is needed for displaying.

I you don't want a tooltip to be displayd set text to an emtpy string in a connected slot, otherwise set text to the string you want the editor to display

◆ textHintInterfaceNumber()

unsigned int KTextEditor::TextHintInterface::textHintInterfaceNumber ( ) const

This method returns a number, unique during one application run.

Definition at line 50 of file texthintinterface.cpp.

Friends And Related Function Documentation

◆ PrivateTextHintInterface

friend class PrivateTextHintInterface
friend

Definition at line 36 of file texthintinterface.h.


The documentation for this class was generated from the following files:
  • texthintinterface.h
  • texthintinterface.cpp

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for interfaces by doxygen 1.9.4
This website is maintained by Timothy Pearson.