![]() |
KVIrc 5.2.6
Developer APIs
|
Channels join window class. More...
#include <ChannelsJoinDialog.h>
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 |
KviConsoleWindow * | m_pConsole = nullptr |
QGroupBox * | m_pGroupBox = nullptr |
QPushButton * | m_pJoinButton = nullptr |
QLineEdit * | m_pPass = nullptr |
QPushButton * | m_pRegButton = nullptr |
QCheckBox * | m_pShowAtStartupCheck = nullptr |
ChannelsJoinDialogTreeWidget * | m_pTreeWidget = nullptr |
Friends | |
class | ChannelsJoinDialogTreeWidget |
Channels join window class.
|
protected |
ChannelsJoinDialog::ChannelsJoinDialog | ( | const char * | name | ) |
Constructs the channels join window.
name | The name of the window |
References __tr2qs, cancelClicked(), KviIconManager::Channel, ChannelsJoinDialogTreeWidget, clearClicked(), connect(), editReturnPressed(), editTextChanged(), enableJoin(), fillListView(), g, g_pIconManager, g_pMainWindow, g_rectChannelsJoinGeometry, KviIconManager::getSmallIcon(), joinClicked(), KVI_OPTION_BOOL, KviOption_boolShowChannelsJoinOnIrc, m_pChannelEdit, m_pClearButton, m_pGroupBox, m_pJoinButton, m_pPass, m_pRegButton, m_pShowAtStartupCheck, m_pTreeWidget, regClicked(), and KviTalHBox::setSpacing().
ChannelsJoinDialog::~ChannelsJoinDialog | ( | ) |
Destroys the channels join window.
References g_pChannelsWindow, g_rectChannelsJoinGeometry, KVI_OPTION_BOOL, KviOption_boolShowChannelsJoinOnIrc, m_pShowAtStartupCheck, x, and y.
|
protectedslot |
Called when the cancel button is pressed.
It destroys the window object
Referenced by ChannelsJoinDialog().
|
protectedslot |
Called when the clear button is pressed.
It clears the list of recent channels
References fillListView(), g_pActiveWindow, g_pApp, KviKvsScript::run(), KviApplication::topmostConnectedConsole(), and w.
Referenced by ChannelsJoinDialog().
|
override |
References e.
|
protectedslot |
Called when the delete button is pressed.
It deletes the selected channel
References KviRegisteredChannelDataBase::find(), KviPointerHashTable< Key, T >::first(), g_pApp, g_pRegisteredChannelDataBase, HeaderItem, m_pTreeWidget, KviPointerHashTable< Key, T >::next(), RecentChannelItem, KviApplication::recentChannels(), RegisteredChannelItem, and KviRegisteredChannelDataBase::remove().
|
protectedslot |
Called when the return is pressed.
It joins the selected channel
References joinClicked().
Referenced by ChannelsJoinDialog().
|
protectedslot |
Called when the text changes.
References enableJoin().
Referenced by ChannelsJoinDialog().
void ChannelsJoinDialog::enableJoin | ( | ) |
Enables join and register button if channel is found.
References g_pApp, m_pChannelEdit, m_pGroupBox, m_pJoinButton, m_pRegButton, m_pTreeWidget, and KviApplication::topmostConnectedConsole().
Referenced by ChannelsJoinDialog(), editTextChanged(), and itemSelected().
void ChannelsJoinDialog::fillListView | ( | ) |
Fills in the servers' list.
References __tr2qs, KviIconManager::Channel, KviRegisteredChannelDataBase::channelDict(), KviConsoleWindow::currentNetworkName(), d, KviPointerHashTable< Key, T >::first(), g_pApp, g_pIconManager, g_pRegisteredChannelDataBase, KviIconManager::getSmallIcon(), HeaderItem, m_pConsole, m_pTreeWidget, KviPointerHashTable< Key, T >::next(), RecentChannelItem, KviApplication::recentChannels(), KviApplication::recentChannelsForNetwork(), and RegisteredChannelItem.
Referenced by ChannelsJoinDialog(), clearClicked(), regClicked(), and setConsole().
void ChannelsJoinDialog::itemSelected | ( | ) |
Called when the user choose an item from the list.
References enableJoin(), HeaderItem, m_pChannelEdit, and m_pTreeWidget.
Referenced by ChannelsJoinDialogTreeWidget::mouseDoubleClickEvent(), and ChannelsJoinDialogTreeWidget::mousePressEvent().
|
protectedslot |
Called when the join button is pressed.
It joins the selected channel
References KviQString::escapeKvs(), g_pActiveWindow, g_pApp, m_pChannelEdit, m_pPass, KviKvsScript::run(), KviApplication::topmostConnectedConsole(), and w.
Referenced by ChannelsJoinDialog(), editReturnPressed(), and ChannelsJoinDialogTreeWidget::mouseDoubleClickEvent().
|
protectedslot |
Called when the register button is pressed.
It registers the selected channel in the database
References 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.
pConsole | The source console |
References fillListView(), and m_pConsole.
Referenced by channelsjoin_kvs_cmd_open().
|
friend |
Referenced by ChannelsJoinDialog().
|
protected |
Referenced by ChannelsJoinDialog(), enableJoin(), itemSelected(), joinClicked(), and regClicked().
|
protected |
Referenced by ChannelsJoinDialog().
|
protected |
|
protected |
Referenced by fillListView(), and setConsole().
|
protected |
Referenced by ChannelsJoinDialog(), and enableJoin().
|
protected |
Referenced by ChannelsJoinDialog(), and enableJoin().
|
protected |
Referenced by ChannelsJoinDialog(), and joinClicked().
|
protected |
Referenced by ChannelsJoinDialog(), and enableJoin().
|
protected |
Referenced by ChannelsJoinDialog(), and ~ChannelsJoinDialog().
|
protected |
Referenced by ChannelsJoinDialog(), deleteClicked(), enableJoin(), fillListView(), itemSelected(), and regClicked().