• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
ChatView Class Reference

#include <chatview.h>

Inheritance diagram for ChatView:
Inheritance graph
[legend]

Public Types

enum  KopeteTabState {
  Normal, Highlighted, Changed, Typing,
  Message, Undefined
}
 

Public Slots

virtual void appendMessage (Kopete::Message &message)
 
virtual bool closeView (bool force=false)
 
void copy ()
 
void cut ()
 
virtual void dropEvent (QDropEvent *)
 
bool isDragEventAccepted (const QDragMoveEvent *) const
 
virtual void messageSentSuccessfully ()
 
void nickComplete ()
 
void paste ()
 
void remoteTyping (const Kopete::Contact *contact, bool typing)
 
void resetFontAndColor ()
 
void sendFile ()
 
virtual void sendMessage ()
 
void setStatusText (const QString &text)
 
void slotRecalculateSize (int difference)
 
KopeteTabState tabState () const
 

Signals

void activated (KopeteView *)
 
void autoSpellCheckEnabled (ChatView *, bool)
 
void canAcceptFilesChanged ()
 
void canSendChanged (bool)
 
void captionChanged (bool active)
 
void closing (KopeteView *)
 
void messageSent (Kopete::Message &)
 
void messageSuccess (ChatView *)
 
void rtfEnabled (ChatView *, bool)
 
void shown ()
 
void updateChatLabel (ChatView *, const QString &)
 
void updateChatState (ChatView *, int)
 
void updateChatTooltip (ChatView *, const QString &)
 
void updateStatusIcon (ChatView *)
 
void windowCreated ()
 

Public Member Functions

 ChatView (Kopete::ChatSession *manager, ChatWindowPlugin *parent)
 
 ~ChatView ()
 
void addText (const QString &text)
 
bool canSend () const
 
bool canSendFile () const
 
QString & caption () const
 
virtual void clear ()
 
virtual Kopete::Message currentMessage ()
 
ChatTextEditPart * editPart () const
 
KTextEdit * editWidget ()
 
virtual bool isVisible ()
 
void loadChatSettings ()
 
virtual QWidget * mainWidget ()
 
KopeteChatWindow * mainWindow () const
 
virtual void makeVisible ()
 
ChatMessagePart * messagePart () const
 
virtual void raise (bool activate=false)
 
virtual void registerContextMenuHandler (QObject *target, const char *slot)
 
virtual void registerTooltipHandler (QObject *target, const char *slot)
 
void saveChatSettings ()
 
void saveOptions ()
 
bool sendInProgress () const
 
void setActive (bool value)
 
void setCaption (const QString &text, bool modified)
 
virtual void setCurrentMessage (const Kopete::Message &newMessage)
 
void setMainWindow (KopeteChatWindow *parent)
 
const QString & statusText ()
 

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *)
 
virtual void dragMoveEvent (QDragMoveEvent *)
 

Detailed Description

Author
Olivier Goffart

Definition at line 62 of file chatview.h.

Member Enumeration Documentation

enum ChatView::KopeteTabState

the state of our chat

Enumerator
Normal 
Highlighted 
Changed 
Typing 
Message 
Undefined 

Definition at line 70 of file chatview.h.

Constructor & Destructor Documentation

ChatView::ChatView ( Kopete::ChatSession *  manager,
ChatWindowPlugin *  parent 
)

Definition at line 82 of file chatview.cpp.

ChatView::~ChatView ( )

Definition at line 178 of file chatview.cpp.

Member Function Documentation

void ChatView::activated ( KopeteView *  )
signal
void ChatView::addText ( const QString &  text)

Adds text into the edit area.

Used when you select an emoticon

Parameters
textThe text to be inserted

Definition at line 244 of file chatview.cpp.

void ChatView::appendMessage ( Kopete::Message &  message)
virtualslot

Called when a message is received from someone.

Parameters
messageThe message received

Definition at line 685 of file chatview.cpp.

void ChatView::autoSpellCheckEnabled ( ChatView *  ,
bool   
)
signal
void ChatView::canAcceptFilesChanged ( )
signal
bool ChatView::canSend ( ) const

Definition at line 197 of file chatview.cpp.

void ChatView::canSendChanged ( bool  )
signal

Our send-button-enabled flag has changed.

bool ChatView::canSendFile ( ) const

Definition at line 202 of file chatview.cpp.

QString & ChatView::caption ( ) const

Definition at line 654 of file chatview.cpp.

void ChatView::captionChanged ( bool  active)
signal
void ChatView::clear ( )
virtual

Clears the chat buffer.

Reimplemented from KopeteView

Definition at line 249 of file chatview.cpp.

bool ChatView::closeView ( bool  force = false)
virtualslot

Definition at line 345 of file chatview.cpp.

void ChatView::closing ( KopeteView *  )
signal
void ChatView::copy ( )
slot

Initiates a copy action If there is text selected in the HTML view, that text is copied Otherwise, the entire edit area is copied.

Definition at line 226 of file chatview.cpp.

Kopete::Message ChatView::currentMessage ( )
virtual

Returns the message currently in the edit area.

Returns
The Kopete::Message object for the message

Reimplemented from KopeteView

Definition at line 211 of file chatview.cpp.

void ChatView::cut ( )
slot

Initiates a cut action on the edit area of the chat view.

Definition at line 221 of file chatview.cpp.

void ChatView::dragEnterEvent ( QDragEnterEvent *  event)
protectedvirtual

Definition at line 907 of file chatview.cpp.

void ChatView::dragMoveEvent ( QDragMoveEvent *  event)
protectedvirtual

Definition at line 918 of file chatview.cpp.

void ChatView::dropEvent ( QDropEvent *  event)
virtualslot

Definition at line 965 of file chatview.cpp.

ChatTextEditPart* ChatView::editPart ( ) const
inline

Definition at line 73 of file chatview.h.

KTextEdit * ChatView::editWidget ( )

Definition at line 187 of file chatview.cpp.

bool ChatView::isDragEventAccepted ( const QDragMoveEvent *  event) const
slot

Definition at line 929 of file chatview.cpp.

bool ChatView::isVisible ( )
virtual

Reimplemented from KopeteView.

Definition at line 335 of file chatview.cpp.

void ChatView::loadChatSettings ( )

read the chat settings (rich text, auto spelling)

Definition at line 846 of file chatview.cpp.

QWidget * ChatView::mainWidget ( )
virtual

Reimplemented from KopeteView.

Definition at line 192 of file chatview.cpp.

KopeteChatWindow* ChatView::mainWindow ( ) const
inline

Returns the chat window this view is in.

Returns
The chat window

Definition at line 139 of file chatview.h.

void ChatView::makeVisible ( )
virtual

Reimplemented from KopeteView.

Definition at line 312 of file chatview.cpp.

ChatMessagePart* ChatView::messagePart ( ) const
inline

Definition at line 72 of file chatview.h.

void ChatView::messageSent ( Kopete::Message &  )
signal

Emitted when a message is sent.

Parameters
messageThe message sent
void ChatView::messageSentSuccessfully ( )
virtualslot

Reimplemented from KopeteView.

Definition at line 802 of file chatview.cpp.

void ChatView::messageSuccess ( ChatView *  )
signal
void ChatView::nickComplete ( )
slot

Definition at line 239 of file chatview.cpp.

void ChatView::paste ( )
slot

Initiates a paste action into the edit area of the chat view.

Definition at line 234 of file chatview.cpp.

void ChatView::raise ( bool  activate = false)
virtual

Reimplemented from KopeteView.

Definition at line 280 of file chatview.cpp.

void ChatView::registerContextMenuHandler ( QObject *  target,
const char *  slot 
)
virtual

Reimplemented from KopeteView.

Definition at line 1022 of file chatview.cpp.

void ChatView::registerTooltipHandler ( QObject *  target,
const char *  slot 
)
virtual

Reimplemented from KopeteView.

Definition at line 1031 of file chatview.cpp.

void ChatView::remoteTyping ( const Kopete::Contact *  contact,
bool  typing 
)
slot

Called when a typing event is received from a contact Updates the typing map and outputs the typing message into the status area.

Parameters
contactThe contact who is / isn't typing
typingIf the contact is typing now

Definition at line 432 of file chatview.cpp.

void ChatView::resetFontAndColor ( )
slot

Reset font and color of the edit area and outgoing messages.

Definition at line 264 of file chatview.cpp.

void ChatView::rtfEnabled ( ChatView *  ,
bool   
)
signal

Emitted when the state of RTF has changed.

void ChatView::saveChatSettings ( )

save the chat settings (rich text, auto spelling)

Definition at line 817 of file chatview.cpp.

void ChatView::saveOptions ( )

Saves window settings such as splitter positions.

Definition at line 808 of file chatview.cpp.

void ChatView::sendFile ( )
slot

Send file (opens file dialog)

Definition at line 718 of file chatview.cpp.

bool ChatView::sendInProgress ( ) const

Definition at line 340 of file chatview.cpp.

void ChatView::sendMessage ( )
virtualslot

Sends the text currently entered into the edit area.

Definition at line 796 of file chatview.cpp.

void ChatView::setActive ( bool  value)

Tells this view it is the active view.

Definition at line 873 of file chatview.cpp.

void ChatView::setCaption ( const QString &  text,
bool  modified 
)

Sets the text to be displayed on tab label and window caption.

Definition at line 659 of file chatview.cpp.

void ChatView::setCurrentMessage ( const Kopete::Message &  newMessage)
virtual

Sets the current message in the chat window.

Parameters
parentThe new chat window

Reimplemented from KopeteView

Definition at line 216 of file chatview.cpp.

void ChatView::setMainWindow ( KopeteChatWindow *  parent)

Changes the pointer to the chat window.

Used to re-parent the view

Parameters
parentThe new chat window

Definition at line 417 of file chatview.cpp.

void ChatView::setStatusText ( const QString &  text)
slot

Sets the text to be displayed on the status label.

Parameters
textThe text to be displayed

Definition at line 478 of file chatview.cpp.

void ChatView::shown ( )
signal

Emits when the chat view is shown.

void ChatView::slotRecalculateSize ( int  difference)
slot

Triggers text edit's size recalculation.

Used for auto-sizing.

Definition at line 485 of file chatview.cpp.

const QString & ChatView::statusText ( )

Definition at line 503 of file chatview.cpp.

ChatView::KopeteTabState ChatView::tabState ( ) const
slot

Retrieves the tab state.

Definition at line 390 of file chatview.cpp.

void ChatView::updateChatLabel ( ChatView *  ,
const QString &   
)
signal

Emitted when a possible tab label needs updating.

void ChatView::updateChatState ( ChatView *  ,
int   
)
signal

Emitted when the state of the chat changes.

void ChatView::updateChatTooltip ( ChatView *  ,
const QString &   
)
signal

Emitted when a possible tab tooltip needs updating.

void ChatView::updateStatusIcon ( ChatView *  )
signal
void ChatView::windowCreated ( )
signal

Emitted when we re-parent ourselves with a new window.


The documentation for this class was generated from the following files:
  • chatview.h
  • chatview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

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

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal