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

kopete/kopete

ChatView Class Reference

#include <chatview.h>

Inheritance diagram for ChatView:

Inheritance graph
[legend]

List of all members.


Detailed Description

Author:
Olivier Goffart

Definition at line 61 of file chatview.h.


Public Types

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

Public Slots

void cut ()
void copy ()
void paste ()
void nickComplete ()
void setFgColor (const QColor &newColor=QColor())
void setFont (const QFont &newFont)
void setFont ()
QFont font ()
void setBgColor (const QColor &newColor=QColor())
virtual void sendMessage ()
virtual void appendMessage (Kopete::Message &message)
void remoteTyping (const Kopete::Contact *contact, bool typing)
void setStatusText (const QString &text)
virtual void messageSentSuccessfully ()
virtual bool closeView (bool force=false)

Signals

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

Public Member Functions

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

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *)
virtual void dropEvent (QDropEvent *)

Member Enumeration Documentation

enum ChatView::KopeteTabState

the state of our chat

Enumerator:
Normal 
Highlighted 
Changed 
Typing 
Message 
Undefined 

Definition at line 69 of file chatview.h.


Constructor & Destructor Documentation

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

Definition at line 81 of file chatview.cpp.

ChatView::~ChatView (  ) 

Definition at line 171 of file chatview.cpp.


Member Function Documentation

ChatMessagePart* ChatView::messagePart (  )  const [inline]

Definition at line 71 of file chatview.h.

ChatTextEditPart* ChatView::editPart (  )  const [inline]

Definition at line 72 of file chatview.h.

void ChatView::addText ( const QString &  text  ) 

Adds text into the edit area.

Used when you select an emoticon

Parameters:
text The text to be inserted

Definition at line 228 of file chatview.cpp.

void ChatView::saveOptions (  ) 

Saves window settings such as splitter positions.

Definition at line 748 of file chatview.cpp.

void ChatView::setActive ( bool  value  ) 

Tells this view it is the active view.

Definition at line 806 of file chatview.cpp.

void ChatView::saveChatSettings (  ) 

save the chat settings (rich text, auto spelling)

Definition at line 757 of file chatview.cpp.

void ChatView::loadChatSettings (  ) 

read the chat settings (rich text, auto spelling)

Definition at line 780 of file chatview.cpp.

void ChatView::clear (  )  [virtual]

Clears the chat buffer.

Reimplemented from KopeteView

Definition at line 233 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 602 of file chatview.cpp.

void ChatView::setMainWindow ( KopeteChatWindow *  parent  ) 

Changes the pointer to the chat window.

Used to re-parent the view

Parameters:
parent The new chat window

Definition at line 409 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 195 of file chatview.cpp.

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

Sets the current message in the chat window.

Parameters:
parent The new chat window
Reimplemented from KopeteView

Definition at line 200 of file chatview.cpp.

KopeteChatWindow* ChatView::mainWindow (  )  const [inline]

Returns the chat window this view is in.

Returns:
The chat window

Definition at line 138 of file chatview.h.

const QString & ChatView::statusText (  ) 

Definition at line 476 of file chatview.cpp.

QString & ChatView::caption (  )  const

Definition at line 597 of file chatview.cpp.

bool ChatView::sendInProgress (  ) 

Definition at line 337 of file chatview.cpp.

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

Reimplemented from KopeteView.

Definition at line 271 of file chatview.cpp.

void ChatView::makeVisible (  )  [virtual]

Reimplemented from KopeteView.

Definition at line 309 of file chatview.cpp.

bool ChatView::isVisible (  )  [virtual]

Reimplemented from KopeteView.

Definition at line 332 of file chatview.cpp.

QWidget * ChatView::mainWidget (  )  [virtual]

Reimplemented from KopeteView.

Definition at line 185 of file chatview.cpp.

KTextEdit * ChatView::editWidget (  ) 

Definition at line 180 of file chatview.cpp.

bool ChatView::canSend (  ) 

Definition at line 190 of file chatview.cpp.

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

Reimplemented from KopeteView.

Definition at line 948 of file chatview.cpp.

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

Reimplemented from KopeteView.

Definition at line 957 of file chatview.cpp.

void ChatView::cut (  )  [slot]

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

Definition at line 205 of file chatview.cpp.

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 210 of file chatview.cpp.

void ChatView::paste (  )  [slot]

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

Definition at line 218 of file chatview.cpp.

void ChatView::nickComplete (  )  [slot]

Definition at line 223 of file chatview.cpp.

void ChatView::setFgColor ( const QColor &  newColor = QColor()  )  [slot]

Sets the foreground color of the entry area, and outgoing messages.

Parameters:
newColor The new foreground color. If this is QColor(), then a color chooser dialog is opened

Definition at line 259 of file chatview.cpp.

void ChatView::setFont ( const QFont &  newFont  )  [slot]

Sets the font of the edit area and outgoing messages to the specified value.

Parameters:
newFont The new font to use.

Definition at line 254 of file chatview.cpp.

void ChatView::setFont (  )  [slot]

show a Font dialog and set the font selected by the user

Definition at line 244 of file chatview.cpp.

QFont ChatView::font (  )  [slot]

Get the font used in the format toolbar for Rich Text formatting.

Definition at line 249 of file chatview.cpp.

void ChatView::setBgColor ( const QColor &  newColor = QColor()  )  [slot]

Sets the background color of the entry area, and outgoing messages.

Parameters:
newColor The new background color. If this is QColor(), then a color chooser dialog is opened

Definition at line 238 of file chatview.cpp.

void ChatView::sendMessage (  )  [virtual, slot]

Sends the text currently entered into the edit area.

Definition at line 736 of file chatview.cpp.

void ChatView::appendMessage ( Kopete::Message &  message  )  [virtual, slot]

Called when a message is received from someone.

Parameters:
message The message received

Definition at line 628 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:
contact The contact who is / isn't typing
typing If the contact is typing now

Definition at line 414 of file chatview.cpp.

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

Sets the text to be displayed on the status label.

Parameters:
text The text to be displayed

Definition at line 469 of file chatview.cpp.

void ChatView::messageSentSuccessfully (  )  [virtual, slot]

Reimplemented from KopeteView.

Definition at line 742 of file chatview.cpp.

bool ChatView::closeView ( bool  force = false  )  [virtual, slot]

Definition at line 342 of file chatview.cpp.

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

Emitted when a message is sent.

Parameters:
message The message sent

void ChatView::messageSuccess ( ChatView *   )  [signal]

void ChatView::shown (  )  [signal]

Emits when the chat view is shown.

void ChatView::closing ( KopeteView *   )  [signal]

void ChatView::activated ( KopeteView *   )  [signal]

void ChatView::captionChanged ( bool  active  )  [signal]

void ChatView::updateStatusIcon ( ChatView *   )  [signal]

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

Emitted when a possible tab tooltip needs updating.

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

Emitted when the state of the chat changes.

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

Emitted when a possible tab label needs updating.

void ChatView::canSendChanged ( bool   )  [signal]

Our send-button-enabled flag has changed.

void ChatView::windowCreated (  )  [signal]

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

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

Emitted when the state of RTF has changed.

void ChatView::autoSpellCheckEnabled ( ChatView *  ,
bool   
) [signal]

void ChatView::dragEnterEvent ( QDragEnterEvent *  event  )  [protected, virtual]

Definition at line 824 of file chatview.cpp.

void ChatView::dropEvent ( QDropEvent *  event  )  [protected, virtual]

Definition at line 876 of file chatview.cpp.


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

kopete/kopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal