KVIrc
4.9.2
DeveloperAPIs
|
Channels join window class. More...
#include <ChannelsJoinDialog.h>
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 |
KviConsoleWindow * | m_pConsole |
KviTalGroupBox * | m_pGroupBox |
QPushButton * | m_pJoinButton |
QLineEdit * | m_pPass |
QPushButton * | m_pRegButton |
QCheckBox * | m_pShowAtStartupCheck |
ChannelsJoinDialogTreeWidget * | m_pTreeWidget |
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_pApp, g_pIconManager, g_pMainWindow, g_rectChannelsJoinGeometry, KviIconManager::getSmallIcon(), joinClicked(), KVI_OPTION_BOOL, KviOption_boolShowChannelsJoinOnIrc, m_pChannelEdit, m_pClearButton, m_pConsole, m_pGroupBox, m_pJoinButton, m_pPass, m_pRegButton, m_pShowAtStartupCheck, m_pTreeWidget, KviMemory::move(), regClicked(), and KviTalHBox::setSpacing().
ChannelsJoinDialog::~ChannelsJoinDialog | ( | ) |
Destroys the channels join window.
References 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 c, KviWindow::console(), fillListView(), g_pActiveWindow, g_pApp, KviKvsScript::run(), KviApplication::topmostConnectedConsole(), and w.
Referenced by ChannelsJoinDialog().
|
virtual |
|
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 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 | ( | ) |
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.
|
protectedslot |
Called when the join button is pressed.
It joins the selected channel
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().
|
protectedslot |
Called when the register button is pressed.
It registers the selected channel in the database
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.
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 ChannelsJoinDialog(), 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().