#include <EventEditorWindow.h>
◆ EventEditor()
EventEditor::EventEditor |
( |
QWidget * | par | ) |
|
References __tr2qs_ctx, connect(), KviScriptEditor::createInstance(), exportAllEvents(), KVI_KVS_EVENT_HANDLER_NAME_REG_EXP, l, m_bOneTimeSetupDone, m_pEditor, m_pIsEnabled, m_pLastEditedItem, m_pNameEditor, m_pTreeWidget, KviTalVBox::setSpacing(), and toggleCurrentHandlerEnabled().
◆ ~EventEditor()
EventEditor::~EventEditor |
( |
| ) |
|
◆ addHandlerForCurrentEvent
void EventEditor::addHandlerForCurrentEvent |
( |
| ) |
|
|
protectedslot |
◆ commit()
void EventEditor::commit |
( |
| ) |
|
References KviKvsEventManager::addAppHandler(), KviKvsScriptEventHandler::createInstance(), g_pApp, i, KviKvsEventManager::instance(), j, m_bOneTimeSetupDone, m_pTreeWidget, KviKvsEventManager::removeAllScriptAppHandlers(), s, and saveLastEditedItem().
◆ currentItemChanged
void EventEditor::currentItemChanged |
( |
QTreeWidgetItem * | it, |
|
|
QTreeWidgetItem * | ) |
|
protectedslot |
◆ eventHandlerDisabled
void EventEditor::eventHandlerDisabled |
( |
const QString & | szName | ) |
|
|
protectedslot |
◆ exportAllEvents
void EventEditor::exportAllEvents |
( |
| ) |
|
|
protectedslot |
◆ exportCurrentHandler
void EventEditor::exportCurrentHandler |
( |
| ) |
|
|
protectedslot |
◆ getExportEventBuffer()
◆ getUniqueHandlerName()
◆ itemPressed
void EventEditor::itemPressed |
( |
QTreeWidgetItem * | it, |
|
|
const QPoint & | pnt ) |
|
protectedslot |
References __tr2qs_ctx, addHandlerForCurrentEvent(), KviIconManager::Discard, exportCurrentHandler(), g_pIconManager, KviIconManager::Handler, KviIconManager::HandlerDisabled, KVI_ASSERT, m_bOneTimeSetupDone, m_pContextPopup, removeCurrentHandler(), KviIconManager::Save, and toggleCurrentHandlerEnabled().
Referenced by oneTimeSetup().
◆ oneTimeSetup()
void EventEditor::oneTimeSetup |
( |
| ) |
|
|
private |
References KviKvsEventManager::appEvent(), connect(), currentItemChanged(), e, KviIconManager::Event, eventHandlerDisabled(), KviIconManager::EventNoHandlers, g_pIconManager, i, KviKvsEventManager::instance(), itemPressed(), KVI_KVS_NUM_APP_EVENTS, l, m_bOneTimeSetupDone, m_pContextPopup, m_pTreeWidget, s, and KviKvsEventHandler::Script.
Referenced by showEvent().
◆ removeCurrentHandler
void EventEditor::removeCurrentHandler |
( |
| ) |
|
|
protectedslot |
◆ saveLastEditedItem()
void EventEditor::saveLastEditedItem |
( |
| ) |
|
References KviKvsEventManager::cleanHandlerName(), KviQString::equalCI(), getUniqueHandlerName(), KviKvsEventManager::instance(), KVI_ASSERT, m_bOneTimeSetupDone, m_pEditor, m_pLastEditedItem, and m_pNameEditor.
Referenced by commit(), currentItemChanged(), exportAllEvents(), and exportCurrentHandler().
◆ showEvent()
void EventEditor::showEvent |
( |
QShowEvent * | e | ) |
|
|
overrideprotected |
◆ toggleCurrentHandlerEnabled
void EventEditor::toggleCurrentHandlerEnabled |
( |
| ) |
|
|
protectedslot |
◆ m_bOneTimeSetupDone
bool EventEditor::m_bOneTimeSetupDone |
◆ m_pContextPopup
QMenu* EventEditor::m_pContextPopup = nullptr |
◆ m_pEditor
◆ m_pIsEnabled
QCheckBox* EventEditor::m_pIsEnabled |
◆ m_pLastEditedItem
◆ m_pNameEditor
QLineEdit* EventEditor::m_pNameEditor |
◆ m_pTreeWidget
The documentation for this class was generated from the following files: