KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Types | Protected Slots | Protected Attributes | Friends | List of all members
ChannelsJoinDialog Class Reference

Channels join window class. More...

#include <ChannelsJoinDialog.h>

+ Inheritance diagram for ChannelsJoinDialog:

Public Member Functions

 ChannelsJoinDialog (const char *name)
 Constructs the channels join window. More...
 
virtual void closeEvent (QCloseEvent *e)
 
void enableJoin ()
 Enables join and register button if channel is found. More...
 
void fillListView ()
 Fills in the servers' list. More...
 
void itemSelected ()
 Called when the user choose an item from the list. More...
 
void setConsole (KviConsoleWindow *pConsole)
 Sets the console and fills in the servers' list. More...
 
 ~ChannelsJoinDialog ()
 Destroys the channels join window. More...
 

Protected Types

enum  ItemTypes { HeaderItem, RecentChannelItem, RegisteredChannelItem }
 

Protected Slots

void cancelClicked ()
 Called when the cancel button is pressed. More...
 
void clearClicked ()
 Called when the clear button is pressed. More...
 
void deleteClicked ()
 Called when the delete button is pressed. More...
 
void editReturnPressed ()
 Called when the return is pressed. More...
 
void editTextChanged (const QString &)
 Called when the text changes. More...
 
void joinClicked ()
 Called when the join button is pressed. More...
 
void regClicked ()
 Called when the register button is pressed. More...
 

Protected Attributes

QLineEdit * m_pChannelEdit
 
QPushButton * m_pClearButton
 
QCheckBox * m_pCloseAfterJoinCheck
 
KviConsoleWindowm_pConsole
 
KviTalGroupBoxm_pGroupBox
 
QPushButton * m_pJoinButton
 
QLineEdit * m_pPass
 
QPushButton * m_pRegButton
 
QCheckBox * m_pShowAtStartupCheck
 
ChannelsJoinDialogTreeWidgetm_pTreeWidget
 

Friends

class ChannelsJoinDialogTreeWidget
 

Detailed Description

Channels join window class.

Member Enumeration Documentation

Enumerator
HeaderItem 
RecentChannelItem 
RegisteredChannelItem 

Constructor & Destructor Documentation

ChannelsJoinDialog::ChannelsJoinDialog ( const char *  name)
ChannelsJoinDialog::~ChannelsJoinDialog ( )

Member Function Documentation

void ChannelsJoinDialog::cancelClicked ( )
protectedslot

Called when the cancel button is pressed.

It destroys the window object

Returns
void

Referenced by ChannelsJoinDialog().

void ChannelsJoinDialog::clearClicked ( )
protectedslot

Called when the clear button is pressed.

It clears the list of recent channels

Returns
void

References c, KviWindow::console(), fillListView(), g_pActiveWindow, g_pApp, KviKvsScript::run(), KviApplication::topmostConnectedConsole(), and w.

Referenced by ChannelsJoinDialog().

void ChannelsJoinDialog::closeEvent ( QCloseEvent *  e)
virtual
void ChannelsJoinDialog::deleteClicked ( )
protectedslot
void ChannelsJoinDialog::editReturnPressed ( )
protectedslot

Called when the return is pressed.

It joins the selected channel

Returns
void

References joinClicked().

Referenced by ChannelsJoinDialog().

void ChannelsJoinDialog::editTextChanged ( const QString &  )
protectedslot

Called when the text changes.

Returns
void

References enableJoin().

Referenced by ChannelsJoinDialog().

void ChannelsJoinDialog::enableJoin ( )

Enables join and register button if channel is found.

Returns
void

References c, g_pApp, m_pChannelEdit, m_pGroupBox, m_pJoinButton, m_pRegButton, m_pTreeWidget, and KviApplication::topmostConnectedConsole().

Referenced by ChannelsJoinDialog(), editTextChanged(), and itemSelected().

void ChannelsJoinDialog::fillListView ( )
void ChannelsJoinDialog::itemSelected ( )

Called when the user choose an item from the list.

Returns
void

References enableJoin(), HeaderItem, m_pChannelEdit, and m_pTreeWidget.

void ChannelsJoinDialog::joinClicked ( )
protectedslot

Called when the join button is pressed.

It joins the selected channel

Returns
void

References c, KviWindow::console(), KviQString::escapeKvs(), g_pActiveWindow, g_pApp, m_pChannelEdit, m_pPass, KviKvsScript::run(), KviApplication::topmostConnectedConsole(), and w.

Referenced by ChannelsJoinDialog(), and editReturnPressed().

void ChannelsJoinDialog::regClicked ( )
protectedslot

Called when the register button is pressed.

It registers the selected channel in the database

Returns
void

References c, KviWindow::console(), KviQString::escapeKvs(), fillListView(), g_pActiveWindow, g_pApp, m_pChannelEdit, m_pTreeWidget, KviKvsScript::run(), KviApplication::topmostConnectedConsole(), and w.

Referenced by ChannelsJoinDialog().

void ChannelsJoinDialog::setConsole ( KviConsoleWindow pConsole)

Sets the console and fills in the servers' list.

Parameters
pConsoleThe source console
Returns
void

References fillListView(), and m_pConsole.

Referenced by channelsjoin_kvs_cmd_open().

Friends And Related Function Documentation

friend class ChannelsJoinDialogTreeWidget
friend

Referenced by ChannelsJoinDialog().

Member Data Documentation

QLineEdit* ChannelsJoinDialog::m_pChannelEdit
protected
QPushButton* ChannelsJoinDialog::m_pClearButton
protected

Referenced by ChannelsJoinDialog().

QCheckBox* ChannelsJoinDialog::m_pCloseAfterJoinCheck
protected
KviConsoleWindow* ChannelsJoinDialog::m_pConsole
protected
KviTalGroupBox* ChannelsJoinDialog::m_pGroupBox
protected

Referenced by ChannelsJoinDialog(), and enableJoin().

QPushButton* ChannelsJoinDialog::m_pJoinButton
protected

Referenced by ChannelsJoinDialog(), and enableJoin().

QLineEdit* ChannelsJoinDialog::m_pPass
protected

Referenced by ChannelsJoinDialog(), and joinClicked().

QPushButton* ChannelsJoinDialog::m_pRegButton
protected

Referenced by ChannelsJoinDialog(), and enableJoin().

QCheckBox* ChannelsJoinDialog::m_pShowAtStartupCheck
protected
ChannelsJoinDialogTreeWidget* ChannelsJoinDialog::m_pTreeWidget
protected

The documentation for this class was generated from the following files: