KVIrc 5.2.0
Developer APIs
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.
 
void closeEvent (QCloseEvent *e) override
 
void enableJoin ()
 Enables join and register button if channel is found.
 
void fillListView ()
 Fills in the servers' list.
 
void itemSelected ()
 Called when the user choose an item from the list.
 
void setConsole (KviConsoleWindow *pConsole)
 Sets the console and fills in the servers' list.
 
 ~ChannelsJoinDialog ()
 Destroys the channels join window.
 

Protected Types

enum  ItemTypes { HeaderItem , RecentChannelItem , RegisteredChannelItem }
 

Protected Slots

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

Protected Attributes

QLineEdit * m_pChannelEdit = nullptr
 
QPushButton * m_pClearButton = nullptr
 
QCheckBox * m_pCloseAfterJoinCheck = nullptr
 
KviConsoleWindowm_pConsole = nullptr
 
QGroupBox * m_pGroupBox = nullptr
 
QPushButton * m_pJoinButton = nullptr
 
QLineEdit * m_pPass = nullptr
 
QPushButton * m_pRegButton = nullptr
 
QCheckBox * m_pShowAtStartupCheck = nullptr
 
ChannelsJoinDialogTreeWidgetm_pTreeWidget = nullptr
 

Friends

class ChannelsJoinDialogTreeWidget
 

Detailed Description

Channels join window class.

Member Enumeration Documentation

◆ ItemTypes

Enumerator
HeaderItem 
RecentChannelItem 
RegisteredChannelItem 

Constructor & Destructor Documentation

◆ ChannelsJoinDialog()

ChannelsJoinDialog::ChannelsJoinDialog ( const char *  name)

◆ ~ChannelsJoinDialog()

ChannelsJoinDialog::~ChannelsJoinDialog ( )

Member Function Documentation

◆ cancelClicked

void ChannelsJoinDialog::cancelClicked ( )
protectedslot

Called when the cancel button is pressed.

It destroys the window object

Returns
void

Referenced by ChannelsJoinDialog().

◆ clearClicked

void ChannelsJoinDialog::clearClicked ( )
protectedslot

Called when the clear button is pressed.

It clears the list of recent channels

Returns
void

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

Referenced by ChannelsJoinDialog().

◆ closeEvent()

void ChannelsJoinDialog::closeEvent ( QCloseEvent *  e)
override

References e.

◆ deleteClicked

void ChannelsJoinDialog::deleteClicked ( )
protectedslot

◆ editReturnPressed

void ChannelsJoinDialog::editReturnPressed ( )
protectedslot

Called when the return is pressed.

It joins the selected channel

Returns
void

References joinClicked().

Referenced by ChannelsJoinDialog().

◆ editTextChanged

void ChannelsJoinDialog::editTextChanged ( const QString &  )
protectedslot

Called when the text changes.

Returns
void

References enableJoin().

Referenced by ChannelsJoinDialog().

◆ enableJoin()

void ChannelsJoinDialog::enableJoin ( )

Enables join and register button if channel is found.

Returns
void

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

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

◆ fillListView()

void ChannelsJoinDialog::fillListView ( )

◆ itemSelected()

void ChannelsJoinDialog::itemSelected ( )

Called when the user choose an item from the list.

Returns
void

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

Referenced by ChannelsJoinDialogTreeWidget::mouseDoubleClickEvent(), and ChannelsJoinDialogTreeWidget::mousePressEvent().

◆ joinClicked

void ChannelsJoinDialog::joinClicked ( )
protectedslot

◆ regClicked

void ChannelsJoinDialog::regClicked ( )
protectedslot

Called when the register button is pressed.

It registers the selected channel in the database

Returns
void

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

Referenced by ChannelsJoinDialog().

◆ setConsole()

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 Symbol Documentation

◆ ChannelsJoinDialogTreeWidget

friend class ChannelsJoinDialogTreeWidget
friend

Referenced by ChannelsJoinDialog().

Member Data Documentation

◆ m_pChannelEdit

QLineEdit* ChannelsJoinDialog::m_pChannelEdit = nullptr
protected

◆ m_pClearButton

QPushButton* ChannelsJoinDialog::m_pClearButton = nullptr
protected

Referenced by ChannelsJoinDialog().

◆ m_pCloseAfterJoinCheck

QCheckBox* ChannelsJoinDialog::m_pCloseAfterJoinCheck = nullptr
protected

◆ m_pConsole

KviConsoleWindow* ChannelsJoinDialog::m_pConsole = nullptr
protected

Referenced by fillListView(), and setConsole().

◆ m_pGroupBox

QGroupBox* ChannelsJoinDialog::m_pGroupBox = nullptr
protected

Referenced by ChannelsJoinDialog(), and enableJoin().

◆ m_pJoinButton

QPushButton* ChannelsJoinDialog::m_pJoinButton = nullptr
protected

Referenced by ChannelsJoinDialog(), and enableJoin().

◆ m_pPass

QLineEdit* ChannelsJoinDialog::m_pPass = nullptr
protected

Referenced by ChannelsJoinDialog(), and joinClicked().

◆ m_pRegButton

QPushButton* ChannelsJoinDialog::m_pRegButton = nullptr
protected

Referenced by ChannelsJoinDialog(), and enableJoin().

◆ m_pShowAtStartupCheck

QCheckBox* ChannelsJoinDialog::m_pShowAtStartupCheck = nullptr
protected

◆ m_pTreeWidget

ChannelsJoinDialogTreeWidget* ChannelsJoinDialog::m_pTreeWidget = nullptr
protected

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