KVIrc 5.2.6
Developer APIs
OptionsWidget_servers Class Reference

#include <OptionsWidget_servers.h>

+ Inheritance diagram for OptionsWidget_servers:

Public Member Functions

virtual void commit ()
 
 OptionsWidget_servers (QWidget *parent)
 
 ~OptionsWidget_servers ()
 
- Public Member Functions inherited from KviOptionsWidget
KviBoolSelectoraddBoolSelector (int x1, int y1, int x2, int y2, const QString &txt, bool *pOption, bool bEnabled=true)
 
KviBoolSelectoraddBoolSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviBoolSelectoraddBoolSelector (QWidget *pParent, const QString &txt, bool *pOption, bool bEnabled=true)
 
KviBoolSelectoraddBoolSelector (QWidget *pParnt, const QString &txt, int optId, bool bEnabled=true)
 
KviColorSelectoraddColorSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviColorSelectoraddColorSelector (int x1, int y1, int x2, int y2, const QString &txt, QColor *pOption, bool bEnabled=true)
 
KviColorSelectoraddColorSelector (QWidget *pParent, const QString &txt, int optId, bool bEnabled=true)
 
KviColorSelectoraddColorSelector (QWidget *pParent, const QString &txt, QColor *pOption, bool bEnabled=true)
 
KviDirectorySelectoraddDirectorySelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviDirectorySelectoraddDirectorySelector (int x1, int y1, int x2, int y2, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviDirectorySelectoraddDirectorySelector (QWidget *pParent, const QString &txt, int optId, bool bEnabled=true)
 
KviDirectorySelectoraddDirectorySelector (QWidget *pParent, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviFileSelectoraddFileSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviFileSelectoraddFileSelector (int x1, int y1, int x2, int y2, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviFileSelectoraddFileSelector (QWidget *pParent, const QString &txt, int optId, bool bEnabled=true)
 
KviFileSelectoraddFileSelector (QWidget *pParent, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviFontSelectoraddFontSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviFontSelectoraddFontSelector (int x1, int y1, int x2, int y2, const QString &txt, QFont *pOption, bool bEnabled=true)
 
KviFontSelectoraddFontSelector (QWidget *pParent, const QString &txt, int optId, bool bEnabled=true)
 
KviFontSelectoraddFontSelector (QWidget *pParent, const QString &txt, QFont *pOption, bool bEnabled=true)
 
KviTalGroupBoxaddGroupBox (int x1, int y1, int x2, int y2, Qt::Orientation o, const QString &txt, bool bEnabled=true)
 
QLabel * addLabel (int x1, int y1, int x2, int y2, const QString &text, bool bEnabled=true)
 
QLabel * addLabel (QWidget *pParent, const QString &text, bool bEnabled=true)
 
QLineEdit * addLineEdit (int x1, int y1, int x2, int y2, bool bEnabled=true)
 
KviMircTextColorSelectoraddMircTextColorSelector (int x1, int y1, int x2, int y2, const QString &txt, int optForeId, int optBackId, bool bEnabled=true)
 
KviMircTextColorSelectoraddMircTextColorSelector (int x1, int y1, int x2, int y2, const QString &txt, unsigned int *uFore, unsigned int *uBack, bool bEnabled=true)
 
KviMircTextColorSelectoraddMircTextColorSelector (QWidget *pParent, const QString &txt, int optForeId, int optBackId, bool bEnabled=true)
 
KviMircTextColorSelectoraddMircTextColorSelector (QWidget *pParent, const QString &txt, unsigned int *uFore, unsigned int *uBack, bool bEnabled=true)
 
void addOptionsWidget (const QString &szText, const QIcon &iconSet, KviOptionsWidget *pWidget)
 
KviPasswordSelectoraddPasswordSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviPasswordSelectoraddPasswordSelector (int x1, int y1, int x2, int y2, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviPasswordSelectoraddPasswordSelector (QWidget *pParent, const QString &txt, int optId, bool bEnabled=true)
 
KviPasswordSelectoraddPasswordSelector (QWidget *pParent, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviPixmapSelectoraddPixmapSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviPixmapSelectoraddPixmapSelector (int x1, int y1, int x2, int y2, const QString &txt, KviPixmap *pOption, bool bEnabled=true)
 
QPushButton * addPushButton (int x1, int y1, int x2, int y2, const QString &text, bool bEnabled=true)
 
void addRowSpacer (int x1, int y1, int x2, int y2)
 
QFrame * addSeparator (int x1, int y1, int x2, int y2)
 
KviSoundSelectoraddSoundSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviSoundSelectoraddSoundSelector (int x1, int y1, int x2, int y2, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviSoundSelectoraddSoundSelector (QWidget *pParent, const QString &txt, int optId, bool bEnabled=true)
 
KviSoundSelectoraddSoundSelector (QWidget *pParent, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviStringListSelectoraddStringListSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviStringListSelectoraddStringListSelector (int x1, int y1, int x2, int y2, const QString &txt, QStringList *pOption, bool bEnabled=true)
 
KviStringSelectoraddStringSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, bool bEnabled=true)
 
KviStringSelectoraddStringSelector (int x1, int y1, int x2, int y2, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviStringSelectoraddStringSelector (QWidget *pParent, const QString &txt, int optId, bool bEnabled=true)
 
KviStringSelectoraddStringSelector (QWidget *pParent, const QString &txt, QString *pOption, bool bEnabled=true)
 
KviUIntSelectoraddUIntSelector (int x1, int y1, int x2, int y2, const QString &txt, int optId, unsigned int uLowBound, unsigned int uHighBound, unsigned int uDefault, bool bEnabled=true)
 
KviUIntSelectoraddUIntSelector (int x1, int y1, int x2, int y2, const QString &txt, unsigned int *pOption, unsigned int uLowBound, unsigned int uHighBound, unsigned int uDefault, bool bEnabled=true)
 
KviUIntSelectoraddUIntSelector (QWidget *pParent, const QString &txt, int optId, unsigned int uLowBound, unsigned int uHighBound, unsigned int uDefault, bool bEnabled=true)
 
KviUIntSelectoraddUIntSelector (QWidget *pParent, const QString &txt, unsigned int *pOption, unsigned int uLowBound, unsigned int uHighBound, unsigned int uDefault, bool bEnabled=true)
 
KviUIntSelectoraddUShortIntSelector (int x1, int y1, int x2, int y2, const QString &txt, unsigned short int *pOption, unsigned int uLowBound, unsigned int uHighBound, unsigned int uDefault, bool bEnabled=true)
 
void addWidgetToLayout (QWidget *w, int x1, int y1, int x2, int y2)
 
void childEvent (QChildEvent *e) override
 
void createLayout ()
 
void createTabbedPage ()
 
bool eventFilter (QObject *watched, QEvent *e) override
 
 KviOptionsWidget (QWidget *parent, const char *name=nullptr, bool bSunken=true)
 
QGridLayout * layout ()
 
void mergeResetFlag (int flag)
 
void mergeTip (QWidget *w, const QString &tip)
 
void removeSelector (KviSelectorInterface *pInterface)
 
KviPointerList< KviSelectorInterface > * selectors ()
 
QTabWidget * tabWidget ()
 
 ~KviOptionsWidget ()
 
- Public Member Functions inherited from KviSelectorInterface
 KviSelectorInterface ()
 
virtual QString textForSearch ()
 
virtual QWidget * widgetToHighlight ()
 
virtual ~KviSelectorInterface ()
 

Protected Slots

void clearList ()
 
void connectCurrentClicked ()
 
void copyServer ()
 
void currentItemChanged (QTreeWidgetItem *cur, QTreeWidgetItem *prev)
 
void customContextMenuRequested (const QPoint &pnt)
 
void detailsClicked ()
 
void favoriteServer ()
 
void importerDead ()
 
void importPopupAboutToShow ()
 
void importPopupActivated (QAction *pAction)
 
void importServer (const KviIrcServer &s, const QString &network)
 
void itemDoubleClicked (QTreeWidgetItem *, int)
 
void newNetwork ()
 
void newServer ()
 
void pasteServer ()
 
void recentServersPopupAboutToShow ()
 
void recentServersPopupClicked (QAction *pAction)
 
void removeCurrent ()
 
void serverNetworkEditTextEdited (const QString &szNewText)
 
void slotShowThisDialogAtStartupSelectorDestroyed ()
 
void updateFilter ()
 
- Protected Slots inherited from KviOptionsWidget
void childOptionsWidgetDestroyed ()
 

Protected Attributes

bool m_bShowingFavoritesOnly
 
KviIrcServerm_pClipboard
 
QPushButton * m_pConnectCurrent
 
QMenu * m_pContextPopup
 
QToolButton * m_pCopyServerButton
 
QPushButton * m_pDetailsButton
 
QToolButton * m_pFavoriteServerButton
 
QLineEdit * m_pFilterEdit
 
QLabel * m_pFilterLabel
 
QToolButton * m_pImportButton
 
KviMexServerImportm_pImportFilter
 
QMenu * m_pImportPopup
 
IrcServerOptionsTreeWidgetItemm_pLastEditedItem
 
IrcNetworkDetailsWidgetm_pNetworkDetailsDialog
 
QToolButton * m_pNewNetworkButton
 
QToolButton * m_pNewServerButton
 
QToolButton * m_pPasteServerButton
 
QMenu * m_pRecentPopup
 
QToolButton * m_pRemoveButton
 
IrcServerDetailsWidgetm_pServerDetailsDialog
 
QToolButton * m_pShowFavoritesOnlyButton
 
KviBoolSelectorm_pShowThisDialogAtStartupSelector
 
QLineEdit * m_pSrvNetEdit
 
QLabel * m_pSrvNetLabel
 
QTreeWidget * m_pTreeWidget
 

Private Member Functions

void fillServerList ()
 
IrcServerOptionsTreeWidgetItemfindNetItem (const QString &netname)
 
void saveLastItem ()
 
void selectBestServerByUrl (const QString &szUrl)
 

Additional Inherited Members

- Protected Member Functions inherited from KviOptionsWidget
void commitOptionsReset ()
 
void commitSelectors ()
 

Constructor & Destructor Documentation

◆ OptionsWidget_servers()

OptionsWidget_servers::OptionsWidget_servers ( QWidget * parent)

References __tr2qs_ctx, KviTalToolTip::add(), KviOptionsWidget::addBoolSelector(), KviOptionsWidget::addGroupBox(), KviOptionsWidget::addWidgetToLayout(), connect(), connectCurrentClicked(), KviIconManager::Copy, copyServer(), KviOptionsWidget::createLayout(), currentItemChanged(), customContextMenuRequested(), detailsClicked(), f, KviIconManager::FavoriteOff, favoriteServer(), fillServerList(), KviIconManager::Folder, g_pIconManager, KviIconManager::History, importPopupAboutToShow(), importPopupActivated(), itemDoubleClicked(), KVI_OPTION_BOOL, KviOption_boolShowFavoriteServersOnly, KviOption_boolShowServersConnectDialogOnStart, KviOptionsWidget::KviOptionsWidget(), KviOptionsWidget::layout(), m_pClipboard, m_pConnectCurrent, m_pContextPopup, m_pCopyServerButton, m_pDetailsButton, m_pFavoriteServerButton, m_pFilterEdit, m_pFilterLabel, m_pImportButton, m_pImportFilter, m_pImportPopup, m_pLastEditedItem, m_pNetworkDetailsDialog, m_pNewNetworkButton, m_pNewServerButton, m_pPasteServerButton, m_pRecentPopup, m_pRemoveButton, m_pServerDetailsDialog, m_pShowFavoritesOnlyButton, m_pShowThisDialogAtStartupSelector, m_pSrvNetEdit, m_pSrvNetLabel, m_pTreeWidget, KviIconManager::NewNetwork, newNetwork(), KviIconManager::NewServer, newServer(), KviIconManager::Paste, pasteServer(), recentServersPopupAboutToShow(), recentServersPopupClicked(), KviIconManager::Remove, removeCurrent(), KviIconManager::ServerFavorite, serverNetworkEditTextEdited(), OptionsWidgetContainer::setLeftCornerWidget(), KviTalVBox::setSpacing(), KviTalVBox::setStretchFactor(), slotShowThisDialogAtStartupSelectorDestroyed(), and updateFilter().

◆ ~OptionsWidget_servers()

OptionsWidget_servers::~OptionsWidget_servers ( )

Member Function Documentation

◆ clearList

void OptionsWidget_servers::clearList ( )
protectedslot

◆ commit()

◆ connectCurrentClicked

void OptionsWidget_servers::connectCurrentClicked ( )
protectedslot

◆ copyServer

void OptionsWidget_servers::copyServer ( )
protectedslot

◆ currentItemChanged

void OptionsWidget_servers::currentItemChanged ( QTreeWidgetItem * cur,
QTreeWidgetItem * prev )
protectedslot

◆ customContextMenuRequested

◆ detailsClicked

void OptionsWidget_servers::detailsClicked ( )
protectedslot

◆ favoriteServer

◆ fillServerList()

◆ findNetItem()

IrcServerOptionsTreeWidgetItem * OptionsWidget_servers::findNetItem ( const QString & netname)
private

References KviQString::equalCI(), i, and m_pTreeWidget.

Referenced by importServer().

◆ importerDead

void OptionsWidget_servers::importerDead ( )
protectedslot

References m_pImportFilter.

Referenced by importPopupActivated().

◆ importPopupAboutToShow

void OptionsWidget_servers::importPopupAboutToShow ( )
protectedslot

◆ importPopupActivated

◆ importServer

◆ itemDoubleClicked

void OptionsWidget_servers::itemDoubleClicked ( QTreeWidgetItem * ,
int  )
protectedslot

References detailsClicked().

Referenced by OptionsWidget_servers().

◆ newNetwork

void OptionsWidget_servers::newNetwork ( )
protectedslot

◆ newServer

◆ pasteServer

◆ recentServersPopupAboutToShow

void OptionsWidget_servers::recentServersPopupAboutToShow ( )
protectedslot

◆ recentServersPopupClicked

void OptionsWidget_servers::recentServersPopupClicked ( QAction * pAction)
protectedslot

◆ removeCurrent

void OptionsWidget_servers::removeCurrent ( )
protectedslot

◆ saveLastItem()

void OptionsWidget_servers::saveLastItem ( )
private

◆ selectBestServerByUrl()

◆ serverNetworkEditTextEdited

void OptionsWidget_servers::serverNetworkEditTextEdited ( const QString & szNewText)
protectedslot

◆ slotShowThisDialogAtStartupSelectorDestroyed

void OptionsWidget_servers::slotShowThisDialogAtStartupSelectorDestroyed ( )
protectedslot

◆ updateFilter

Member Data Documentation

◆ m_bShowingFavoritesOnly

bool OptionsWidget_servers::m_bShowingFavoritesOnly
protected

Referenced by favoriteServer(), and updateFilter().

◆ m_pClipboard

KviIrcServer* OptionsWidget_servers::m_pClipboard
protected

◆ m_pConnectCurrent

QPushButton* OptionsWidget_servers::m_pConnectCurrent
protected

◆ m_pContextPopup

QMenu* OptionsWidget_servers::m_pContextPopup
protected

◆ m_pCopyServerButton

QToolButton* OptionsWidget_servers::m_pCopyServerButton
protected

◆ m_pDetailsButton

QPushButton* OptionsWidget_servers::m_pDetailsButton
protected

◆ m_pFavoriteServerButton

QToolButton* OptionsWidget_servers::m_pFavoriteServerButton
protected

◆ m_pFilterEdit

QLineEdit* OptionsWidget_servers::m_pFilterEdit
protected

◆ m_pFilterLabel

QLabel* OptionsWidget_servers::m_pFilterLabel
protected

Referenced by OptionsWidget_servers().

◆ m_pImportButton

QToolButton* OptionsWidget_servers::m_pImportButton
protected

Referenced by OptionsWidget_servers().

◆ m_pImportFilter

KviMexServerImport* OptionsWidget_servers::m_pImportFilter
protected

◆ m_pImportPopup

QMenu* OptionsWidget_servers::m_pImportPopup
protected

◆ m_pLastEditedItem

◆ m_pNetworkDetailsDialog

IrcNetworkDetailsWidget* OptionsWidget_servers::m_pNetworkDetailsDialog
protected

◆ m_pNewNetworkButton

QToolButton* OptionsWidget_servers::m_pNewNetworkButton
protected

Referenced by OptionsWidget_servers().

◆ m_pNewServerButton

QToolButton* OptionsWidget_servers::m_pNewServerButton
protected

Referenced by OptionsWidget_servers().

◆ m_pPasteServerButton

QToolButton* OptionsWidget_servers::m_pPasteServerButton
protected

◆ m_pRecentPopup

QMenu* OptionsWidget_servers::m_pRecentPopup
protected

◆ m_pRemoveButton

QToolButton* OptionsWidget_servers::m_pRemoveButton
protected

◆ m_pServerDetailsDialog

IrcServerDetailsWidget* OptionsWidget_servers::m_pServerDetailsDialog
protected

◆ m_pShowFavoritesOnlyButton

QToolButton* OptionsWidget_servers::m_pShowFavoritesOnlyButton
protected

◆ m_pShowThisDialogAtStartupSelector

KviBoolSelector* OptionsWidget_servers::m_pShowThisDialogAtStartupSelector
protected

◆ m_pSrvNetEdit

QLineEdit* OptionsWidget_servers::m_pSrvNetEdit
protected

◆ m_pSrvNetLabel

QLabel* OptionsWidget_servers::m_pSrvNetLabel
protected

◆ m_pTreeWidget


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