![]() |
KVIrc 5.2.6
Developer APIs
|
Text icon window class. More...
#include <KviTextIconWindow.h>
Public Slots | |
void | cellSelected (int row, int column) |
Called when a cell is selected. | |
void | fill () |
Fills in the text icon window. | |
void | ownerDead () |
Called when the owner is destroyed. Then it calls doHide() | |
Public Member Functions | |
KviTextIconWindow () | |
void | popup (QWidget *pOwner, bool bAltMode) |
Shows the popup. | |
~KviTextIconWindow () | |
Private Member Functions | |
void | autoSelectBestMatchBasedOnOwnerText () |
void | doHide () |
Hides the widget and set the focus to the owner. | |
bool | eventFilter (QObject *o, QEvent *e) override |
Private Attributes | |
bool | m_bAltMode = false |
QWidget * | m_pOwner = nullptr |
QTableWidget * | m_pTable |
Text icon window class.
KviTextIconWindow::KviTextIconWindow | ( | ) |
KviTextIconWindow::~KviTextIconWindow | ( | ) |
References m_pTable.
|
private |
References KviControlCodes::Icon, m_pOwner, m_pTable, r, and KviInputEditor::textBeforeCursor().
Referenced by eventFilter(), and popup().
|
slot |
Called when a cell is selected.
row | The row containing selected item |
column | The column containing selected item |
References doHide(), KviControlCodes::Icon, m_bAltMode, m_pOwner, and m_pTable.
Referenced by eventFilter(), and KviTextIconWindow().
|
private |
Hides the widget and set the focus to the owner.
References m_pOwner.
Referenced by cellSelected(), eventFilter(), and ownerDead().
|
overrideprivate |
References autoSelectBestMatchBasedOnOwnerText(), cellSelected(), doHide(), e, KVI_DYNAMIC, m_pOwner, m_pTable, and o.
|
slot |
Fills in the text icon window.
References KviPointerHashTableIterator< Key, T >::current(), KviPointerHashTableIterator< Key, T >::currentKey(), g_pTextIconManager, i, KVI_TEXTICON_COLUMNS, and m_pTable.
Referenced by KviTextIconWindow().
|
slot |
void KviTextIconWindow::popup | ( | QWidget * | pOwner, |
bool | bAltMode ) |
Shows the popup.
pOwner | The owner of the widget |
bAltMode | Whether to prepend the Alt+E escape code in the inserted string |
References autoSelectBestMatchBasedOnOwnerText(), connect(), m_bAltMode, m_pOwner, and ownerDead().
|
private |
Referenced by cellSelected(), and popup().
|
private |
Referenced by autoSelectBestMatchBasedOnOwnerText(), cellSelected(), doHide(), eventFilter(), ownerDead(), and popup().
|
private |
Referenced by autoSelectBestMatchBasedOnOwnerText(), cellSelected(), eventFilter(), fill(), KviTextIconWindow(), and ~KviTextIconWindow().