#include <EventEditorWindow.h>
EventEditor::EventEditor |
( |
QWidget * |
par | ) |
|
References __tr2qs_ctx(), connect(), KviScriptEditor::createInstance(), exportAllEvents(), l, m_bOneTimeSetupDone, m_pEditor, m_pLastEditedItem, m_pNameEditor, m_pTreeWidget, KviTalVBox::setMargin(), KviTalVBox::setSpacing(), and spl.
EventEditor::~EventEditor |
( |
| ) |
|
void EventEditor::addHandlerForCurrentEvent |
( |
| ) |
|
|
protectedslot |
void EventEditor::commit |
( |
void |
| ) |
|
References KviKvsEventManager::addAppHandler(), KviKvsScriptEventHandler::createInstance(), g_pApp, i, KviKvsEventManager::instance(), j, m_bOneTimeSetupDone, m_pTreeWidget, KviKvsEventManager::removeAllScriptAppHandlers(), s, KviApplication::saveAppEvents(), and saveLastEditedItem().
Referenced by EventEditorWindow::applyClicked(), and EventEditorWindow::okClicked().
void EventEditor::currentItemChanged |
( |
QTreeWidgetItem * |
it, |
|
|
QTreeWidgetItem * |
|
|
) |
| |
|
protectedslot |
References __tr2qs_ctx(), KviCommandFormatter::indent(), KVI_ASSERT, m_bOneTimeSetupDone, m_pEditor, m_pLastEditedItem, m_pNameEditor, EventEditorHandlerTreeWidgetItem::m_szBuffer, EventEditorHandlerTreeWidgetItem::name(), saveLastEditedItem(), KviScriptEditor::setCursorPosition(), and KviScriptEditor::setText().
Referenced by oneTimeSetup(), and toggleCurrentHandlerEnabled().
void EventEditor::eventHandlerDisabled |
( |
const QString & |
szName | ) |
|
|
protectedslot |
void EventEditor::exportAllEvents |
( |
| ) |
|
|
protectedslot |
void EventEditor::exportCurrentHandler |
( |
| ) |
|
|
protectedslot |
void EventEditor::itemPressed |
( |
QTreeWidgetItem * |
it, |
|
|
const QPoint & |
pnt |
|
) |
| |
|
protectedslot |
References __tr2qs_ctx(), addHandlerForCurrentEvent(), KviIconManager::Discard, exportCurrentHandler(), g_pIconManager, KviIconManager::getSmallIcon(), KviIconManager::Handler, KviIconManager::HandlerDisabled, KVI_ASSERT, m_bOneTimeSetupDone, m_pContextPopup, removeCurrentHandler(), KviIconManager::Save, and toggleCurrentHandlerEnabled().
Referenced by oneTimeSetup().
void EventEditor::oneTimeSetup |
( |
| ) |
|
|
private |
References KviKvsEventManager::appEvent(), connect(), currentItemChanged(), e, KviIconManager::Event, eventHandlerDisabled(), KviIconManager::EventNoHandlers, g_pIconManager, KviIconManager::getSmallIcon(), KviKvsEvent::handlers(), i, KviKvsEventManager::instance(), itemPressed(), KVI_KVS_NUM_APP_EVENTS, l, m_bOneTimeSetupDone, m_pContextPopup, m_pTreeWidget, KviKvsEvent::name(), KviRuntimeInfo::name(), KviKvsEvent::parameterDescription(), s, and KviKvsEventHandler::Script.
Referenced by showEvent().
void EventEditor::removeCurrentHandler |
( |
| ) |
|
|
protectedslot |
void EventEditor::saveLastEditedItem |
( |
| ) |
|
References KviQString::equalCI(), KviScriptEditor::getCursor(), KviScriptEditor::getText(), getUniqueHandlerName(), KVI_ASSERT, m_bOneTimeSetupDone, m_pEditor, m_pLastEditedItem, m_pNameEditor, EventEditorHandlerTreeWidgetItem::m_szBuffer, EventEditorHandlerTreeWidgetItem::m_szName, and EventEditorHandlerTreeWidgetItem::setName().
Referenced by commit(), currentItemChanged(), exportAllEvents(), and exportCurrentHandler().
void EventEditor::showEvent |
( |
QShowEvent * |
e | ) |
|
|
protected |
void EventEditor::toggleCurrentHandlerEnabled |
( |
| ) |
|
|
protectedslot |
bool EventEditor::m_bOneTimeSetupDone |
QMenu* EventEditor::m_pContextPopup |
QLineEdit* EventEditor::m_pNameEditor |
The documentation for this class was generated from the following files: